@squidcloud/client
    Preparing search index...

    Interface AiQueryResponse

    Response from an AI query execution. Contains the generated answer, optional explanation, and executed query details.

    interface AiQueryResponse {
        answer: string;
        clarificationQuestion?: string;
        executedQuery?: string;
        explanation?: string;
        queryMarkdownType?: string;
        rawResultsUrl?: string;
        success: boolean;
        usedCodeInterpreter?: boolean;
    }
    Index

    Properties

    answer: string

    AI-generated answer for the query.

    clarificationQuestion?: string

    When the AI needs clarification to generate a query, this field contains the clarification question. Only populated when generateQueryOptions.allowClarification is enabled and the AI determines it cannot generate a valid query without more information.

    executedQuery?: string

    Query executed by the AI, if applicable.

    explanation?: string

    Optional explanation for the AI-generated answer.

    queryMarkdownType?: string

    Markdown format type of the executed query response.

    rawResultsUrl?: string

    URL to access raw results from the query execution.

    success: boolean

    Indicates whether the query execution was successful.

    usedCodeInterpreter?: boolean

    Indicates whether code interpreter was used to analyze the results.