AgentMessage class final

Implemented types

Constructors

AgentMessage.fromTrusted({required AgentMessageRole role, required String text, required int turn})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
role → AgentMessageRole
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
final
turn → int
final

Methods

copyWith({AgentMessageRole? role, String? text, int? turn}) → AgentMessage
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override
toWire() → Map<String, Object?>

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Map<String, dynamic> json) → ZorphyBoundaryResult<AgentMessage>
fromWire(Map<String, Object?> raw) → ZorphyBoundaryResult<AgentMessage>
resolvePath(String pointer) → ZorphyLens<AgentMessage, Object?>?
Resolves a JSON Pointer into a ZorphyLens over AgentMessage.

Constants

lenses → const AgentMessageLenses