currentRunId property
String?
get
currentRunId
The id of the run in flight, or null between turns.
Read lazily by AgentRunScope.runIdResolver so each model call — the tool loop and delegated agents included — is stamped with the turn it belongs to. One scope serves every turn of a conversation, so this cannot be captured when the scope is built.
Implementation
String? get currentRunId => _currentRun?.id;