ToolSearchStorage#
Build extensions, choose hooks, and manage request-scoped state. See the guide.
- class zett_agent.extensions.tool_search.ToolSearchStorage(*args, **kwargs)[source]#
Async key/value boundary used to remember one session’s sent definitions.
The extension stores a JSON array of tool names per session key and only calls these three methods, so an application can back the contract with SQL, Redis, or a file. Values are opaque strings; a missing key is not an error.
- async get(key)[source]#
Return the stored value, or None when the key is unset.
- Parameters:
key (str)
- Return type:
str | None