• Creates a client with a subset of the available resources to reduce bundle size. Import the resource classes you need from gemini-next-gen-api/resources/*. Use the BaseResource variants if you do not need to use subresources.

    Type Parameters

    Parameters

    Returns PartialGeminiNextGenAPIClient<InferClientStructure<T>>

    import { Interactions } from `gemini-next-gen-api/resources/interactions`;
    import { createClient } from `gemini-next-gen-api/tree-shakable`;

    const client = createClient({
    resources: [Interactions],
    });