ExecutionContext Type
Represents the execution context passed to an agent during its run
Record fields
| Record Field |
Description
|
|
Cancellation token for cooperative cancellation
|
|
Unique identifier for this execution run
|
|
Parent execution context (for delegated sub-agent calls)
|
|
The sandbox configuration governing this execution
|
|
When the execution started
|
|
Current resource usage (mutable tracking)
|
Instance members
| Instance member |
Description
|
|
|
|
|
Full Usage:
this.RecordLlmCall
Parameters:
int
costUsd : decimal
|
|
Full Usage:
this.RecordToolCall
|
|
Static members
| Static member |
Description
|
Full Usage:
ExecutionContext.Create(sandbox)
Parameters:
SandboxConfig
Returns: ExecutionContext
|
|
Full Usage:
ExecutionContext.CreateWithCancellation(sandbox) (ct)
Parameters:
SandboxConfig
ct : CancellationToken
Returns: ExecutionContext
|
|
Nao