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)[源代码]#

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.

示例

Describe what search can find:

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

  • snippets (bool)

  • guidelines (bool)

返回类型:

str