UNPKG

@agentscope/studio

Version:

AgentScope Studio is a powerful local monitoring and visualization tool designed to provide real-time insights into your system's performance and behavior.

64 lines (63 loc) 2.78 kB
"use strict"; 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.RunTable = void 0; const typeorm_1 = require("typeorm"); const messageForm_1 = require("../../../shared/src/types/messageForm"); const InputRequest_1 = require("../models/InputRequest"); const Reply_1 = require("../models/Reply"); const Trace_1 = require("./Trace"); let RunTable = class RunTable extends typeorm_1.BaseEntity { }; exports.RunTable = RunTable; __decorate([ (0, typeorm_1.PrimaryColumn)(), __metadata("design:type", String) ], RunTable.prototype, "id", void 0); __decorate([ (0, typeorm_1.Column)(), __metadata("design:type", String) ], RunTable.prototype, "project", void 0); __decorate([ (0, typeorm_1.Column)(), __metadata("design:type", String) ], RunTable.prototype, "name", void 0); __decorate([ (0, typeorm_1.Column)(), __metadata("design:type", String) ], RunTable.prototype, "timestamp", void 0); __decorate([ (0, typeorm_1.Column)(), __metadata("design:type", String) ], RunTable.prototype, "run_dir", void 0); __decorate([ (0, typeorm_1.Column)(), __metadata("design:type", Number) ], RunTable.prototype, "pid", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'varchar', enum: messageForm_1.Status, default: messageForm_1.Status.DONE }), __metadata("design:type", String) ], RunTable.prototype, "status", void 0); __decorate([ (0, typeorm_1.OneToMany)(() => Reply_1.ReplyTable, (reply) => reply.runId), __metadata("design:type", Array) ], RunTable.prototype, "replies", void 0); __decorate([ (0, typeorm_1.OneToMany)(() => Trace_1.SpanTable, (span) => span.conversationId), __metadata("design:type", Array) ], RunTable.prototype, "spans", void 0); __decorate([ (0, typeorm_1.OneToMany)(() => InputRequest_1.InputRequestTable, (inputRequest) => inputRequest.runId), __metadata("design:type", Array) ], RunTable.prototype, "inputRequests", void 0); exports.RunTable = RunTable = __decorate([ (0, typeorm_1.Entity)() ], RunTable);