Agents 0.0.2
Edge AI Agents SDK
|
Media loader tool that loads media from URLs and returns them as base64 encoded data URLs. More...
#include <media_loader_tool.h>
Public Member Functions | |
MediaLoaderTool (std::shared_ptr< LLMInterface > llm) | |
Construct a new Image Loader Tool object. | |
ToolResult | execute (const JsonObject ¶ms) const override |
Execute the Image Loader Tool. | |
const String & | getName () const |
Get the name of the tool. | |
const String & | getDescription () const |
Get the description of the tool. | |
const ParameterMap & | getParameters () const |
Get the parameters of the tool. | |
const JsonObject & | getSchema () const |
Get the schema of the tool. | |
void | addParameter (const Parameter ¶m) |
Add a parameter to the tool. | |
void | setCallback (ToolCallback callback) |
Set the execution callback. | |
bool | validateParameters (const JsonObject ¶ms) const |
Validate parameters against schema. | |
Media loader tool that loads media from URLs and returns them as base64 encoded data URLs.
agents::tools::MediaLoaderTool::MediaLoaderTool | ( | std::shared_ptr< LLMInterface > | llm | ) |
Construct a new Image Loader Tool object.
llm | The LLM interface to use |
|
inherited |
Add a parameter to the tool.
param | The parameter to add |
|
overridevirtual |
Execute the Image Loader Tool.
params | The parameters for the Image Loader Tool |
Reimplemented from agents::Tool.
|
inherited |
Get the description of the tool.
|
inherited |
Get the name of the tool.
|
inherited |
Get the parameters of the tool.
|
inherited |
Get the schema of the tool.
|
inherited |
Set the execution callback.
callback | The callback to set |
|
inherited |
Validate parameters against schema.
params | The parameters to validate |