Member Junction
    Preparing search index...

    Type Alias ResolveHandoffTargetResult<T>

    ResolveHandoffTargetResult:
        | { Candidates: HandoffCandidate[]; Refusal?: undefined; Target: T }
        | {
            Candidates: HandoffCandidate[];
            Refusal: HandoffRefusal;
            Target?: undefined;
        }

    Type Parameters

    Type Declaration

    • { Candidates: HandoffCandidate[]; Refusal?: undefined; Target: T }
      • Candidates: HandoffCandidate[]

        Empty when target resolution succeeds.

      • OptionalRefusal?: undefined
      • Target: T

        Resolved target agent when all checks pass.

    • { Candidates: HandoffCandidate[]; Refusal: HandoffRefusal; Target?: undefined }
      • Candidates: HandoffCandidate[]

        Sorted list of up to 20 candidate agents the source may hand off to, populated on refusal.

      • Refusal: HandoffRefusal

        Refusal reason and model-facing guidance when the target is rejected.

      • OptionalTarget?: undefined