get_tool_guidelines#

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

zett_agent.tools.base.get_tool_guidelines(function)[source]#

Extract immutable Guidelines entries from a function docstring.

Parameters:

function (Callable[[...], Any]) – Undecorated Python function whose docstring follows the tool documentation format.

Return type:

tuple[str, …]