SessionContext class

Facts about the environment the agent runs in, gathered once per session.

Constructors

SessionContext({required String workspaceRoot, required String platform, required String shell, required DateTime date, required String modelName, required bool isGitRepository, required String? gitSnapshot, required List<InstructionFile> instructionFiles})
const

Properties

date → DateTime
final
gitSnapshot → String?
Branch, status, and recent commits at session start, or null outside git.
final
hashCode → int
The hash code for this object.
no setterinherited
instructionFiles → List<InstructionFile>
final
isGitRepository → bool
final
modelName → String
final
platform → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shell → String
final
workspaceRoot → String
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

Static Methods

collect({required String workspaceRoot, required String modelName}) → Future<SessionContext>