AgentForge.Tools (AgentForge v0.2.2)

View Source

Manages a registry of tools that can be used in workflows. Each tool is a function that can be executed with input data and returns a result.

Summary

Functions

Returns a specification to start this module under a supervisor.

Creates a function that executes a registered tool.

Creates a function that executes multiple tools in sequence.

Retrieves a tool by name.

Lists all registered tools.

Registers a tool function with a given name.

Unregisters a tool by name.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

execute(name, registry \\ __MODULE__)

Creates a function that executes a registered tool.

execute_pipeline(tool_names, registry \\ __MODULE__)

Creates a function that executes multiple tools in sequence.

get(name, registry \\ __MODULE__)

Retrieves a tool by name.

list(registry \\ __MODULE__)

Lists all registered tools.

register(name, function, registry \\ __MODULE__)

Registers a tool function with a given name.

start_link(opts)

unregister(name, registry \\ __MODULE__)

Unregisters a tool by name.