@stack-spot/portal-network 0.185.1-beta.1 → 0.186.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.
@@ -245,7 +245,6 @@ export interface ChatAgentTool {
245
245
  image?: string,
246
246
  input?: string,
247
247
  output?: string,
248
- goal?: string,
249
248
  }
250
249
 
251
250
  export interface ChatStepAttempt {
@@ -257,8 +256,8 @@ export interface ChatStepAttempt {
257
256
 
258
257
  export interface BaseChatStep {
259
258
  id: string,
260
- type: 'planning' | 'step' | 'answer' | 'tool',
261
- status: 'pending' | 'running' | 'success' | 'error' | 'awaiting_approval',
259
+ type: 'planning' | 'step' | 'answer',
260
+ status: 'pending' | 'running' | 'success' | 'error',
262
261
  /**
263
262
  * Duration in seconds.
264
263
  */
@@ -267,24 +266,9 @@ export interface BaseChatStep {
267
266
 
268
267
  export interface PlanningChatStep extends BaseChatStep {
269
268
  type: 'planning',
270
- status: 'success' | 'awaiting_approval',
269
+ status: 'success',
271
270
  steps: string[],
272
271
  goal: string,
273
- user_question?: string,
274
- }
275
-
276
- export interface ToolChatStep extends BaseChatStep {
277
- type: 'tool',
278
- status: 'running' | 'success' | 'error' | 'awaiting_approval',
279
- /**
280
- * Each step might attempt to run for multiple times, with different inputs and outputs. If first attempt succeeds, this array will have
281
- * only one element.
282
- *
283
- * This array never has less than one element, despite the step's status.
284
- */
285
- attempts: ChatStepAttempt[],
286
- input?: Record<string, any>,
287
- user_question?: string,
288
272
  }
289
273
 
290
274
  export interface StepChatStep extends BaseChatStep {
@@ -304,19 +288,17 @@ export interface AnswerChatStep extends BaseChatStep {
304
288
  type: 'answer',
305
289
  }
306
290
 
307
- export type ChatStep = PlanningChatStep | StepChatStep | AnswerChatStep | ToolChatStep
291
+ export type ChatStep = PlanningChatStep | StepChatStep | AnswerChatStep
308
292
 
309
293
  export interface BaseAgentInfo {
310
294
  type: 'chat' | 'planning' | 'step' | 'tool' | 'final_answer',
311
- action: 'start' | 'end' | 'awaiting_approval',
295
+ action: 'start' | 'end',
312
296
  duration?: number,
313
- id: string,
314
297
  }
315
298
 
316
299
  export interface AgentTool {
317
300
  tool_id: string,
318
301
  tool_execution_id: string,
319
- goal: string,
320
302
  }
321
303
 
322
304
  export interface PlanningAgentInfo extends BaseAgentInfo {
@@ -329,7 +311,6 @@ export interface PlanningAgentInfo extends BaseAgentInfo {
329
311
  goal: string,
330
312
  tools?: AgentTool[],
331
313
  }[],
332
- user_question?: string,
333
314
  },
334
315
  }
335
316
 
@@ -345,8 +326,6 @@ export interface ToolAgentInfo extends BaseAgentInfo {
345
326
  input?: any,
346
327
  attempt: number,
347
328
  output?: string,
348
- user_question?: string,
349
- tool_id: string,
350
329
  },
351
330
  }
352
331