Agent class

Constructors

Agent.new({String? user, required ConnectedChatModel llm, required ChatProvider chatProvider, String? initialSystemMessage, Map<String, dynamic> customData = const {}})

Properties

chatProvider ChatProvider
final
customData Map<String, dynamic>
final
hashCode int
The hash code for this object.
no setterinherited
initialSystemMessage String?
final
llm ConnectedChatModel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user String?
final

Methods

addMessage(Message message) Future<void>
call({ToolSchema? responseFormat, List<Tool> tools = const [], int maxRecursiveToolCalls = 1}) Future<AgentMessage>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readMessages() Future<List<Message>>
toString() String
A string representation of this object.
inherited

Operators

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