AgentTool

org.llm4s.agent.graph.tool.AgentTool
See theAgentTool companion object
trait AgentTool[A]

A tool the agent loop can call: typed arguments, validated against AgentToolSpec.argumentSchema and decoded with its codec before execute runs. A tool writes only the state keys in writes.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Asking[A, Q, Ans]

Members list

Value members

Abstract methods

def execute(args: A, context: ToolContext): ToolOutcome

Concrete methods

def writes: Set[StateKey[_, _]]

The state keys this tool's Success updates may touch.

The state keys this tool's Success updates may touch.

Attributes