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 {
        config?: GenerateContentConfig;
        contents: Content[];
        liveConnectConfig: LiveConnectConfig;
        model?: string;
        toolsDict: { [key: string]: BaseTool };
    }

    Properties

    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.

    toolsDict: { [key: string]: BaseTool }

    The tools dictionary. Excluded from JSON serialization.