AgentMessage class

Inheritance
Available extensions
Annotations

Constructors

AgentMessage({required Content content, List<ToolCall> toolCalls = const []})
const

Properties

content Content
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to → _a

Available on _o, provided by the $AgentMessage extension

no setter
to → _a

Available on _n, provided by the $Message extension

no setter
toLangChain → ChatMessage

Available on Message, provided by the XChatMessage2LC extension

no setter
toolCalls List<ToolCall>
final

Methods

copyWith({_i? content, _1r? toolCalls, _19 resetToolCalls = _F, _1r? appendToolCalls, _1r? removeToolCalls}) → _o

Available on _o, provided by the $AgentMessage extension

copyWith({_i? content}) → _n

Available on _n, provided by the $Message extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → _5

Available on _o, provided by the $AgentMessage extension

toMap() → _5

Available on _n, provided by the $Message extension

toString() String
A string representation of this object.
inherited

Operators

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