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.
gemini-next-gen-api/resources/*
import { Interactions } from `gemini-next-gen-api/resources/interactions`;import { createClient } from `gemini-next-gen-api/tree-shakable`;const client = createClient({ resources: [Interactions],}); Copy
import { Interactions } from `gemini-next-gen-api/resources/interactions`;import { createClient } from `gemini-next-gen-api/tree-shakable`;const client = createClient({ resources: [Interactions],});
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.