@ai-sdk/google
Version:
19 lines (17 loc) • 465 B
text/typescript
import {
createProviderExecutedToolFactory,
lazySchema,
zodSchema,
} from '@ai-sdk/provider-utils';
import { z } from 'zod/v4';
export const urlContext = createProviderExecutedToolFactory<
{
// 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({}))),
outputSchema: lazySchema(() => zodSchema(z.object({}))),
});