@stack-spot/portal-network 0.211.1 → 0.212.0
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/CHANGELOG.md +16 -0
- package/dist/api/accountAssetManager.d.ts +16 -0
- package/dist/api/accountAssetManager.d.ts.map +1 -1
- package/dist/api/accountAssetManager.js.map +1 -1
- package/dist/api/codeShift.d.ts +21 -4
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +5 -2
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +9 -6
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +58 -17
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +3 -1
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/types.d.ts +11 -3
- package/dist/client/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/accountAssetManager.ts +112 -12
- package/src/api/codeShift.ts +25 -5
- package/src/client/agent-tools.ts +11 -8
- package/src/client/ai.ts +64 -20
- package/src/client/types.ts +12 -3
package/src/client/types.ts
CHANGED
|
@@ -247,6 +247,7 @@ export interface ChatAgentTool {
|
|
|
247
247
|
input?: string,
|
|
248
248
|
output?: string,
|
|
249
249
|
goal?: string,
|
|
250
|
+
status?: 'running' | 'success' | 'error',
|
|
250
251
|
}
|
|
251
252
|
|
|
252
253
|
export interface ChatStepAttempt {
|
|
@@ -308,10 +309,10 @@ export interface AnswerChatStep extends BaseChatStep {
|
|
|
308
309
|
export type ChatStep = PlanningChatStep | StepChatStep | AnswerChatStep | ToolChatStep
|
|
309
310
|
|
|
310
311
|
export interface BaseAgentInfo {
|
|
311
|
-
type: 'chat' | 'planning' | 'step' | 'tool' | 'final_answer',
|
|
312
|
+
type: 'chat' | 'planning' | 'step' | 'tool' | 'final_answer' | 'tool_calls',
|
|
312
313
|
action: 'start' | 'end' | 'awaiting_approval',
|
|
313
314
|
duration?: number,
|
|
314
|
-
id
|
|
315
|
+
id?: string,
|
|
315
316
|
}
|
|
316
317
|
|
|
317
318
|
export interface AgentTool {
|
|
@@ -355,7 +356,15 @@ export interface GenericAgentInfo extends BaseAgentInfo {
|
|
|
355
356
|
type: 'chat' | 'final_answer',
|
|
356
357
|
}
|
|
357
358
|
|
|
358
|
-
export
|
|
359
|
+
export interface ToolCallsAgentInfo extends BaseAgentInfo {
|
|
360
|
+
type: 'tool_calls',
|
|
361
|
+
data?: {
|
|
362
|
+
tools?: string[],
|
|
363
|
+
duration?: number,
|
|
364
|
+
},
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export type AgentInfo = GenericAgentInfo | PlanningAgentInfo | StepAgentInfo | ToolAgentInfo | ToolCallsAgentInfo
|
|
359
368
|
|
|
360
369
|
export interface FixedChatResponse extends ChatResponse3 {
|
|
361
370
|
agent_info: AgentInfo,
|