@trii/types 2.10.592 → 2.10.593

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.
@@ -68,10 +68,10 @@ export interface IConsumedTokens {
68
68
  }
69
69
  export interface IWorkflowMessage {
70
70
  id: string;
71
- role: 'system' | 'user' | 'assistant' | 'tool' | 'log' | 'action';
71
+ role: 'system' | 'user' | 'assistant';
72
+ isWorkerAgent: boolean | false;
72
73
  status: NodeStatus;
73
- contentlist?: IFlowMessageContent[];
74
- toolCalls?: IFlowToolCall[];
74
+ content?: IFlowMessageContent[];
75
75
  transferToOtherAgent: boolean | false;
76
76
  spaceId: string;
77
77
  workflowId: string;
@@ -91,35 +91,26 @@ export interface IWorkflowMessage {
91
91
  executionId?: string | null;
92
92
  }
93
93
  export interface IFlowMessageContent {
94
- type: 'text' | 'image' | 'file' | 'audio';
95
- valueJson?: string;
94
+ type: 'text' | 'image' | 'file' | 'audio' | 'code' | 'json' | 'log' | 'tool';
96
95
  text?: string;
96
+ /**For audio transcription or OCR processing */
97
+ transcription?: string;
97
98
  mime_type?: string;
98
99
  image_url?: string;
99
100
  audio_url?: string;
100
101
  file_url?: string;
101
- transcription?: string;
102
+ /**Tool call related information */
103
+ toolCallId?: string;
104
+ toolName?: string;
105
+ toolArguments?: string;
106
+ toolOutput?: string;
107
+ toolStatus?: NodeStatus;
108
+ toolTransferToOtherAgent: boolean | false;
109
+ isPartial?: boolean | false;
110
+ /**related to messages module */
102
111
  messageId: string | '';
103
112
  messageShardKey: string | '';
104
113
  }
105
- export interface IFlowToolCall {
106
- toolCallId: string;
107
- /**
108
- * Type of tool (e.g., "function")
109
- */
110
- type: string;
111
- name: string;
112
- arguments: string;
113
- nodeId: string | '';
114
- success: boolean;
115
- status: NodeStatus;
116
- errorMessage?: string;
117
- response?: string;
118
- output?: string;
119
- transferToOtherAgent: boolean | false;
120
- flowMessages: IWorkflowMessage[];
121
- toolCalls: IFlowToolCall[];
122
- }
123
114
  export declare enum WorkflowStatus {
124
115
  NONE = 0,
125
116
  WAITING = 1,
@@ -9,6 +9,24 @@ var NodeStatus;
9
9
  //WAITING = 15,
10
10
  NodeStatus[NodeStatus["COMPLETED"] = 20] = "COMPLETED";
11
11
  })(NodeStatus || (exports.NodeStatus = NodeStatus = {}));
12
+ // export interface IFlowToolCall {
13
+ // toolCallId: string;
14
+ // /**
15
+ // * Type of tool (e.g., "function")
16
+ // */
17
+ // type: string;
18
+ // name: string;
19
+ // arguments: string;
20
+ // nodeId: string | '';
21
+ // success: boolean;
22
+ // status: NodeStatus;
23
+ // errorMessage?: string;
24
+ // response?: string; //eliminar
25
+ // output?: string;
26
+ // transferToOtherAgent: boolean | false;
27
+ // flowMessages: IWorkflowMessage[];
28
+ // toolCalls: IFlowToolCall[];
29
+ // }
12
30
  var WorkflowStatus;
13
31
  (function (WorkflowStatus) {
14
32
  WorkflowStatus[WorkflowStatus["NONE"] = 0] = "NONE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.592",
3
+ "version": "2.10.593",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",