ResponseStatusDetails: {
    reason: "max_output_tokens" | "content_filter" | string;
    type: "incomplete";
} | {
    error?: {
        code: "server_error" | "rate_limit_exceeded" | string;
        message: string;
    };
    type: "failed";
} | {
    reason: "turn_detected" | "client_cancelled" | string;
    type: "cancelled";
}

Type declaration

  • reason: "max_output_tokens" | "content_filter" | string
  • type: "incomplete"

Type declaration

  • Optional error?: {
        code: "server_error" | "rate_limit_exceeded" | string;
        message: string;
    }
    • code: "server_error" | "rate_limit_exceeded" | string
    • message: string
  • type: "failed"

Type declaration

  • reason: "turn_detected" | "client_cancelled" | string
  • type: "cancelled"