@stack-spot/portal-network 0.186.0 → 0.186.1-beta.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.
@@ -58,6 +58,7 @@ import {
58
58
  getModuleV1ModulesModuleIdGet,
59
59
  analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet,
60
60
  analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet,
61
+ putCustomerRatingReportV1ReportsReportIdCustomerRatingPut,
61
62
  searchReposScmServiceV2ReposSearchScmPost,
62
63
  importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost,
63
64
  searchReposScmV2V2ReposSearchScmSearchIdGet,
@@ -144,6 +145,12 @@ class CodeShift extends ReactQueryNetworkClient {
144
145
  * Downloads a report as a csv file.
145
146
  */
146
147
  downloadReport = this.query(removeAuthorizationParam(downloadReportV1ReportsReportIdDownloadGet))
148
+ /**
149
+ * Put Customer Rating Report
150
+ */
151
+ updateReportRating = this.mutation(
152
+ removeAuthorizationParam(putCustomerRatingReportV1ReportsReportIdCustomerRatingPut),
153
+ )
147
154
  /**
148
155
  * Gets code shift settings
149
156
  */
@@ -245,6 +245,7 @@ export interface ChatAgentTool {
245
245
  image?: string,
246
246
  input?: string,
247
247
  output?: string,
248
+ goal?: string,
248
249
  }
249
250
 
250
251
  export interface ChatStepAttempt {
@@ -256,8 +257,8 @@ export interface ChatStepAttempt {
256
257
 
257
258
  export interface BaseChatStep {
258
259
  id: string,
259
- type: 'planning' | 'step' | 'answer',
260
- status: 'pending' | 'running' | 'success' | 'error',
260
+ type: 'planning' | 'step' | 'answer' | 'tool',
261
+ status: 'pending' | 'running' | 'success' | 'error' | 'awaiting_approval',
261
262
  /**
262
263
  * Duration in seconds.
263
264
  */
@@ -266,9 +267,24 @@ export interface BaseChatStep {
266
267
 
267
268
  export interface PlanningChatStep extends BaseChatStep {
268
269
  type: 'planning',
269
- status: 'success',
270
+ status: 'success' | 'awaiting_approval',
270
271
  steps: string[],
271
272
  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,
272
288
  }
273
289
 
274
290
  export interface StepChatStep extends BaseChatStep {
@@ -288,17 +304,19 @@ export interface AnswerChatStep extends BaseChatStep {
288
304
  type: 'answer',
289
305
  }
290
306
 
291
- export type ChatStep = PlanningChatStep | StepChatStep | AnswerChatStep
307
+ export type ChatStep = PlanningChatStep | StepChatStep | AnswerChatStep | ToolChatStep
292
308
 
293
309
  export interface BaseAgentInfo {
294
310
  type: 'chat' | 'planning' | 'step' | 'tool' | 'final_answer',
295
- action: 'start' | 'end',
311
+ action: 'start' | 'end' | 'awaiting_approval',
296
312
  duration?: number,
313
+ id: string,
297
314
  }
298
315
 
299
316
  export interface AgentTool {
300
317
  tool_id: string,
301
318
  tool_execution_id: string,
319
+ goal: string,
302
320
  }
303
321
 
304
322
  export interface PlanningAgentInfo extends BaseAgentInfo {
@@ -311,6 +329,7 @@ export interface PlanningAgentInfo extends BaseAgentInfo {
311
329
  goal: string,
312
330
  tools?: AgentTool[],
313
331
  }[],
332
+ user_question?: string,
314
333
  },
315
334
  }
316
335
 
@@ -326,6 +345,8 @@ export interface ToolAgentInfo extends BaseAgentInfo {
326
345
  input?: any,
327
346
  attempt: number,
328
347
  output?: string,
348
+ user_question?: string,
349
+ tool_id: string,
329
350
  },
330
351
  }
331
352