session property

InferenceModelSession get session

The session this chat generates on: core's structured session for a chat with a responseFormat, else the engine's. Set by initSession, and again whenever the chat rebuilds its session. ChatTurnHooks always receive the engine's own.

Implementation

InferenceModelSession get session => _session ?? (throw _NoSessionError());
set session (InferenceModelSession value)

Implementation

set session(InferenceModelSession value) => _session = value;