(llm-first): context budget, validation, and eval harness, orchestration general-prompt

This commit is contained in:
MaKarin
2026-04-03 14:17:21 +03:00
parent 79c9589658
commit c42a88dff6
189 changed files with 15538 additions and 9109 deletions

View File

@@ -0,0 +1,35 @@
import { Injectable } from '@nestjs/common';
import { PrismaService } from '../../prisma/prisma.service';
import { mapPriceList } from '../shared/record-mappers';
@Injectable()
export class PriceListService {
constructor(private readonly prisma: PrismaService) {}
async getRecord() {
const [employee, part] = await Promise.all([
this.prisma.employee.findFirst({
where: {
price: {
not: null,
},
},
orderBy: {
code: 'asc',
},
}),
this.prisma.part.findFirst({
where: {
price: {
not: null,
},
},
orderBy: {
name: 'asc',
},
}),
]);
return mapPriceList(employee?.price, part?.price);
}
}