ModelChangeRecord class final
Records a change of the active model.
Ported from pi's ModelChangeEntry. baseUrl/customProvider pin
the serving endpoint and saved custom-provider entry (gh-1000): a
session restore re-resolves onto THAT entry instead of re-matching by
model id. Both are optional — records written before gh-1000 restore
with today's endpoint-keyed behavior.
- Inheritance
-
- Object
- SessionRecord
- ModelChangeRecord
Constructors
- ModelChangeRecord({required String id, required String? parentId, required DateTime timestamp, required String provider, required String modelId, String? baseUrl, String? customProvider})
-
Creates a ModelChangeRecord.
const
Properties
- baseUrl → String?
-
The endpoint base URL the model was served from (null = catalog
default).
final
- customProvider → String?
-
The saved custom-provider entry name that supplied the key (null =
none or a pre-gh-1000 record).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique record id (short random id generated by the storage).
finalinherited
- modelId → String
-
The model id.
final
- parentId → String?
-
Id of the parent record, or
nullfor a tree root.finalinherited - provider → String
-
The provider id (e.g.
anthropic).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
When the record was created.
finalinherited
- type → String
-
The type discriminator written to JSON (pi's
typefield).no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
payloadJson(
) → Map< String, dynamic> -
Type-specific fields merged into toJson by subclasses.
override
-
toJson(
) → Map< String, dynamic> -
Serializes to a JSON map with the
typediscriminator (pi shape).inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited