@trii/types 2.10.539 → 2.10.541
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,8 @@ export interface IWorkflowMessage {
|
|
|
35
35
|
spaceId: string;
|
|
36
36
|
role: 'system' | 'user' | 'assistant' | 'tool' | 'log';
|
|
37
37
|
content?: string;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
tool_calls?: IToolCall[];
|
|
41
|
-
tool_responses?: IToolCall[];
|
|
38
|
+
toolCalls?: IToolCall[];
|
|
39
|
+
attachments?: IIWorkflowAttachment[];
|
|
42
40
|
workflowId: string;
|
|
43
41
|
nodeId: string;
|
|
44
42
|
messageId?: string;
|
|
@@ -59,15 +57,22 @@ export interface IWorkflowMessage {
|
|
|
59
57
|
}
|
|
60
58
|
export interface IToolCall {
|
|
61
59
|
id: string;
|
|
60
|
+
/**
|
|
61
|
+
* Type of tool (e.g., "function")
|
|
62
|
+
*/
|
|
62
63
|
type: string;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
arguments: string;
|
|
64
|
+
function: IToolCallFunction;
|
|
65
|
+
response?: string;
|
|
66
66
|
}
|
|
67
|
-
export interface
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
export interface IToolCallFunction {
|
|
68
|
+
/**
|
|
69
|
+
* Function name
|
|
70
|
+
*/
|
|
71
|
+
name: string;
|
|
72
|
+
/**
|
|
73
|
+
* Function arguments
|
|
74
|
+
*/
|
|
75
|
+
arguments: string;
|
|
71
76
|
}
|
|
72
77
|
export declare enum WorkflowStatus {
|
|
73
78
|
NONE = 0,
|
|
@@ -76,3 +81,10 @@ export declare enum WorkflowStatus {
|
|
|
76
81
|
FINALIZED = 4,
|
|
77
82
|
CANCELED = 5
|
|
78
83
|
}
|
|
84
|
+
export interface IIWorkflowAttachment {
|
|
85
|
+
id: string;
|
|
86
|
+
url: string;
|
|
87
|
+
type: 'image' | 'video' | 'audio' | 'document';
|
|
88
|
+
filename: string;
|
|
89
|
+
mimeType: string;
|
|
90
|
+
}
|