Member Junction
    Preparing search index...

    Interface ExecuteRelayedToolInput

    Input for RealtimeClientSessionService.ExecuteRelayedTool.

    Carries the single tool call the browser relayed plus the linkage needed to run a delegated target-agent run under the same session.

    interface ExecuteRelayedToolInput {
        AbortSignal?: AbortSignal;
        AgentSessionID: string;
        AllowedAgents?: RealtimeAllowedAgent[];
        Call: RealtimeToolCall;
        OnProgress?: AgentExecutionProgressCallback;
        ParentRunID?: string;
        ResumeRunID?: string;
        TargetAgentID: string;
    }
    Index

    Properties

    AbortSignal?: AbortSignal

    Optional abort signal so a barge-in on the browser can cancel an in-flight delegated run. Threaded into the delegated agent run's cancellationToken.

    AgentSessionID: string

    The shared session id grouping this voice session's runs.

    AllowedAgents?: RealtimeAllowedAgent[]

    The session's effective allowed delegation targets (the union-accumulated set from the config cascade; Move 4). When the model names a colleague in the call arguments (agent), it must resolve to one of these (or the lead); an unknown name yields a structured "not available" result. Absent/empty ⇒ classic single-target behavior (every call routes to TargetAgentID).

    The tool call the browser relayed from the provider.

    Optional progress callback invoked with each delegated-run progress event (mirrors the normal agent-run path's onProgress). The transport layer (the MJServer resolver) publishes these so the realtime model can narrate the target agent's progress while it runs. When omitted, the delegated run streams nothing and the model only receives the final tool result.

    ParentRunID?: string

    The id of the (co-agent) run that owns this session, used as the delegated run's parent. Optional.

    ResumeRunID?: string

    Optional id of a previously-paused delegated run (Status AwaitingFeedback) to RESUME instead of starting a fresh run. When set, delegateToTarget passes it as lastRunId (with autoPopulateLastRunPayload) to AgentRunner.RunAgent, so the user's answer continues the SAME interactive run (e.g. confirming a Query Builder task graph).

    TargetAgentID: string

    The top-level (lead) target agent id for invoke-target-agent delegation.