Class CompositeAgentObserver

Assembly: redb.Route.Llm.dll

Composite observer — fans out events to every registered .
Exceptions in one observer never break the fan-out.

public sealed class CompositeAgentObserver : IAgentObserver

Inheritance

Object→CompositeAgentObserver

Implements

Methods

OnDeltaAsync(AgentDeltaContext, CancellationToken)

Called for each piece of a streamed model call (stream=calls) as it arrives: visible text or the

public Task OnDeltaAsync(AgentDeltaContext context, CancellationToken ct = default)

OnIterationCompletedAsync(AgentIterationContext, CancellationToken)

Called after each provider call returns, before tool dispatch.

public Task OnIterationCompletedAsync(AgentIterationContext context, CancellationToken ct = default)

OnRunCompletedAsync(AgentRunCompletedContext, CancellationToken)

Called once when an agent run ends (whether normally or via cancellation/error).

public Task OnRunCompletedAsync(AgentRunCompletedContext context, CancellationToken ct = default)

OnRunStartedAsync(AgentRunContext, CancellationToken)

Called once when an agent run begins.

public Task OnRunStartedAsync(AgentRunContext context, CancellationToken ct = default)

OnToolInvokedAsync(AgentToolInvocationContext, CancellationToken)

Called for each tool invocation, after it returns or throws.

public Task OnToolInvokedAsync(AgentToolInvocationContext context, CancellationToken ct = default)

Constructors

CompositeAgentObserver(IEnumerable<IAgentObserver>)

Creates a composite over the provided observers (order preserved).