RunnableAgent class

An agent implemented from a Runnable.

Inheritance

Constructors

RunnableAgent(Runnable<AgentPlanInput, RunnableOptions, List<BaseAgentAction>> runnable, {required List<Tool<Object, ToolOptions, Object>> tools})
An agent implemented from a Runnable.
const

Properties

agentType String
Returns the type of agent.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inputKeys Set<String>
Returns the input keys.
no setteroverride
returnValues Set<String>
Returns values of the agent.
no setterinherited
runnable Runnable<AgentPlanInput, RunnableOptions, List<BaseAgentAction>>
The runnable that implements the agent.
final
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.
finalinherited

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.
override
returnStoppedResponse(AgentEarlyStoppingMethod earlyStoppingMethod, List<AgentStep> intermediateSteps) AgentFinish
Return response when agent has been stopped due to max iterations.
inherited
toString() String
A string representation of this object.
inherited

Operators

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