@trii/types 2.10.592 → 2.10.594

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,11 +68,12 @@ 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
+ nextNodeId?: string | null;
76
77
  spaceId: string;
77
78
  workflowId: string;
78
79
  flowId: string;
@@ -91,35 +92,28 @@ export interface IWorkflowMessage {
91
92
  executionId?: string | null;
92
93
  }
93
94
  export interface IFlowMessageContent {
94
- type: 'text' | 'image' | 'file' | 'audio';
95
- valueJson?: string;
95
+ type: 'text' | 'image' | 'file' | 'audio' | 'code' | 'json' | 'log' | 'tool';
96
96
  text?: string;
97
+ /**For audio transcription or OCR processing */
98
+ transcription?: string;
97
99
  mime_type?: string;
98
100
  image_url?: string;
99
101
  audio_url?: string;
100
102
  file_url?: string;
101
- transcription?: string;
103
+ /**Tool call related information */
104
+ toolCallId?: string;
105
+ toolName?: string;
106
+ toolArguments?: string;
107
+ toolOutput?: string;
108
+ toolStatus?: NodeStatus;
109
+ toolTransferToOtherAgent: boolean | false;
110
+ toolNextNodeId?: string | null;
111
+ isPartial?: boolean | false;
112
+ isMessageSended?: boolean | false;
113
+ /**related to messages module */
102
114
  messageId: string | '';
103
115
  messageShardKey: string | '';
104
116
  }
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
117
  export declare enum WorkflowStatus {
124
118
  NONE = 0,
125
119
  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.594",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",