BaseActionAgent class abstract

Base class for action agents.

Inheritance
Implementers

Constructors

BaseActionAgent({required List<Tool<Object, ToolOptions, Object>> tools})
Base class for action agents.
const

Properties

agentType String
Returns the type of agent.
no setter
hashCode int
The hash code for this object.
no setterinherited
inputKeys Set<String>
Returns the input keys.
no setter
returnValues Set<String>
Returns values of the agent.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tools List<Tool<Object, ToolOptions, Object>>
The tools this agent can use.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
plan(AgentPlanInput input) Future<List<BaseAgentAction>>
Given the input and previous steps, returns the next action to take.
returnStoppedResponse(AgentEarlyStoppingMethod earlyStoppingMethod, List<AgentStep> intermediateSteps) AgentFinish
Return response when agent has been stopped due to max iterations.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

agentReturnKey → const String
Return key for the agent's output.
agentScratchpadInputKey → const String
The key for the scratchpad (intermediate steps) of the agent.