Transfer context for multi-agent workflows Tracks the chain of agent transfers for telemetry

interface TransferContext {
    transferChain: string[];
    transferDepth: number;
    rootAgentName: string;
    rootSpanContext?: SpanContext;
    previousSpanContext?: SpanContext;
}

Properties

transferChain: string[]

Array of agent names in transfer order

transferDepth: number

Current depth in transfer chain (0 = root)

rootAgentName: string

Name of the root agent that started the chain

rootSpanContext?: SpanContext

Span context of the root agent for linking

previousSpanContext?: SpanContext

Span context of the previous agent in the chain