@ai-sdk/google
Version:
The **[Google Generative AI provider](https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Google Generative AI](https://ai.google/discover/generativeai/)
17 lines (15 loc) • 384 B
text/typescript
import {
createProviderToolFactory,
lazySchema,
zodSchema,
} from '@ai-sdk/provider-utils';
import { z } from 'zod/v4';
export const urlContext = createProviderToolFactory<
{
// Url context does not have any input schema, it will directly use the url from the prompt
},
{}
>({
id: 'google.url_context',
inputSchema: lazySchema(() => zodSchema(z.object({}))),
});