@trii/types 2.10.565 → 2.10.567
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.
|
@@ -32,47 +32,49 @@ export interface IWorkflow {
|
|
|
32
32
|
}
|
|
33
33
|
export interface IWorkflowMessage {
|
|
34
34
|
id: string;
|
|
35
|
-
spaceId: string;
|
|
36
35
|
role: 'system' | 'user' | 'assistant' | 'tool' | 'log';
|
|
37
|
-
|
|
38
|
-
toolCalls?:
|
|
39
|
-
|
|
36
|
+
contentlist?: IFlowMessageContent[];
|
|
37
|
+
toolCalls?: IFlowToolCall[];
|
|
38
|
+
transferToOtherAgent: boolean | false;
|
|
39
|
+
spaceId: string;
|
|
40
40
|
workflowId: string;
|
|
41
|
+
flowId: string;
|
|
41
42
|
nodeId: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
toolName?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Execution time in milliseconds
|
|
45
|
+
*/
|
|
46
|
+
executionTimeMs: number | 0;
|
|
47
47
|
createdAt: Date;
|
|
48
48
|
completedAt?: Date | null;
|
|
49
49
|
aiProviderId?: string | null;
|
|
50
50
|
aiModelId?: string | null;
|
|
51
|
-
aiPromptTokens?: number | null;
|
|
52
|
-
aiResponseTokens?: number | null;
|
|
53
51
|
aiTotalTokens?: number | null;
|
|
52
|
+
aiInputTokens?: number | null;
|
|
53
|
+
aiOutputTokens?: number | null;
|
|
54
54
|
aiCost?: number | null;
|
|
55
55
|
aiError?: string | null;
|
|
56
56
|
aiLatencyMs?: number | null;
|
|
57
57
|
}
|
|
58
|
-
export interface
|
|
59
|
-
|
|
58
|
+
export interface IFlowMessageContent {
|
|
59
|
+
type: 'text' | 'image' | 'file' | 'audio';
|
|
60
|
+
mime_type?: string;
|
|
61
|
+
text?: string;
|
|
62
|
+
image_url?: string;
|
|
63
|
+
audio_url?: string;
|
|
64
|
+
file_url?: string;
|
|
65
|
+
transcription?: string;
|
|
66
|
+
messageId: string | '';
|
|
67
|
+
messageShardKey: string | '';
|
|
68
|
+
}
|
|
69
|
+
export interface IFlowToolCall {
|
|
70
|
+
toolCallId: string;
|
|
60
71
|
/**
|
|
61
72
|
* Type of tool (e.g., "function")
|
|
62
73
|
*/
|
|
63
74
|
type: string;
|
|
64
|
-
function: IToolCallFunction;
|
|
65
|
-
response?: string;
|
|
66
|
-
}
|
|
67
|
-
export interface IToolCallFunction {
|
|
68
|
-
/**
|
|
69
|
-
* Function name
|
|
70
|
-
*/
|
|
71
75
|
name: string;
|
|
72
|
-
/**
|
|
73
|
-
* Function arguments
|
|
74
|
-
*/
|
|
75
76
|
arguments: string;
|
|
77
|
+
response?: string;
|
|
76
78
|
}
|
|
77
79
|
export declare enum WorkflowStatus {
|
|
78
80
|
NONE = 0,
|
|
@@ -81,10 +83,3 @@ export declare enum WorkflowStatus {
|
|
|
81
83
|
FINALIZED = 4,
|
|
82
84
|
CANCELED = 5
|
|
83
85
|
}
|
|
84
|
-
export interface IIWorkflowAttachment {
|
|
85
|
-
id: string;
|
|
86
|
-
url: string;
|
|
87
|
-
type: 'image' | 'video' | 'audio' | 'document';
|
|
88
|
-
filename: string;
|
|
89
|
-
mimeType: string;
|
|
90
|
-
}
|