Skip to main content

portia.open_source_tools.search_tool

Simple Search Tool.

SearchToolSchema Objects

class SearchToolSchema(BaseModel)

Input for SearchTool.

SearchTool Objects

class SearchTool(Tool[str])

Searches the internet to find answers to the search query provided..

run

def run(_: ToolRunContext, search_query: str) -> str

Run the Search Tool.

arun

async def arun(_: ToolRunContext, search_query: str) -> str

Run the Search Tool asynchronously.