Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 08:30 UTC
docs: mark failed tool results as errors in the approvals example
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mukund committed
Oct 15, 2026 at 18:37 UTC
5ed18c941b82063bdeafbd2c34ea3ba6e658ed30
1 file changed
+2
docs/content/docs/approvals.mdx
+2
@@ -311,6 +311,7 @@ def run_tool(block):
311
"type": "tool_result",
312
"tool_use_id": block.id,
313
"content": json.dumps({"data": result.data, "error": result.error}),
314
+ "is_error": result.result_type == "failed",
315
}
316
317
@@ -395,6 +396,7 @@ async function runTool(block: Anthropic.ToolUseBlock): Promise<Anthropic.ToolRes
396
type: 'tool_result',
397
tool_use_id: block.id,
398
content: JSON.stringify({ data: result.data, error: result.error }),
399
+ is_error: result.resultType === 'failed',
400
};
401
} catch (error) {
402
if (!(error instanceof ComposioToolInputRequiredError)) throw error;