← All notes

Give models function tools so they can take actions and fetch extra information

Answer: Function tools let models perform actions and retrieve extra information. Inspect lets you register Python functions as tools and provide them to models that support them.

Why it matters

Function tools give models a way to perform actions and retrieve extra information, which helps them generate a response. They are useful when you want the model to take some action and use the result. They also help when putting all the context an agent might need into the instructions is impractical or impossible. You can make agents' behavior more deterministic or reliable by deferring some of the required logic to another tool. If the model's final action should be a function call, and the result should not be sent back, use an output function instead.

Many models can now interact with client-side Python functions, which expands their capabilities. You can give models a custom tool set of your own, so they can cover a wider variety of tasks. Inspect natively supports registering Python functions as tools, then providing those tools to models that support them. Built-in standard tools cover code execution, text editing, computer use, and web search.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Pydantic AI Function Tools; Inspect AI Tool Basics. MIT. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Pydantic AI Function Tools (MIT); Inspect AI Tool Basics (MIT). Text was condensed and changed from the originals.

Cite this

Permanent ID: iil:note:eqc6c70p

iinventedlight. 2026. "Give models function tools so they can take actions and fetch extra information." iinventedlight Library, iil:note:eqc6c70p, version of 2026-11-22. https://iinventedlight.com/library/notes/pydantic-ai-function-tools/. License: CC-BY-4.0.

@misc{iil_note_eqc6c70p,
  author = {{iinventedlight}},
  title = {{Give models function tools so they can take actions and fetch extra information}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-22},
  url = {https://iinventedlight.com/library/notes/pydantic-ai-function-tools/},
  note = {Permanent ID iil:note:eqc6c70p. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/pydantic-ai-function-tools.md.