@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.
@@ -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: string,
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 type AgentInfo = GenericAgentInfo | PlanningAgentInfo | StepAgentInfo | ToolAgentInfo
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,