A11 TypeScript API - v0.7.0
    Preparing search index...

    Function presentInteraction

    • The blocks a single interaction contributes.

      Parameters

      • interaction: {
            action_calls: ActionMessage[];
            action_configs: Record<
                string,
                {
                    header_autofills: Record<string, Uint8Array<ArrayBufferLike>>;
                    peer:
                        | string
                        | {
                            endpoint: string;
                            identity: string;
                            protocol: "a11"
                            | "mcp";
                            scheme: "session" | "rtc" | "http" | "https" | "ws" | "wss";
                        };
                },
            >;
            action_inputs: Record<string, NodeFragment[]>;
            action_outputs: Record<string, NodeFragment[]>;
            backend_specific_metadata: Record<string, Uint8Array<ArrayBufferLike>>;
            content: Chunk[];
            created_at_millis?: number | null;
            id: string;
            model: string;
            previous_interaction_id: string;
            role: "user" | "system" | "model";
            status?: Status;
            system_instructions: Chunk[];
            usage_metadata?:
                | {
                    cache_write_tokens?: number
                    | null;
                    cached_input_tokens?: number | null;
                    input_tokens?: number | null;
                    output_tokens?: number | null;
                    reasoning_tokens?: number | null;
                    total_tokens?: number | null;
                    [key: string]: unknown;
                }
                | null;
            [key: string]: unknown;
        }
      • logs: Record<string, string> = {}
      • statuses: Record<string, Status> = {}
      • Optionalinputs: Record<string, Record<string, unknown>>
      • Optionaloutputs: Record<string, Record<string, unknown>>
      • completeInputs: ReadonlySet<string> = ...

      Returns Promise<StatusOr<PresentationTurn>>