Skip to content

Anthropic advanced tool features - Tool Use, Tool Search and Programmatic Tool Calling #3666

@otto-sellerstam

Description

@otto-sellerstam

Description

Would PydanticAI consider supporting Anthropic's recently announced advanced tool features as described in this article? These features include:

  • Tool Search: defer tool loading (including context), then discover on-demand via search.
  • PTC: tools execute within code sandbox, intermediate results don't pollute context.
  • Tool Use Examples: few-shot examples alongside schema.

These seem particularly relevant for agents with large tool libraries (internal or MCP).

Generally I'm also curious about the sentiment on implementing vendor-specific functionality, especially on quite a fundamental level, as the above.

Happy to contribute a PR if there's interest.

References

No response

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions