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

    Function executeActionsFromInteraction

    • Run every allow-listed action call in interaction as a nested action and return the produced output fragments, keyed by the nested action's call id.

      Parameters

      • interaction: {
            action_calls: unknown[];
            action_configs: Record<string, unknown>;
            action_inputs: Record<string, unknown[]>;
            action_outputs: Record<string, unknown[]>;
            backend_specific_metadata: Record<string, string>;
            content: unknown[];
            created_at_millis?: number | null;
            id: string;
            model: string;
            previous_interaction_id: string;
            role: "user" | "system" | "model";
            status?: unknown;
            system_instructions: unknown[];
            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;
        }
      • action: Action
      • registry: ActionRegistryLike | null = null
      • options: { timeoutMs?: number } = {}

      Returns Promise<StatusOr<Record<string, NodeFragment[]>>>