AgentMessage class

Inheritance
Available extensions
Annotations
  • @artifact

Constructors

AgentMessage.new({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
toLangChain → ChatMessage

Available on Message, provided by the XChatMessage2LC extension

no setter
toolCalls List<ToolCall>
final

Methods

copyWith({_8? content, _10? toolCalls, _w resetToolCalls = _F, _10? appendToolCalls, _10? removeToolCalls}) → _e

Available on _e, provided by the $AgentMessage extension

copyWith({_8? content}) → _b

Available on _b, provided by the $Message extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({bool pretty = _F}) → _3

Available on _e, provided by the $AgentMessage extension

toJson({bool pretty = _F}) → _3

Available on _b, provided by the $Message extension

toMap() → _1

Available on _e, provided by the $AgentMessage extension

toMap() → _1

Available on _b, provided by the $Message extension

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

Operators

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