TurnContext class
Context scoped to a single interaction turn in the Google Antigravity SDK.
- Inheritance
-
- Object
- HookContext
- TurnContext
Constructors
- TurnContext(SessionContext sessionContext)
-
Creates a new TurnContext tied to a specific
sessionContext.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- parent → HookContext?
-
The parent state store, if any.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionContext → SessionContext
-
The active agent session context.
final
Methods
-
acquire(
) → void -
Direct acquire proxy for using StateStore directly.
inherited
-
getState(
String key, [dynamic defaultValue]) → dynamic -
Retrieves a value from the local state store or its parents.
inherited
-
lock(
) → Lock -
Returns the underlying lock.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → void -
Direct release proxy for using StateStore directly.
inherited
-
setState(
String key, dynamic value) → void -
Stores a value in the local state store.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateState(
String key, dynamic updaterFn(dynamic), [dynamic defaultValue]) → dynamic -
Atomically updates a value in the local state store.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited