manifest
Version:
Self-hosted Manifest LLM router with embedded server, SQLite database, and dashboard
106 lines • 4.09 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.LlmCall = void 0;
const typeorm_1 = require("typeorm");
const sql_dialect_1 = require("../common/utils/sql-dialect");
let LlmCall = class LlmCall {
id;
tenant_id;
agent_id;
turn_id;
call_index;
gen_ai_system;
request_model;
response_model;
input_tokens;
output_tokens;
cache_read_tokens;
cache_creation_tokens;
duration_ms;
ttft_ms;
temperature;
max_output_tokens;
timestamp;
};
exports.LlmCall = LlmCall;
__decorate([
(0, typeorm_1.PrimaryColumn)('varchar'),
__metadata("design:type", String)
], LlmCall.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)('varchar', { nullable: true }),
__metadata("design:type", Object)
], LlmCall.prototype, "tenant_id", void 0);
__decorate([
(0, typeorm_1.Column)('varchar', { nullable: true }),
__metadata("design:type", Object)
], LlmCall.prototype, "agent_id", void 0);
__decorate([
(0, typeorm_1.Column)('varchar', { nullable: true }),
__metadata("design:type", Object)
], LlmCall.prototype, "turn_id", void 0);
__decorate([
(0, typeorm_1.Column)('integer', { nullable: true }),
__metadata("design:type", Object)
], LlmCall.prototype, "call_index", void 0);
__decorate([
(0, typeorm_1.Column)('varchar', { nullable: true }),
__metadata("design:type", Object)
], LlmCall.prototype, "gen_ai_system", void 0);
__decorate([
(0, typeorm_1.Column)('varchar', { nullable: true }),
__metadata("design:type", Object)
], LlmCall.prototype, "request_model", void 0);
__decorate([
(0, typeorm_1.Column)('varchar', { nullable: true }),
__metadata("design:type", Object)
], LlmCall.prototype, "response_model", void 0);
__decorate([
(0, typeorm_1.Column)('integer', { default: 0 }),
__metadata("design:type", Number)
], LlmCall.prototype, "input_tokens", void 0);
__decorate([
(0, typeorm_1.Column)('integer', { default: 0 }),
__metadata("design:type", Number)
], LlmCall.prototype, "output_tokens", void 0);
__decorate([
(0, typeorm_1.Column)('integer', { default: 0 }),
__metadata("design:type", Number)
], LlmCall.prototype, "cache_read_tokens", void 0);
__decorate([
(0, typeorm_1.Column)('integer', { default: 0 }),
__metadata("design:type", Number)
], LlmCall.prototype, "cache_creation_tokens", void 0);
__decorate([
(0, typeorm_1.Column)('integer', { nullable: true }),
__metadata("design:type", Object)
], LlmCall.prototype, "duration_ms", void 0);
__decorate([
(0, typeorm_1.Column)('integer', { nullable: true }),
__metadata("design:type", Object)
], LlmCall.prototype, "ttft_ms", void 0);
__decorate([
(0, typeorm_1.Column)('decimal', { precision: 3, scale: 2, nullable: true }),
__metadata("design:type", Object)
], LlmCall.prototype, "temperature", void 0);
__decorate([
(0, typeorm_1.Column)('integer', { nullable: true }),
__metadata("design:type", Object)
], LlmCall.prototype, "max_output_tokens", void 0);
__decorate([
(0, typeorm_1.Column)((0, sql_dialect_1.timestampType)()),
__metadata("design:type", String)
], LlmCall.prototype, "timestamp", void 0);
exports.LlmCall = LlmCall = __decorate([
(0, typeorm_1.Entity)('llm_calls')
], LlmCall);
//# sourceMappingURL=llm-call.entity.js.map