@trii/types 2.10.539 → 2.10.540

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.
@@ -35,10 +35,7 @@ export interface IWorkflowMessage {
35
35
  spaceId: string;
36
36
  role: 'system' | 'user' | 'assistant' | 'tool' | 'log';
37
37
  content?: string;
38
- name?: string;
39
- tool_call_id?: string;
40
- tool_calls?: IToolCall[];
41
- tool_responses?: IToolCall[];
38
+ toolCalls?: IToolCall[];
42
39
  workflowId: string;
43
40
  nodeId: string;
44
41
  messageId?: string;
@@ -59,15 +56,22 @@ export interface IWorkflowMessage {
59
56
  }
60
57
  export interface IToolCall {
61
58
  id: string;
59
+ /**
60
+ * Type of tool (e.g., "function")
61
+ */
62
62
  type: string;
63
- toolId: string;
64
- toolName: string;
65
- arguments: string;
63
+ function: IToolCallFunction;
64
+ response?: string;
66
65
  }
67
- export interface IToolResponse {
68
- id: string;
69
- toolCallId: string;
70
- content: string;
66
+ export interface IToolCallFunction {
67
+ /**
68
+ * Function name
69
+ */
70
+ name: string;
71
+ /**
72
+ * Function arguments
73
+ */
74
+ arguments: string;
71
75
  }
72
76
  export declare enum WorkflowStatus {
73
77
  NONE = 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.539",
3
+ "version": "2.10.540",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",