SessionContext class final

The model-derived state of a session along the active branch.

Ported from pi's SessionContext.

Constructors

SessionContext({required List<Message> messages, required String thinkingLevel, required SessionModelPin? model, required List<String>? activeToolNames})
Creates a SessionContext.
const

Properties

activeToolNames → List<String>?
The active tool names in effect at the leaf, if ever set.
final
hashCode → int
The hash code for this object.
no setterinherited
messages → List<Message>
The rebuilt conversation context, oldest first.
final
model → SessionModelPin?
The model in effect at the leaf, from the last model_change record or assistant message. baseUrl/customProvider carry the serving endpoint and saved custom-provider entry when the last record was a gh-1000 model_change (a restore re-resolves onto that entry); assistant-message-derived models carry neither.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thinkingLevel → String
The thinking level in effect at the leaf (off by default).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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