Skip to content

Conversation

@TheMostlyGreat
Copy link

@TheMostlyGreat TheMostlyGreat commented Dec 21, 2025

Summary

Improves Python SDK error documentation with complete ToolExecutionError hierarchy.

Changes

  • errors/: Add complete error hierarchy (ToolkitError → ToolExecutionError), retry-aware errors section
  • overview/: Additional tool registration examples
  • transports/: Clarify HTTP endpoints table
  • types/: Add error adapter documentation

Why

Error docs were incomplete - missing the full hierarchy and retry-aware errors that tool authors need.


Note

Enhances Python reference docs with full tool error hierarchy and examples, adds error adapters section, expands tool registration examples (auth/secrets/lifecycle), and clarifies HTTP transport endpoints.

  • Errors (app/en/references/mcp/python/errors/page.mdx)
    • Add arcade_core.errors tool execution errors with retry semantics: RetryableToolError, FatalToolError, ContextRequiredToolError, UpstreamError, UpstreamRateLimitError (with code examples).
    • Document complete error hierarchy diagram covering MCP and tool errors.
    • Update examples to use retry-aware tool errors; add info callout linking to error adapters.
  • Overview (app/en/references/mcp/python/overview/page.mdx)
    • Add examples for tool registration with OAuth (requires_auth), secrets (requires_secrets), and lifecycle hooks (@app.on_event).
  • Transports (app/en/references/mcp/python/transports/page.mdx)
    • Replace endpoint bullets with a detailed table, including GET/POST/DELETE /mcp; add callout about response types and Accept header.
  • Types (app/en/references/mcp/python/types/page.mdx)
    • Add frontmatter and a new Error Adapters section: protocol, built-in adapters, and usage example with @app.tool(adapters=[...]).

Written by Cursor Bugbot for commit e3a669e. This will update automatically on new commits. Configure here.

## Changes

### errors/page.mdx
- Add complete ToolExecutionError hierarchy (ToolkitError → ToolError → ToolRuntimeError → ToolExecutionError)
- Add retry-aware errors section with examples (RetryableToolError, FatalToolError, ContextRequiredToolError)
- Add UpstreamError and UpstreamRateLimitError documentation
- Document error hierarchy diagram matching arcade-core implementation

### overview/page.mdx
- Add additional examples for tool registration patterns

### transports/page.mdx
- Clarify HTTP endpoint table (/mcp GET/POST/DELETE)
- Add response mode documentation (JSON vs SSE)

### types/page.mdx
- Add error adapter type documentation
- Add examples for built-in adapters (Slack, Google, Microsoft)

## Why
The error documentation was incomplete - missing the full ToolExecutionError
hierarchy and retry-aware error types that tool authors need to use.
@vercel
Copy link

vercel bot commented Dec 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Dec 21, 2025 2:35am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants