mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(algolia): remove fabricated pendingTask field from get_task_status
Algolia's Get Task Status response (additionalProperties: false) only returns `status` (published | notPublished) — pendingTask belongs to the List Indices response, not this endpoint. Drop it from the tool's output, response type, and block outputs rather than inventing data.
This commit is contained in:
@@ -672,7 +672,6 @@ Return ONLY the JSON array.`,
|
||||
type: 'string',
|
||||
description: 'Task status: "published" once applied, "notPublished" while still pending',
|
||||
},
|
||||
pendingTask: { type: 'boolean', description: 'Whether the task is still pending' },
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,6 @@ export const getTaskStatusTool: ToolConfig<
|
||||
success: true,
|
||||
output: {
|
||||
status: data.status ?? '',
|
||||
pendingTask: data.pendingTask ?? false,
|
||||
},
|
||||
}
|
||||
},
|
||||
@@ -67,9 +66,5 @@ export const getTaskStatusTool: ToolConfig<
|
||||
description:
|
||||
'Task status: "published" once the operation has been applied, "notPublished" while still pending',
|
||||
},
|
||||
pendingTask: {
|
||||
type: 'boolean',
|
||||
description: 'Whether the task is still pending',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -286,6 +286,5 @@ export interface AlgoliaGetTaskStatusParams extends AlgoliaBaseParams {
|
||||
export interface AlgoliaGetTaskStatusResponse extends ToolResponse {
|
||||
output: {
|
||||
status: string
|
||||
pendingTask: boolean
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user