Interface CrossAgentOutputPayload

Payload for cross-agent output evaluation.

Provides information about both the source agent (producing output) and the observer agent (running the guardrail).

interface CrossAgentOutputPayload {
    sourceAgentId: string;
    observerAgentId: string;
    agencyId?: string;
    chunk: AgentOSResponse;
    context: GuardrailContext;
}

Properties

sourceAgentId: string

The agent that produced this output chunk. Use this to apply agent-specific policies.

observerAgentId: string

The agent running this guardrail (the observer/supervisor).

agencyId?: string

Agency ID if both agents belong to the same agency. Useful for agency-level policy enforcement.

The output chunk from the source agent.

Guardrail context for policy decisions.