docs icon indicating copy to clipboard operation
docs copied to clipboard

docs(python): Improve error documentation with complete hierarchy

Open TheMostlyGreat opened this issue 11 months ago • 2 comments

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 e3a669ea11d8ad8eec117bb5dfec13ef7b133d1b. This will update automatically on new commits. Configure here.

TheMostlyGreat avatar Dec 21 '25 02:12 TheMostlyGreat

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

vercel[bot] avatar Dec 21 '25 02:12 vercel[bot]

@EricGustin is this page still accurate?

vfanelle avatar Feb 03 '26 17:02 vfanelle