AgentSea.Tool.Spec (agentsea_core v0.1.0)

Copy Markdown

A runtime (function-backed) tool, for tools that can't be compile-time modules — e.g. ad-hoc closures or tools discovered dynamically (MCP). An agent accepts these alongside AgentSea.Tool modules in its tools list.

Summary

Types

t()

@type t() :: %AgentSea.Tool.Spec{
  description: String.t() | nil,
  name: String.t(),
  run: (map(), map() -> {:ok, term()} | {:error, term()}),
  schema: keyword()
}