AgentSessionDocumentPatch class final

Implemented types

Constructors

AgentSessionDocumentPatch({PatchValue<String> id = const PatchValue.unchanged(), PatchValue<AgentSessionStatus> status = const PatchValue.unchanged(), PatchValue<List<AgentMessage>?> messages = const PatchValue.unchanged(), PatchValue<List<AgentToolCall>?> toolCalls = const PatchValue.unchanged(), PatchValue<String?> activeTool = const PatchValue.unchanged(), PatchValue<int?> turns = const PatchValue.unchanged()})

Properties

activeTool → PatchValue<String?>
final
hashCode → int
The hash code for this object.
no setterinherited
id → PatchValue<String>
final
isEmpty → bool
Whether this patch carries no change at all.
no setteroverride
isNotEmpty → bool
Whether this patch carries at least one change.
no setteroverride
messages → PatchValue<List<AgentMessage>?>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → PatchValue<AgentSessionStatus>
final
toolCalls → PatchValue<List<AgentToolCall>?>
final
turns → PatchValue<int?>
final

Methods

apply(covariant AgentSessionDocument target) → AgentSessionDocument
Returns target with this patch applied.
override
compose(covariant ZorphyPatch<AgentSessionDocument> next) → AgentSessionDocumentPatch
Returns the patch that applies this patch first and then next.
override
invert(AgentSessionDocument before) → AgentSessionDocumentPatch
Returns the patch that undoes this one for a value that was before.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEnvelope({Object? principalKey}) → Map<String, Object?>
toString() → String
A string representation of this object.
inherited
toWire() → Map<String, Object?>
The wire form of this patch: the field changes it carries, keyed by the field name they belong to.
override
withActiveTool(String? value) → AgentSessionDocumentPatch
withId(String value) → AgentSessionDocumentPatch
withMessages(List<AgentMessage>? value) → AgentSessionDocumentPatch
withStatus(AgentSessionStatus value) → AgentSessionDocumentPatch
withToolCalls(List<AgentToolCall>? value) → AgentSessionDocumentPatch
withTurns(int? value) → AgentSessionDocumentPatch

Operators

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