ToolSearchStorage#
Build extensions, choose hooks, and manage request-scoped state. See the guide.
- class zett_agent.extensions.tool_search.ToolSearchStorage(*args, **kwargs)[源代码]#
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)[源代码]#
Return the stored value, or None when the key is unset.
- 参数:
key (str)
- 返回类型:
str | None