[Go to site: main page, start]

ADK for TypeScript: API Reference
    Preparing search index...

    Interface LlmRequest

    LLM request class that allows passing in tools, output schema and system instructions to the model.

    interface LlmRequest {
        allowedTools?: string[];
        config?: GenerateContentConfig;
        contents: Content[];
        liveConnectConfig: LiveConnectConfig;
        model?: string;
        previousInteractionId?: string;
        toolsDict: { [key: string]: BaseTool };
    }

    Properties

    allowedTools?: string[]

    The set of allowed tools, populated by request processors.

    config?: GenerateContentConfig

    Additional config for the generate content request. Tools in generateContentConfig should not be set directly; use appendTools.

    contents: Content[]

    The contents to send to the model.

    liveConnectConfig: LiveConnectConfig
    model?: string

    The model name.

    previousInteractionId?: string

    The interaction ID from the previous turn, if any.

    toolsDict: { [key: string]: BaseTool }

    The tools dictionary. Excluded from JSON serialization.