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

Tools Namespace. More...

Classes

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
 Python execution tool that provides safe Python code execution capabilities. More...
class  RespondTool
 Respond tool that provides safe response generation capabilities. More...
class  ShellCommandTool
 Shell command tool that provides secure command execution capabilities. More...
class  SummarizationTool
 Summarization tool that provides text summarization capabilities using LLM. More...
class  ToolRegistry
 Registry for tools that agents can use. More...
struct  SearchResult
 Structured search result item. More...
struct  KnowledgeGraphInfo
 Knowledge graph information. 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< 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< ToolcreateSummarizationTool (std::shared_ptr< LLMInterface > llm)
 Creates a tool for text summarization.
std::shared_ptr< ToolcreateMediaLoaderTool (std::shared_ptr< LLMInterface > llm)
 Creates a tool for loading media from URLs or local files.
std::shared_ptr< ToolcreateRespondTool ()
 Creates a tool for generating safe responses.

Detailed Description

Tools Namespace.

Function Documentation

◆ 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

◆ createRespondTool()

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

Creates a tool for generating safe responses.

Returns
Pointer to tool

◆ createShellCommandTool()

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

Creates a tool for executing shell commands.

Returns
Pointer to tool

◆ createSummarizationTool()

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

Creates a tool for text summarization.

Parameters
llmThe LLM interface to use
Returns
Pointer to tool
Examples
coroutine_example.cpp, and simple_agent.cpp.

◆ 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.