@trii/types 2.10.626 → 2.10.628

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,14 +72,16 @@ export interface IWorkflowMessage {
72
72
  role: 'log' | 'user' | 'assistant';
73
73
  isWorkerAgent: boolean | false;
74
74
  status: NodeStatus;
75
+ input_arguments?: string | null;
75
76
  content?: IFlowMessageContent[];
76
77
  transferToOtherAgent: boolean | false;
77
- nextNodeId?: string | null;
78
+ nextAgentId?: string | null;
78
79
  spaceId: string;
79
80
  workflowId: string;
80
81
  flowId: string;
81
82
  nodeId: string;
82
83
  nodeName: string | '';
84
+ parentNodeId: string | '';
83
85
  tokens: number | 0;
84
86
  tokensInput: number | 0;
85
87
  tokensOutput: number | 0;
@@ -92,14 +94,18 @@ export interface IWorkflowMessage {
92
94
  executionId?: string | null;
93
95
  }
94
96
  export interface IFlowMessageContent {
95
- type: 'text' | 'image' | 'file' | 'audio' | 'agentPlan' | 'arguments' | 'tool';
97
+ type: 'text' | 'image' | 'file' | 'audio' | 'agentPlan' | 'arguments' | 'tool' | 'handoff';
96
98
  text?: string;
97
99
  /**For audio transcription or OCR processing */
98
- transcription?: string;
99
100
  mime_type?: string;
100
101
  image_url?: string;
101
102
  audio_url?: string;
102
103
  file_url?: string;
104
+ transcription?: string;
105
+ handoffTargetAgentId?: string;
106
+ handoffReason?: string;
107
+ handoffContext?: string;
108
+ handoffResult?: string;
103
109
  isMessageSended?: boolean | false;
104
110
  /**Tool call related information */
105
111
  toolNodeId?: string | null;
@@ -108,8 +114,6 @@ export interface IFlowMessageContent {
108
114
  toolArguments?: string;
109
115
  toolOutput?: string;
110
116
  toolStatus?: NodeStatus;
111
- toolTransferToOtherAgent?: boolean | false;
112
- toolNextNodeId?: string | null;
113
117
  arguments?: string;
114
118
  planSchema?: string;
115
119
  isPlanExecution?: boolean | false;
@@ -16,11 +16,9 @@ export interface Document {
16
16
  chars: number | 0;
17
17
  embeddingStatus?: EmbeddingStatus | EmbeddingStatus.PENDING;
18
18
  indexingError?: string | null;
19
- portalPublished?: boolean;
19
+ portalPublished: boolean;
20
20
  portalSlug?: string | null;
21
21
  portalLastPublishedAt?: Date | null;
22
- version?: number | 1;
23
- previousVersionId?: string | null;
24
22
  source?: DocumentSource | DocumentSource.UPLOAD;
25
23
  sourceId?: string | null;
26
24
  createdAt: Date;
@@ -37,10 +35,10 @@ export declare enum EmbeddingStatus {
37
35
  ERROR = 3
38
36
  }
39
37
  export declare enum DocumentSource {
40
- UPLOAD = "upload",
41
- WEBHOOK = "webhook",
42
- FILESYSTEM = "filesystem",
43
- API = "api"
38
+ UPLOAD = 1,
39
+ WEBHOOK = 2,
40
+ FILESYSTEM = 3,
41
+ API = 4
44
42
  }
45
43
  export interface IndexingConfig {
46
44
  type: DocumentSplitterType | DocumentSplitterType.characterTextSplitter;
@@ -10,10 +10,10 @@ var EmbeddingStatus;
10
10
  })(EmbeddingStatus || (exports.EmbeddingStatus = EmbeddingStatus = {}));
11
11
  var DocumentSource;
12
12
  (function (DocumentSource) {
13
- DocumentSource["UPLOAD"] = "upload";
14
- DocumentSource["WEBHOOK"] = "webhook";
15
- DocumentSource["FILESYSTEM"] = "filesystem";
16
- DocumentSource["API"] = "api";
13
+ DocumentSource[DocumentSource["UPLOAD"] = 1] = "UPLOAD";
14
+ DocumentSource[DocumentSource["WEBHOOK"] = 2] = "WEBHOOK";
15
+ DocumentSource[DocumentSource["FILESYSTEM"] = 3] = "FILESYSTEM";
16
+ DocumentSource[DocumentSource["API"] = 4] = "API";
17
17
  })(DocumentSource || (exports.DocumentSource = DocumentSource = {}));
18
18
  var DocumentSplitterType;
19
19
  (function (DocumentSplitterType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.626",
3
+ "version": "2.10.628",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",