Use ActiveAgents$.
Set the metadata provider this service should use. When unset, falls back to Metadata.Provider.
Stops an agent run that is still in flight.
The run's row is the control channel: this marks it Cancelled with reason User Request,
and the server process that owns the run notices within a few seconds (the agent-run
watchdog's cancellation poll), aborts the in-flight step through the run's cancellation
token, and finalizes the run — keeping the payload as it stood — and its reply as stopped.
No request reaches the running process directly, so this works whichever replica owns it.
The row is loaded fresh rather than taken from the polled active-agent list, which refreshes every 30 seconds and may not hold a run that started a moment ago.
true when the row was marked; false when the run was not found, had already finished (nothing to stop), or the save was refused.
Stops the in-flight run behind an agent's reply message, for callers that know the conversation detail but not yet the run (the run row is created a moment after the reply placeholder). Finds the newest Running or Paused run for that detail and stops it.
true when a run was found and marked; false otherwise.
OptionalconversationId: stringUse GetActiveAgents.
Gets active agents as an observable
OptionalconversationId: stringOptional conversation ID to filter by
Gets a specific agent by ID
The agent run ID
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
OptionalconversationId: stringUse Refresh.
Manually refreshes active agents
OptionalconversationId: stringOptional conversation ID to filter by
The conversation scope whose runs are read; the trunk of conversationId when null
Updates the poll interval
The new poll interval in milliseconds
OptionalconversationId: stringUse StartPolling.
Starts polling for active agents
The current user context
OptionalconversationId: stringOptional conversation ID to filter by
The conversation scope whose runs are read; the trunk of conversationId when null
Use StopPolling.
Stops polling for active agents
Manages agent state and provides real-time updates for active agents Polls for agent status changes and provides reactive streams