Skip to content

Add tool authoring deep-dive (schema inference, async, error handling) #82

@AmitoVrito

Description

@AmitoVrito

Expand docs/agents/tools.md or create a new docs/agents/tool-authoring.md:

  • How @tool generates JSON Schema from type hints
  • Required vs optional params
  • Async tools
  • Tools with side effects (databases, APIs) — idempotency advice
  • Tools that return structured data
  • Tools with state (class-based tools)
  • Error handling in tools
  • Testing tools in isolation with pytest
  • Registering tools in a central registry

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions