render_tool_guidance#

Build typed tools from annotations and docstrings. See the guide.

zett_agent.tools.base.render_tool_guidance(tools, *, snippets=True, guidelines=True)[源代码]#

Render grouped tool metadata for insertion into a system prompt.

Snippets are presented together so the model can scan the available call shapes first. Guidelines follow in one named group per tool, which avoids repeating a tool name for every rule. snippets and guidelines switch either section off.

参数:
  • tools (Sequence[AgentTool])

  • snippets (bool)

  • guidelines (bool)

返回类型:

str