@lightspeed-ai/sdk 0.4.0 → 0.5.1
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.
- package/dist/generated/methods.d.ts +198 -127
- package/dist/generated/methods.d.ts.map +1 -1
- package/dist/generated/methods.js +130 -85
- package/dist/generated/methods.js.map +1 -1
- package/dist/generated/types.d.ts +641 -217
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/generated/workflow-manifest.d.ts +127 -1
- package/dist/generated/workflow-manifest.d.ts.map +1 -1
- package/dist/generated/workflow-manifest.js +139 -1
- package/dist/generated/workflow-manifest.js.map +1 -1
- package/dist/generated/workflow-types.d.ts +322 -23
- package/dist/generated/workflow-types.d.ts.map +1 -1
- package/dist/workflow.d.ts +104 -0
- package/dist/workflow.d.ts.map +1 -1
- package/package.json +1 -1
- package/release.json +2 -2
- package/schema/api.schema.json +1172 -518
- package/schema/workflow.json +139 -1
- package/schema/workflow.schema.json +594 -1
- package/src/generated/methods.ts +199 -127
- package/src/generated/types.ts +658 -231
- package/src/generated/workflow-manifest.ts +139 -1
- package/src/generated/workflow-types.ts +346 -26
package/schema/workflow.json
CHANGED
|
@@ -17,6 +17,22 @@
|
|
|
17
17
|
"stateQuery": "chat_state",
|
|
18
18
|
"workflowKind": "ChannelConversationWorkflow"
|
|
19
19
|
},
|
|
20
|
+
"codeExecution": {
|
|
21
|
+
"activities": {
|
|
22
|
+
"finalize": "WorkflowActivities::code_finalize",
|
|
23
|
+
"prepare": "WorkflowActivities::code_prepare",
|
|
24
|
+
"run": "WorkflowActivities::code_run"
|
|
25
|
+
},
|
|
26
|
+
"runMaximumAttempts": 1,
|
|
27
|
+
"snapshotQuery": "snapshot",
|
|
28
|
+
"workflowType": "CodeExecutionWorkflow"
|
|
29
|
+
},
|
|
30
|
+
"codeTools": {
|
|
31
|
+
"identity": "execution_id + request_id; identical retries join or return the same result, conflicting reuse is rejected",
|
|
32
|
+
"invocationResult": "Result<CodeToolCallOutcome, CodeToolRejection>",
|
|
33
|
+
"report": "Fresh snapshot query; cancellation of a client waiter does not cancel admitted work",
|
|
34
|
+
"scopeResult": "Result<CodeToolScopeReport, CodeToolRejection>"
|
|
35
|
+
},
|
|
20
36
|
"contractVersion": 2,
|
|
21
37
|
"emissionIds": {
|
|
22
38
|
"framing": "sha256 over the hash domain, then the kind, then each part in order; every piece is prefixed by its byte length as an unsigned 64-bit big-endian integer. Universe ids are hashed as hyphenated lowercase UUID strings; run ids as 8-byte big-endian unsigned integers.",
|
|
@@ -54,6 +70,7 @@
|
|
|
54
70
|
"prefix": "emission:sha256:"
|
|
55
71
|
},
|
|
56
72
|
"queries": {
|
|
73
|
+
"codeToolScopeReport": "code_tool_scope_report",
|
|
57
74
|
"workflowToolRecovery": "workflow_tool_recovery"
|
|
58
75
|
},
|
|
59
76
|
"roots": [
|
|
@@ -68,11 +85,26 @@
|
|
|
68
85
|
"PrepareChannelMediaResult",
|
|
69
86
|
"TranscriptionWorkflowArgs",
|
|
70
87
|
"TranscriptionSnapshot",
|
|
71
|
-
"TranscriptionActivityResult"
|
|
88
|
+
"TranscriptionActivityResult",
|
|
89
|
+
"OpenCodeToolScopeRequest",
|
|
90
|
+
"InvokeCodeToolRequest",
|
|
91
|
+
"CloseCodeToolScopeRequest",
|
|
92
|
+
"CodeToolScopeReportRequest",
|
|
93
|
+
"CodeToolScopeReport",
|
|
94
|
+
"CodeToolCallOutcome",
|
|
95
|
+
"CodeToolRejection",
|
|
96
|
+
"CodeExecutionDescriptor",
|
|
97
|
+
"CodeExecutionSnapshot",
|
|
98
|
+
"CodeRunActivityResult"
|
|
72
99
|
],
|
|
73
100
|
"signals": {
|
|
74
101
|
"deliverEmission": "deliver_emission"
|
|
75
102
|
},
|
|
103
|
+
"updates": {
|
|
104
|
+
"closeCodeToolScope": "close_code_tool_scope",
|
|
105
|
+
"invokeCodeTool": "invoke_code_tool",
|
|
106
|
+
"openCodeToolScope": "open_code_tool_scope"
|
|
107
|
+
},
|
|
76
108
|
"vectors": {
|
|
77
109
|
"channels": {
|
|
78
110
|
"connectorTaskQueue": "lightspeed-connector-telegram-9b32a282ab8d90f892b5916c",
|
|
@@ -86,6 +118,112 @@
|
|
|
86
118
|
"universeId": "6f3a1a52-58c1-4f0e-9c2d-1a2b3c4d5e6f"
|
|
87
119
|
}
|
|
88
120
|
},
|
|
121
|
+
"codeExecution": {
|
|
122
|
+
"descriptor": {
|
|
123
|
+
"catalog_ref": "sha256:37205a7f23ed067993395414b26457d7eb603bf78e181254ac6d2a74ea2918d9",
|
|
124
|
+
"execution_id": "wte:code-vector",
|
|
125
|
+
"limits": {
|
|
126
|
+
"max_catalog_bytes": 262144,
|
|
127
|
+
"max_memory_bytes": 16777216,
|
|
128
|
+
"max_output_bytes": 65536,
|
|
129
|
+
"max_outstanding_tool_calls": 8,
|
|
130
|
+
"max_request_bytes": 65536,
|
|
131
|
+
"max_result_bytes": 262144,
|
|
132
|
+
"max_source_bytes": 65536,
|
|
133
|
+
"max_stack_bytes": 262144,
|
|
134
|
+
"max_tool_calls": 100,
|
|
135
|
+
"timeout_ms": 30000
|
|
136
|
+
},
|
|
137
|
+
"session_workflow_id": "6f3a1a52-58c1-4f0e-9c2d-1a2b3c4d5e6f/bot:v1:triage",
|
|
138
|
+
"source_ref": "sha256:6a98d35093f15c84a9ccc34b0265e824ea49910551c181a250b362448204a253"
|
|
139
|
+
},
|
|
140
|
+
"result": {
|
|
141
|
+
"report_ref": "sha256:825bada798e50a4ea4f128bfcd6ff0371f292bcf43e7ef700eac8ba1a54a3db8",
|
|
142
|
+
"succeeded": true
|
|
143
|
+
},
|
|
144
|
+
"snapshot": {
|
|
145
|
+
"descriptor": {
|
|
146
|
+
"catalog_ref": "sha256:37205a7f23ed067993395414b26457d7eb603bf78e181254ac6d2a74ea2918d9",
|
|
147
|
+
"execution_id": "wte:code-vector",
|
|
148
|
+
"limits": {
|
|
149
|
+
"max_catalog_bytes": 262144,
|
|
150
|
+
"max_memory_bytes": 16777216,
|
|
151
|
+
"max_output_bytes": 65536,
|
|
152
|
+
"max_outstanding_tool_calls": 8,
|
|
153
|
+
"max_request_bytes": 65536,
|
|
154
|
+
"max_result_bytes": 262144,
|
|
155
|
+
"max_source_bytes": 65536,
|
|
156
|
+
"max_stack_bytes": 262144,
|
|
157
|
+
"max_tool_calls": 100,
|
|
158
|
+
"timeout_ms": 30000
|
|
159
|
+
},
|
|
160
|
+
"session_workflow_id": "6f3a1a52-58c1-4f0e-9c2d-1a2b3c4d5e6f/bot:v1:triage",
|
|
161
|
+
"source_ref": "sha256:6a98d35093f15c84a9ccc34b0265e824ea49910551c181a250b362448204a253"
|
|
162
|
+
},
|
|
163
|
+
"phase": "resolved",
|
|
164
|
+
"resolution": {
|
|
165
|
+
"kind": "resolved",
|
|
166
|
+
"payload_ref": "sha256:f03a9de709e439c62f5d0c0eed41f9972197ac5af6bd88b60add479443245f7f"
|
|
167
|
+
},
|
|
168
|
+
"terminal": {
|
|
169
|
+
"kind": "completed",
|
|
170
|
+
"result": {
|
|
171
|
+
"report_ref": "sha256:825bada798e50a4ea4f128bfcd6ff0371f292bcf43e7ef700eac8ba1a54a3db8",
|
|
172
|
+
"succeeded": true
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"codeTools": {
|
|
178
|
+
"closeRequest": {
|
|
179
|
+
"cancel_pending": true,
|
|
180
|
+
"execution_id": "execution:vector"
|
|
181
|
+
},
|
|
182
|
+
"invokeRequest": {
|
|
183
|
+
"arguments_ref": "sha256:76cd2a0d9aa2ce03442a30b892eda947093dd0fdf8ee727690fa464ad6850ac8",
|
|
184
|
+
"binding_id": "binding:vector",
|
|
185
|
+
"execution_id": "execution:vector",
|
|
186
|
+
"request_id": "request:vector"
|
|
187
|
+
},
|
|
188
|
+
"openRequest": {
|
|
189
|
+
"allowed_tools": [
|
|
190
|
+
"vfs.read_file"
|
|
191
|
+
],
|
|
192
|
+
"execution_id": "execution:vector",
|
|
193
|
+
"max_calls": 8,
|
|
194
|
+
"max_in_flight": 2,
|
|
195
|
+
"parent_invocation_id": "wti:sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
196
|
+
},
|
|
197
|
+
"outcome": {
|
|
198
|
+
"call_id": "code-tool:vector",
|
|
199
|
+
"output_ref": "sha256:23fb5c3482a5315f33eba760b84f175d7fb0ad91a527e5578baa1038a06482dd",
|
|
200
|
+
"request_id": "request:vector",
|
|
201
|
+
"status": "succeeded"
|
|
202
|
+
},
|
|
203
|
+
"rejection": {
|
|
204
|
+
"kind": "scope_closed",
|
|
205
|
+
"message": "scope is closed"
|
|
206
|
+
},
|
|
207
|
+
"report": {
|
|
208
|
+
"bindings": {
|
|
209
|
+
"binding:vector": "read_file"
|
|
210
|
+
},
|
|
211
|
+
"calls": {
|
|
212
|
+
"request:vector": {
|
|
213
|
+
"call_id": "code-tool:vector",
|
|
214
|
+
"output_ref": "sha256:23fb5c3482a5315f33eba760b84f175d7fb0ad91a527e5578baa1038a06482dd",
|
|
215
|
+
"request_id": "request:vector",
|
|
216
|
+
"status": "succeeded"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"cancel_requested": true,
|
|
220
|
+
"closed": true,
|
|
221
|
+
"execution_id": "execution:vector"
|
|
222
|
+
},
|
|
223
|
+
"reportRequest": {
|
|
224
|
+
"execution_id": "execution:vector"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
89
227
|
"emissionIds": {
|
|
90
228
|
"invocationCancellation": "emission:sha256:6b88bd2ef714193fc9274b5f212cc415da4dd25733e1717fa89c7fdddc3eca4e",
|
|
91
229
|
"runTerminal": "emission:sha256:a477a56dbeb4f3937959dc5ece1cf363c7030bec130415e4019b507e48098240",
|