SessionInfoUpdate class final

Update to session metadata. All fields are optional to support partial updates.

Agents send this notification to update session information like title or custom metadata. This allows clients to display dynamic session names and track session state changes.

Omitted fields leave the existing session info unchanged. null clears the corresponding value.

Implemented types
Annotations
  • @JsonSerializable.new(createFactory: false, createToJson: false)

Constructors

SessionInfoUpdate({AcpPatch<String> title = const AcpPatch<String>.unchanged(), AcpPatch<AcpDateTimeString> updatedAt = const AcpPatch<AcpDateTimeString>.unchanged(), AcpJsonObject? meta})
Creates a SessionInfoUpdate value.
SessionInfoUpdate.fromJson(Map<String, Object?> json)
Decodes a JSON object, discarding recoverable issues.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
meta AcpJsonObject?
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Omitted means no metadata update; null is an explicit clear signal. Implementations MUST NOT make assumptions about values at these keys.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title AcpPatch<String>
Human-readable title for the session. Set to null to clear.
final
updatedAt AcpPatch<AcpDateTimeString>
RFC 3339 timestamp of last activity. Set to null to clear.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAcpJson() AcpJsonObject
Converts this protocol value to its immutable JSON representation.
override
toJson() Map<String, Object?>
Encodes this value to its wire object.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

decode(Object? json) → AcpDecoded<SessionInfoUpdate>
Decodes this model and reports recoverable issues.