Class AgentRunContext
The agent run and tool call a tool is running for, ambient while it runs. A tool that writes
to another system reads IdempotencyKey and passes it on (an
Idempotency-Key header, an API field), so a call a resumed run sends again is recognized
by that system. Null outside a run.
public sealed class AgentRunContext
- Inheritance
-
AgentRunContext
- Inherited Members
Properties
- CallId
Gets the tool call's identifier.
- Current
Gets the context of the call running on this flow, or null outside an agent run.
- IdempotencyKey
Gets the call's idempotency key: derived from the run and the call, so it is the same every time the call is sent, across resumes and processes.
- RunId
Gets the run's identifier.
Methods
- KeyOf(string, string)
The idempotency key of a call of a run, as IdempotencyKey derives it.