agentleFS
PydanticKnown publisherpydantic/pydantic-ai/pydantic_ai_slim/pydantic_ai/native_tools/AGENTS.md

pydantic-ai / native_tools

AGENTS.md20k starsChanged 2 months agoMITView on GitHub

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 2 mentionsApr 2026: 29 mentionsMay 2026: 2 mentionsJun 2026: 2 mentionsJul 2026: 3 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the pydantic/pydantic-ai repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about pydantic/pydantic-ai

The biggest 5 of 64 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 64

Talked about on GitHub, Bluesky, Hacker News and the web (64 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 7

2 more on Bluesky

On Hacker News · 5

On the web · 2

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep provider-specific tools with no credible cross-provider abstraction as native tools wrapped in NativeTool.

    line 8
  2. Very specific:

    When a tool field maps directly to a provider API field name, prefer that name — users may have provider docs open alongside pydantic-ai …

    line 11

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

native_tools/ Guidelines

Adding a new native tool

  • Native tools that represent a cross-provider feature should have a corresponding capability extending NativeOrLocalTool in capabilities/ — capabilities are the primary user-facing API for enabling provider-adaptive tool features on agents
    • Local fallback (e.g., WebSearch, WebFetch): capability falls back to a function tool on providers without native support
    • Subagent fallback (e.g., ImageGeneration, XSearch): capability delegates to a subagent running another provider's model via fallback_subagent_model
  • Keep provider-specific tools with no credible cross-provider abstraction as native tools wrapped in NativeTool; don't add a thin provider-agnostic capability until the feature has support or meaningful fallback semantics across providers
  • When a provider's API has request-level parameters controlling raw tool output inclusion (e.g., xAI include, OpenAI include), expose the tool-specific ones as fields on the tool class — not just in model settings — users configuring XSearchTool(...) should discover all relevant options there; model settings remain as an alternative for backward compat
  • Provider support must be documented in three places: the tool class docstring 'Supported by' list, docs/native-tools.md provider table, and field-level docstrings for provider-specific semantics
  • When a tool field maps directly to a provider API field name, prefer that name — users may have provider docs open alongside pydantic-ai docs
  • Validate mutual exclusivity and limits in __post_init__ — fail fast with clear messages (e.g., 'Cannot specify both allowed_x_handles and excluded_x_handles')
  • Native tool names in pydantic-ai must round-trip through provider APIs — if the API uses a different function name (e.g., xAI sends x_keyword_search not x_search), preserve the original name when replaying history

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.