Observation class

Top-level typed observation bundle.

Annotations
  • @immutable

Constructors

Observation({required CoreFragment core, required Map<String, ExtensionFragment> extensions, required StabilityMetadata stability, String? screenshot})
const
Observation.empty()
Empty prior used as the "previous observation" on the first turn.
factory
Observation.fromJson(Map<String, dynamic> j)
Decode a wire-format observation map. Tolerant of missing keys: any absent top-level field is treated as empty.
factory

Properties

core CoreFragment
Core fragment (semantics nodes, route stack, runtime errors).
final
extensions Map<String, ExtensionFragment>
Extension fragments keyed by namespace.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenshot String?
Optional base64-encoded PNG screenshot. Present only when the binding reports screenshot_png_b64. Carried through to providers gated on capabilities.vision.
final
stability StabilityMetadata
Stability metadata block from the binding.
final

Methods

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.
inherited

Operators

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