Agents 0.0.2
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  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...
 
class  WebSearchTool
 Web search tool that provides secure web search capabilities. More...
 
class  WikipediaTool
 Wikipedia search tool that uses the MediaWiki API. More...
 

Functions

void registerStandardTools (ToolRegistry &registry)
 Create and register standard tools.
 
std::shared_ptr< ToolcreateShellCommandTool ()
 Creates a tool for executing shell commands.
 
std::shared_ptr< ToolcreateWebSearchTool ()
 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< AgentContext > context)
 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.
 

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

◆ 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

◆ createSummarizationTool()

std::shared_ptr< Tool > agents::tools::createSummarizationTool ( std::shared_ptr< AgentContext > context)

Creates a tool for text summarization.

Parameters
contextThe agent context containing the LLM
Returns
Pointer to tool

◆ createWebSearchTool()

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

Creates a tool for performing web searches.

Returns
Pointer to tool

◆ createWikipediaTool()

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

Creates a tool for retrieving information from Wikipedia.

Returns
Pointer to tool

◆ registerStandardTools()

void agents::tools::registerStandardTools ( ToolRegistry & registry)

Create and register standard tools.

Parameters
registryThe tool registry to register tools with