render_tool_catalog#

Build extensions, choose hooks, and manage request-scoped state. See the guide.

zett_agent.extensions.tool_search.render_tool_catalog(tools, *, snippets=True, guidelines=True)[source]#

Render the deferred tools a model can search for, one entry per tool.

Each entry is the tool name and description, followed by its snippet and guidelines when enabled. The text has no heading, so a caller places it under whichever one suits where it ends up. It is empty when tools is.

Examples

Describe what search can find:

print(render_tool_catalog([warehouse_stock]))
Parameters:
  • tools (Sequence[AgentTool])

  • snippets (bool)

  • guidelines (bool)

Return type:

str