@maximai/maxim-js
Version:
Maxim AI JS SDK. Visit https://getmaxim.ai for more info.
33 lines • 979 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommitLog = exports.Entity = void 0;
var Entity;
(function (Entity) {
Entity["SESSION"] = "session";
Entity["TRACE"] = "trace";
Entity["SPAN"] = "span";
Entity["GENERATION"] = "generation";
Entity["FEEDBACK"] = "feedback";
Entity["RETRIEVAL"] = "retrieval";
Entity["TOOL_CALL"] = "tool_call";
Entity["ERROR"] = "error";
})(Entity || (exports.Entity = Entity = {}));
class CommitLog {
constructor(entity, entityId, action, data) {
this.entity = entity;
this.entityId = entityId;
this.action = action;
this.data = data;
}
get id() {
return this.entityId;
}
get type() {
return this.entity;
}
serialize() {
return `${this.entity}{id=${this.entityId},action=${this.action},data=${JSON.stringify(this.data)}}`;
}
}
exports.CommitLog = CommitLog;
//# sourceMappingURL=types.js.map