React Native Firebase
    Preparing search index...

    Interface EnhancedGenerateContentResponse

    Response object wrapped with helper methods.

    interface EnhancedGenerateContentResponse {
        candidates?: GenerateContentCandidate[];
        functionCalls: () => FunctionCall[] | undefined;
        inlineDataParts: () => InlineDataPart[] | undefined;
        promptFeedback?: PromptFeedback;
        text: () => string;
        thoughtSummary: () => string | undefined;
        usageMetadata?: UsageMetadata;
    }

    Hierarchy (View Summary)

    Index

    Properties

    functionCalls: () => FunctionCall[] | undefined

    Aggregates and returns every FunctionCall from the first candidate of GenerateContentResponse.

    If the prompt or candidate was blocked.

    inlineDataParts: () => InlineDataPart[] | undefined

    Aggregates and returns all InlineDataParts from the GenerateContentResponse's first candidate.

    Type Declaration

    If the prompt or candidate was blocked.

    promptFeedback?: PromptFeedback
    text: () => string

    Returns the text string from the response, if available. Throws if the prompt or candidate was blocked.

    thoughtSummary: () => string | undefined

    Aggregates and returns every TextPart with their thought property set to true from the first candidate of GenerateContentResponse.

    If the prompt or candidate was blocked.

    Thought summaries provide a brief overview of the model's internal thinking process, offering insight into how it arrived at the final answer. This can be useful for debugging, understanding the model's reasoning, and verifying its accuracy.

    Thoughts will only be included if ThinkingConfig.includeThoughts is set to true.

    usageMetadata?: UsageMetadata