Backplane. AgentRuntime. ToolEffects behaviour
(backplane_agent_runtime v1.6.0)
Copy Markdown
Tool effects and cancellation boundary for Backplane agent runtime.
Summary
Types
@type adapter() :: module()
Callbacks
@callback cancel(map()) :: :ok | {:error, Backplane.AgentRuntime.Error.t()}
@callback execute(map()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
Functions
@spec cancel(adapter(), map()) :: :ok | {:error, Backplane.AgentRuntime.Error.t()}
@spec execute(adapter(), map(), map()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@spec validate_output(map(), keyword()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}