steamship.agents.tools.search package#
Submodules#
steamship.agents.tools.search.search module#
Tool for searching the web for answers.
- class steamship.agents.tools.search.search.SearchTool(*, name: str = 'SearchTool', agent_description: str = 'Used to search the web for new information.', human_description: str = 'Searches the web.', is_final: bool = False, cacheable: bool = True, cache: bool = False, cache_store: KeyValueStore | None = None)[source]#
Bases:
Tool
Tool which uses Steamship’s managed SERP API client to search Google.
- agent_description: str#
Description for use in an agent in order to enable Action selection. It should include a short summary of what the Tool does, what the inputs to the Tool should be, and what the outputs of the tool are.
- cache_store: KeyValueStore | None#
Module contents#
- class steamship.agents.tools.search.SearchTool(*, name: str = 'SearchTool', agent_description: str = 'Used to search the web for new information.', human_description: str = 'Searches the web.', is_final: bool = False, cacheable: bool = True, cache: bool = False, cache_store: KeyValueStore | None = None)[source]#
Bases:
Tool
Tool which uses Steamship’s managed SERP API client to search Google.
- agent_description: str#
Description for use in an agent in order to enable Action selection. It should include a short summary of what the Tool does, what the inputs to the Tool should be, and what the outputs of the tool are.
- cache_store: KeyValueStore | None#
- cacheable: bool#
Whether runs of this Tool should be cached based on inputs (if caching is enabled in the AgentContext for a run). Setting this to False will make prevent any Actions that involve this tool from being cached, meaning that every Action using this Tool will result in a call to run. By default, Tools are considered cacheable.
- is_final: bool#
Whether actions performed by this tool should have their is_final bit marked.
Setting this to True means that the output of this tool will halt the reasoning loop. Its output will be returned directly to the user.