Agents 1.6.9
Edge AI Agents SDK
Loading...
Searching...
No Matches
agents::tools Namespace Reference

Tools Namespace. More...

Classes

class  BraveSearchTool
 Web search tool backed by the Brave Search API. More...
class  CalculatorTool
 Tool that evaluates mathematical expressions safely using Python. More...
class  DatetimeTool
 Tool that returns the current date, time, day of week, and timezone. More...
class  FetchWebpageTool
 Tool that fetches and returns the plain-text content of any web page. More...
class  FileReadTool
 File read tool that provides secure file reading capabilities. More...
class  FileWriteTool
 File write tool that provides secure file writing capabilities. More...
class  MediaLoaderTool
 Media loader tool that loads media from URLs and returns them as base64 encoded data URLs. More...
class  PythonTool
 Executes Python code via subprocess and returns captured stdout/stderr. More...
class  ShellCommandTool
 Shell command tool that provides secure command execution capabilities. More...
class  ToolRegistry
 Registry for tools that agents can use. More...
class  WeatherTool
 Tool that fetches current weather conditions for any location via wttr.in. More...
struct  SearchResult
 Structured search result item. More...
struct  KnowledgeGraphInfo
 Knowledge graph information. More...
struct  DirectAnswer
 Direct answer extracted from SerpAPI response (answer boxes, featured snippets, etc.). More...
struct  FetchedPageContent
 Content fetched from a search result page for deep analysis. More...
class  WebSearchTool
 Web Search Tool with LLM-powered summarization. More...
class  WikipediaTool
 Wikipedia search tool that uses the MediaWiki API. More...

Functions

std::shared_ptr< ToolcreateShellCommandTool ()
 Creates a tool for executing shell commands.
std::shared_ptr< ToolcreateBraveSearchTool ()
 Creates a tool for performing web searches via Brave Search API.
std::shared_ptr< ToolcreateWebSearchTool (std::shared_ptr< LLMInterface > llm)
 Creates a tool for performing web searches.
std::shared_ptr< ToolcreateWikipediaTool ()
 Creates a tool for retrieving information from Wikipedia.
std::shared_ptr< ToolcreatePythonTool ()
 Creates a tool for running Python code.
std::shared_ptr< ToolcreateFileReadTool ()
 Creates a tool for reading files.
std::shared_ptr< ToolcreateFileWriteTool ()
 Creates a tool for writing files.
std::shared_ptr< ToolcreateMediaLoaderTool (std::shared_ptr< LLMInterface > llm)
 Creates a tool for loading media from URLs or local files.
std::shared_ptr< ToolcreateFetchWebpageTool ()
 Creates a tool for fetching web page content.
std::shared_ptr< ToolcreateWeatherTool ()
 Creates a tool for getting current weather conditions.
std::shared_ptr< ToolcreateDatetimeTool ()
 Creates a tool for getting the current date and time.
std::shared_ptr< ToolcreateCalculatorTool ()
 Creates a tool for evaluating mathematical expressions.

Detailed Description

Tools Namespace.

Function Documentation

◆ createBraveSearchTool()

std::shared_ptr< Tool > agents::tools::createBraveSearchTool ( )

Creates a tool for performing web searches via Brave Search API.

Returns
Pointer to tool

◆ createCalculatorTool()

std::shared_ptr< Tool > agents::tools::createCalculatorTool ( )

Creates a tool for evaluating mathematical expressions.

Returns
Pointer to tool

◆ createDatetimeTool()

std::shared_ptr< Tool > agents::tools::createDatetimeTool ( )

Creates a tool for getting the current date and time.

Returns
Pointer to tool

◆ createFetchWebpageTool()

std::shared_ptr< Tool > agents::tools::createFetchWebpageTool ( )

Creates a tool for fetching web page content.

Returns
Pointer to tool

◆ createFileReadTool()

std::shared_ptr< Tool > agents::tools::createFileReadTool ( )

Creates a tool for reading files.

Returns
Pointer to tool

◆ createFileWriteTool()

std::shared_ptr< Tool > agents::tools::createFileWriteTool ( )

Creates a tool for writing files.

Returns
Pointer to tool

◆ createMediaLoaderTool()

std::shared_ptr< Tool > agents::tools::createMediaLoaderTool ( std::shared_ptr< LLMInterface > llm)

Creates a tool for loading media from URLs or local files.

Parameters
llmThe LLM interface to use
Returns
Pointer to tool
Examples
multimodal_example.cpp, and robotics_object_detection_demo.cpp.

◆ createPythonTool()

std::shared_ptr< Tool > agents::tools::createPythonTool ( )

Creates a tool for running Python code.

Returns
Pointer to tool

◆ createShellCommandTool()

std::shared_ptr< Tool > agents::tools::createShellCommandTool ( )

Creates a tool for executing shell commands.

Returns
Pointer to tool

◆ createWeatherTool()

std::shared_ptr< Tool > agents::tools::createWeatherTool ( )

Creates a tool for getting current weather conditions.

Returns
Pointer to tool

◆ createWebSearchTool()

std::shared_ptr< Tool > agents::tools::createWebSearchTool ( std::shared_ptr< LLMInterface > llm)

Creates a tool for performing web searches.

Returns
Pointer to tool
Examples
coroutine_example.cpp, orchestrator_example.cpp, routing_example.cpp, and simple_agent.cpp.

◆ createWikipediaTool()

std::shared_ptr< Tool > agents::tools::createWikipediaTool ( )

Creates a tool for retrieving information from Wikipedia.

Returns
Pointer to tool
Examples
coroutine_example.cpp, orchestrator_example.cpp, routing_example.cpp, and simple_agent.cpp.