vercel · Vercel AI SDK Docs
AI SDK Core
A comprehensive guide to the Vercel AI SDK Core, covering model interaction, text and image generation, structured data extraction, and embedding creation. It includes advanced implementation patterns such as middlewa...
Derived skill
Files assembled from official documentation
Viewing SKILL.md
AI SDK Core
A comprehensive guide to the Vercel AI SDK Core, covering model interaction, text and image generation, structured data extraction, and embedding creation. It includes advanced implementation patterns such as middlewa...
When To Use
Use when you need to implement model-driven features like text or image generation, manage provider configurations, handle stream events and errors, debug tool calls with DevTools, or extend model behavior using middl.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/ai-sdk-core-devtools-docs/workflow-guide.md | A guide explaining how to install and use the experimental AI SDK DevTools middleware for local development visibility. | Questions about a guide explaining how to install and use the experimental AI SDK DevTools middleware for local development visibility. |
examples/ai-sdk-core-devtools-docs/ai-sdk-core-devtools-installation-command.text | The pnpm installation command for the @ai-sdk/devtools package. | Exact payloads, commands, or snippets shown in The pnpm installation command for the @ai-sdk/devtools package. |
examples/ai-sdk-core-devtools-docs/ai-sdk-core-devtools-middleware-setup.text | A code example demonstrating how to use devToolsMiddleware with wrapLanguageModel to enable AI SDK Core DevTools. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use devToolsMiddleware with wrapLanguageModel to enable AI SDK Core DevTools. |
examples/ai-sdk-core-devtools-docs/ai-sdk-core-devtools-typescript-implementation.text | A TypeScript code example demonstrating how to wrap a model with DevTools using the AI SDK Core generateText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to wrap a model with DevTools using the AI SDK Core generateText function. |
examples/ai-sdk-core-devtools-docs/ai-sdk-core-devtools-npx-command.text | The terminal command used to run the AI SDK Core DevTools via npx. | Exact payloads, commands, or snippets shown in The terminal command used to run the AI SDK Core DevTools via npx. |
examples/ai-sdk-core-devtools-docs/ai-sdk-core-devtools-npx-command-usage.text | The terminal command used to run the AI SDK Core DevTools via npx. | Exact payloads, commands, or snippets shown in The terminal command used to run the AI SDK Core DevTools via npx. |
docs/ai-sdk-core-embeddings-docs/workflow-guide.md | A guide explaining how to use the AI SDK to embed single values, multiple values, and measure embedding similarity. | Questions about a guide explaining how to use the AI SDK to embed single values, multiple values, and measure embedding similarity. |
examples/ai-sdk-core-embeddings-docs/vercel-ai-sdk-core-embeddings-embed-function.text | A code example demonstrating how to use the embed function from the AI SDK to generate a single embedding using an OpenAI model. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the embed function from the AI SDK to generate a single embedding using an Op... |
examples/ai-sdk-core-embeddings-docs/ai-sdk-core-embeddings-embedmany-openai.text | A TypeScript code example demonstrating how to use the embedMany function with an OpenAI model to generate multiple text embeddings. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the embedMany function with an OpenAI model to generate multiple t... |
examples/ai-sdk-core-embeddings-docs/ai-sdk-core-embeddings-embedmany-cosine-similarity-typescript.text | A TypeScript code example demonstrating how to use the embedMany function and cosineSimilarity from the AI SDK to generate and compare vector embeddings. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the embedMany function and cosineSimilarity from the AI SDK to gen... |
examples/ai-sdk-core-embeddings-docs/ai-sdk-core-embeddings-typescript.text | A TypeScript code example demonstrating how to use the embed function from the AI SDK to generate vector embeddings. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the embed function from the AI SDK to generate vector embeddings. |
examples/ai-sdk-core-embeddings-docs/ai-sdk-core-embeddings-typescript-embed-function.text | A TypeScript code example demonstrating how to use the embed function from the AI SDK to generate vector embeddings using an OpenAI model. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the embed function from the AI SDK to generate vector embeddings u... |
examples/ai-sdk-core-embeddings-docs/ai-sdk-core-embeddings-embedmany-nodejs.text | A TypeScript code example demonstrating how to use the embedMany function from the AI SDK to generate multiple embeddings simultaneously. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the embedMany function from the AI SDK to generate multiple embedd... |
examples/ai-sdk-core-embeddings-docs/ai-sdk-core-embeddings-typescript-embed-function-2.text | A TypeScript code example demonstrating how to use the embed function from the AI SDK to generate vector embeddings using an OpenAI model. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the embed function from the AI SDK to generate vector embeddings u... |
examples/ai-sdk-core-embeddings-docs/ai-sdk-core-embeddings-typescript-embed-function-3.text | A TypeScript code example demonstrating how to use the embed function from the AI SDK to generate a text embedding using an OpenAI model. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the embed function from the AI SDK to generate a text embedding us... |
examples/ai-sdk-core-embeddings-docs/ai-sdk-core-embeddings-embed-function-usage.text | A code example demonstrating how to use the embed function from the AI SDK to generate vector embeddings using a model. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the embed function from the AI SDK to generate vector embeddings using a model. |
examples/ai-sdk-core-embeddings-docs/ai-sdk-core-embeddings-embed-function.text | A TypeScript code example demonstrating how to use the embed function from the AI SDK to generate vector embeddings using an OpenAI model. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the embed function from the AI SDK to generate vector embeddings u... |
examples/ai-sdk-core-embeddings-docs/ai-sdk-core-embeddings-typescript-implementation.text | A TypeScript code example demonstrating how to use the embed function and wrap embedding models with middleware in the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the embed function and wrap embedding models with middleware in th... |
docs/ai-sdk-core-error-handling-docs/workflow-guide.md | A guide detailing how to handle regular errors, streaming errors, and stream aborts within the AI SDK Core. | Questions about a guide detailing how to handle regular errors, streaming errors, and stream aborts within the AI SDK Core. |
examples/ai-sdk-core-error-handling-docs/ai-sdk-core-error-handling-typescript.text | A TypeScript code example demonstrating how to use try-catch blocks to handle errors when calling the generateText function in the AI SDK Core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use try-catch blocks to handle errors when calling the generateText fu... |
examples/ai-sdk-core-error-handling-docs/ai-sdk-core-error-handling-typescript-streamtext-try-catch.text | A TypeScript code example demonstrating how to wrap the streamText function in a try-catch block to handle runtime errors during text streaming. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to wrap the streamText function in a try-catch block to handle runtime er... |
examples/ai-sdk-core-error-handling-docs/ai-sdk-core-error-handling-typescript-streamtext.text | A TypeScript code example demonstrating how to catch and handle error parts within a streamText fullStream loop. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to catch and handle error parts within a streamText fullStream loop. |
examples/ai-sdk-core-error-handling-docs/ai-sdk-core-error-handling-streamtext-onabort-onfinish.text | A TypeScript code example demonstrating the use of onAbort and onFinish callbacks within the streamText function to handle stream lifecycle events. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating the use of onAbort and onFinish callbacks within the streamText function to h... |
examples/ai-sdk-core-error-handling-docs/ai-sdk-core-error-handling-streamtext-abort.text | A TypeScript code example demonstrating how to handle stream abort events when using the streamText function from the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to handle stream abort events when using the streamText function from the... |
docs/ai-sdk-core-event-callbacks-docs-listeners/workflow-guide.md | Documentation detailing the available lifecycle event callbacks for the AI SDK Core functions generateText and streamText. | Questions about documentation detailing the available lifecycle event callbacks for the AI SDK Core functions generateText and stream... |
examples/ai-sdk-core-event-callbacks-docs-listeners/ai-sdk-core-event-callbacks-typescript.text | A TypeScript code example demonstrating how to implement onStart and onFinish event callbacks using the generateText function in the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to implement onStart and onFinish event callbacks using the generateText... |
examples/ai-sdk-core-event-callbacks-docs-listeners/ai-sdk-core-event-callbacks-generatetext-javascript.text | A JavaScript code example demonstrating how to use experimental event callbacks like onStart within the generateText function of the AI SDK Core. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use experimental event callbacks like onStart within the generateText... |
examples/ai-sdk-core-event-callbacks-docs-listeners/ai-sdk-core-event-callbacks.text | A text example demonstrating the implementation of experimental_onStepStart callback within the generateText function. | Exact payloads, commands, or snippets shown in A text example demonstrating the implementation of experimentalonStepStart callback within the generateText function. |
examples/ai-sdk-core-event-callbacks-docs-listeners/vercel-ai-sdk-core-event-callbacks-javascript.text | A JavaScript code example demonstrating how to implement experimental event callbacks like onToolCallStart within the generateText function. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to implement experimental event callbacks like onToolCallStart within the... |
examples/ai-sdk-core-event-callbacks-docs-listeners/vercel-ai-sdk-core-event-callbacks.text | A code example demonstrating how to implement experimental event callbacks like onToolCallFinish within the AI SDK generateText function. | Exact payloads, commands, or snippets shown in A code example demonstrating how to implement experimental event callbacks like onToolCallFinish within the AI SDK ge... |
examples/ai-sdk-core-event-callbacks-docs-listeners/ai-sdk-core-event-callbacks-onstepfinish.text | A code example demonstrating how to use the onStepFinish callback within the AI SDK generateText function to log step details and token usage. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the onStepFinish callback within the AI SDK generateText function to log step... |
examples/ai-sdk-core-event-callbacks-docs-listeners/ai-sdk-core-event-callbacks-generatetext-onfinish.text | A code example demonstrating how to use the onFinish callback within the generateText function to access event data like steps, token usage, and final text. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the onFinish callback within the generateText function to access event data l... |
examples/ai-sdk-core-event-callbacks-docs-listeners/ai-sdk-core-event-callbacks-typescript-2.text | A TypeScript code example demonstrating how to implement onStart and onStepFinish event listeners within the AI SDK generateText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to implement onStart and onStepFinish event listeners within the AI SDK g... |
examples/ai-sdk-core-event-callbacks-docs-listeners/ai-sdk-core-event-callbacks-typescript-3.text | A TypeScript code example demonstrating how to implement experimental tool call start and finish event listeners using the AI SDK generateText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to implement experimental tool call start and finish event listeners usin... |
examples/ai-sdk-core-event-callbacks-docs-listeners/ai-sdk-core-event-callbacks-generatetext-experimental-onstart.text | A code example demonstrating the use of the experimental_onStart callback within the generateText function of the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating the use of the experimentalonStart callback within the generateText function of the AI S... |
docs/ai-sdk-core-generating-structured-data-docs/workflow-guide.md | Documentation guide on generating structured data outputs using the Vercel AI SDK Core, including streaming and error handling. | Questions about documentation guide on generating structured data outputs using the Vercel AI SDK Core, including streaming and error... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generatetext-zod-structured.text | A TypeScript code example demonstrating how to use the generateText function with a Zod schema to produce structured object output. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function with a Zod schema to produce structured... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generate-text-structured-data.text | A code example demonstrating how to use the generateText function with the output option to produce structured data using a schema. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the generateText function with the output option to produce structured data u... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-streamtext-zod-object.text | A TypeScript code example demonstrating how to use streamText with a Zod schema to generate structured object output. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use streamText with a Zod schema to generate structured object output. |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generate-object-streamtext-typescript.text | A TypeScript code example demonstrating how to use the streamText function with the Output.object option to generate structured data using a schema. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the streamText function with the Output.object option to generate... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generatetext.text | A TypeScript code example demonstrating how to use the generateText function with Output.text() to receive a string response. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function with Output.text() to receive a string r... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generate-text-zod.text | A TypeScript code example demonstrating how to use the generateText function with a Zod schema to produce structured object output. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function with a Zod schema to produce structured... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generatetext-zod-array.text | A TypeScript code example demonstrating how to use the generateText function with a Zod schema to produce an array of structured objects. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function with a Zod schema to produce an array of... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-streamtext-zod-array.text | A TypeScript code example demonstrating how to use streamText with a Zod schema to generate a structured array of objects. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use streamText with a Zod schema to generate a structured array of obj... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generatetext-choice.text | A TypeScript code example demonstrating how to use the generateText function with the Output.choice option to constrain model responses to specific string values. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function with the Output.choice option to constra... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generatetext-json.text | A TypeScript code example demonstrating how to use the generateText function with Output.json() to produce structured JSON data. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function with Output.json() to produce structured... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generate-text-structured-data-zod.text | A TypeScript code example demonstrating how to use the AI SDK generateText function with Zod schemas to produce structured data output. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK generateText function with Zod schemas to produce struc... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generatetext-zod-structured-data.text | A TypeScript code example demonstrating how to use the generateText function with a Zod schema to enforce structured object output. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function with a Zod schema to enforce structured... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generatetext-zod-structured-2.text | A TypeScript code example demonstrating how to use the generateText function with a Zod schema to produce structured object output. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function with a Zod schema to produce structured... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generate-text-zod-2.text | A TypeScript code example demonstrating how to use the generateText function with a Zod schema to produce structured object output. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function with a Zod schema to produce structured... |
examples/ai-sdk-core-generating-structured-data-docs/ai-sdk-core-generatetext-object.text | A TypeScript code example demonstrating how to use the generateText function with the Output.object method to produce structured data from a model. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function with the Output.object method to produce... |
docs/ai-sdk-core-generating-text-docs/workflow-guide.md | A guide explaining how to use the generateText function to generate and stream text responses from large language models using the AI SDK Core. | Questions about a guide explaining how to use the generateText function to generate and stream text responses from large language mod... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generate-text-typescript.text | A TypeScript code example demonstrating the use of the generateText function from the AI SDK to produce text using a specified model and prompt. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating the use of the generateText function from the AI SDK to produce text using a... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generate-text-typescript-2.text | A TypeScript code example demonstrating how to use the generateText function from the AI SDK to produce text using a specified model and prompt. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function from the AI SDK to produce text using a... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generate-text-typescript-3.text | A TypeScript code example demonstrating the basic usage of the generateText function from the Vercel AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating the basic usage of the generateText function from the Vercel AI SDK. |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generate-text-typescript-4.text | A TypeScript code example demonstrating the use of the generateText function from the AI SDK to prompt a model and handle the response. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating the use of the generateText function from the AI SDK to prompt a model and ha... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generate-text-typescript-5.text | A TypeScript code example demonstrating the use of the generateText function from the AI SDK core to perform text generation with a model and tools. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating the use of the generateText function from the AI SDK core to perform text gen... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generate-text-stream.text | A TypeScript code example demonstrating how to use the streamText function from the AI SDK to iterate over a text stream. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the streamText function from the AI SDK to iterate over a text str... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generating-text-streamtext-typescript.text | A TypeScript code example demonstrating how to use the streamText function from the AI SDK to generate text with a specific model and error handling. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the streamText function from the AI SDK to generate text with a sp... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-streamtext-typescript.text | A TypeScript code example demonstrating how to use the streamText function from the AI SDK to generate and stream text responses. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the streamText function from the AI SDK to generate and stream tex... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-streamtext-typescript-2.text | A TypeScript code example demonstrating how to use the streamText function from the AI SDK to generate text with a model and handle the onFinish callback. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the streamText function from the AI SDK to generate text with a mo... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generating-text-streamtext-typescript-2.text | A TypeScript code example demonstrating how to use the streamText function from the AI SDK to generate streaming text responses. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the streamText function from the AI SDK to generate streaming text... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generating-text-streamtext-tool-calling.text | A TypeScript code example demonstrating how to use the streamText function with tool calling and Zod schema validation. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the streamText function with tool calling and Zod schema validation. |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generating-text-streamtext.text | A code example demonstrating the use of the streamText function with smoothStream experimental transformation in the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating the use of the streamText function with smoothStream experimental transformation in the... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generating-text-stream-transform.text | A TypeScript code example demonstrating how to use a TransformStream to manipulate text-delta chunks from the streamText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use a TransformStream to manipulate text-delta chunks from the streamT... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generating-text-stream-transform-2.text | A TypeScript code example demonstrating how to implement a custom TransformStream to manipulate TextStreamPart objects during text generation. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to implement a custom TransformStream to manipulate TextStreamPart object... |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generating-text-streamtext-usage.text | A code example demonstrating the usage of the streamText function within the AI SDK Core to generate text responses. | Exact payloads, commands, or snippets shown in A code example demonstrating the usage of the streamText function within the AI SDK Core to generate text responses. |
examples/ai-sdk-core-generating-text-docs/ai-sdk-core-generate-text-google-search-tool.text | A code example demonstrating how to use the generateText function with the Google Search tool in the Vercel AI SDK. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the generateText function with the Google Search tool in the Vercel AI SDK. |
examples/ai-sdk-core-generating-text-docs/vercel-ai-sdk-core-generating-text-streamtext.text | A code example demonstrating how to use the streamText function with a Google Gemini model and Google Search tools to stream text responses. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the streamText function with a Google Gemini model and Google Search tools to... |
docs/ai-sdk-core-image-generation-docs/workflow-guide.md | A guide explaining how to use the generateImage function to create images from prompts using various image models. | Questions about a guide explaining how to use the generateImage function to create images from prompts using various image models. |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-typescript.text | A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image using a specified model and prompt. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image usin... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-base64-uint8array-access.text | Demonstrates how to access base64 and Uint8Array data from an image object within the AI SDK Core. | Exact payloads, commands, or snippets shown in Demonstrates how to access base64 and Uint8Array data from an image object within the AI SDK Core. |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-typescript-2.text | A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image using a specified model and prompt. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image usin... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-typescript-3.text | A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image with a specific prompt and aspect ratio. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image with... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-typescript-4.text | A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create images using a specified model and prompt. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create images using... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-javascript.text | A JavaScript code example demonstrating how to use the generateImage function with the AI SDK to create multiple images from a prompt. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the generateImage function with the AI SDK to create multiple imag... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-typescript-5.text | A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image using a specified model and prompt. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image usin... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-openai-dall-e-3.text | A TypeScript code example demonstrating how to use the generateImage function with the OpenAI provider to create an image using DALL-E 3. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function with the OpenAI provider to create an i... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-typescript-6.text | A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image using a specified model and prompt. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image usin... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-typescript-7.text | A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image using a specified model and prompt. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function from the AI SDK to create an image usin... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-typescript-8.text | A TypeScript code example demonstrating how to use the generateImage function from the AI SDK Core to create an image using a specified model and prompt. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function from the AI SDK Core to create an image... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-typescript-9.text | A TypeScript code example demonstrating how to use the generateImage function with OpenAI's DALL-E 3 model to generate an image and access revised prompt metadata. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function with OpenAI's DALL-E 3 model to generat... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-typescript-10.text | A TypeScript code example demonstrating how to use the generateImage function and handle NoImageGeneratedError within the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function and handle NoImageGeneratedError within... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-typescript-11.text | A TypeScript code example demonstrating how to use generateImage and wrapImageModel from the AI SDK to generate images with custom middleware. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use generateImage and wrapImageModel from the AI SDK to generate image... |
examples/ai-sdk-core-image-generation-docs/ai-sdk-core-image-generation-google-gemini-typescript.text | A TypeScript code example demonstrating how to use the AI SDK Core to generate images using the Google Gemini model. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK Core to generate images using the Google Gemini model. |
docs/ai-sdk-core-model-context-protocol-mcp-docs-tools/workflow-guide.md | Documentation explaining how to connect the AI SDK Core to Model Context Protocol (MCP) servers using HTTP, SSE, and Stdio transports. | Questions about documentation explaining how to connect the AI SDK Core to Model Context Protocol (MCP) servers using HTTP, SSE, and... |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-create-mcp-client-http.text | A TypeScript code example demonstrating how to initialize an MCP client using the createMCPClient function with an HTTP transport. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize an MCP client using the createMCPClient function with an HT... |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-create-mcp-client-typescript.text | A TypeScript code example demonstrating how to initialize an MCP client using createMCPClient and StreamableHTTPClientTransport within the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize an MCP client using createMCPClient and StreamableHTTPClien... |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-create-mcp-client-sse.text | A TypeScript code example demonstrating how to initialize an MCP client using the createMCPClient function with an SSE transport. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize an MCP client using the createMCPClient function with an SS... |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-client-stdio-transport-typescript.text | A TypeScript code example demonstrating how to initialize an MCP client using the AI SDK and a stdio transport. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize an MCP client using the AI SDK and a stdio transport. |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-client-tools-usage.text | A TypeScript code example demonstrating how to initialize an MCP client and pass its tools to the streamText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize an MCP client and pass its tools to the streamText function. |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-client-creation-typescript.text | A TypeScript code example demonstrating how to initialize and close an MCP client using the createMCPClient function from the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize and close an MCP client using the createMCPClient function... |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-tools-client-initialization.text | A code example demonstrating how to use the mcpClient to fetch available tools from a Model Context Protocol server. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the mcpClient to fetch available tools from a Model Context Protocol server. |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-tools-definition-typescript.text | A TypeScript code example demonstrating how to define tool input schemas using Zod for the Model Context Protocol in the AI SDK Core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define tool input schemas using Zod for the Model Context Protocol in... |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/vercel-ai-sdk-mcp-tools-zod.text | A TypeScript code example demonstrating how to define tool schemas using Zod for the Model Context Protocol in the AI SDK Core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define tool schemas using Zod for the Model Context Protocol in the AI... |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-list-resources.text | A code example demonstrating how to use the Model Context Protocol client to list available resources within the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the Model Context Protocol client to list available resources within the AI S... |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-read-resource.text | A code example demonstrating how to use the mcpClient to read a resource using a URI within the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the mcpClient to read a resource using a URI within the AI SDK Core. |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-list-resource-templates.text | A code example demonstrating how to use the AI SDK Core to list resource templates from an MCP client. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the AI SDK Core to list resource templates from an MCP client. |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-list-prompts.text | A code example demonstrating how to use the experimental listPrompts method within the AI SDK Core Model Context Protocol implementation. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the experimental listPrompts method within the AI SDK Core Model Context Prot... |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-experimental-get-prompt.text | A code example demonstrating how to use the experimental_getPrompt method within the AI SDK Core to retrieve a prompt from an MCP client. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the experimentalgetPrompt method within the AI SDK Core to retrieve a prompt... |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-client-sse-transport.text | A TypeScript code example demonstrating how to initialize an MCP client using an SSE transport connection. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize an MCP client using an SSE transport connection. |
examples/ai-sdk-core-model-context-protocol-mcp-docs-tools/ai-sdk-core-mcp-elicitation-request-handler.text | A TypeScript code example demonstrating how to handle MCP elicitation requests using the ElicitationRequestSchema in the AI SDK Core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to handle MCP elicitation requests using the ElicitationRequestSchema in... |
docs/ai-sdk-core-language-model-middleware-docs/workflow-guide.md | A guide explaining how to use language model middleware to intercept and modify calls to enhance language model behavior. | Questions about a guide explaining how to use language model middleware to intercept and modify calls to enhance language model behav... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-wrap-language-model.text | A code example demonstrating how to use the wrapLanguageModel function to implement middleware in the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the wrapLanguageModel function to implement middleware in the AI SDK Core. |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-implementation.text | A code example demonstrating how to wrap a language model using middleware in the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to wrap a language model using middleware in the AI SDK Core. |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-wrap.text | A code example demonstrating how to use the wrapLanguageModel function to apply multiple middleware functions to a language model. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the wrapLanguageModel function to apply multiple middleware functions to a la... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-wrap-2.text | A code example demonstrating how to use wrapLanguageModel and extractReasoningMiddleware from the AI SDK. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use wrapLanguageModel and extractReasoningMiddleware from the AI SDK. |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-wrap-language-model-2.text | A TypeScript code example demonstrating how to use wrapLanguageModel and extractJsonMiddleware to intercept language model calls. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use wrapLanguageModel and extractJsonMiddleware to intercept language... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-wrap-language-model-3.text | A code example demonstrating how to use the wrapLanguageModel function with extractJsonMiddleware to transform model responses. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the wrapLanguageModel function with extractJsonMiddleware to transform model... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-wrap-3.text | A TypeScript code example demonstrating how to use wrapLanguageModel and simulateStreamingMiddleware to implement middleware in the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use wrapLanguageModel and simulateStreamingMiddleware to implement mid... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-wrap-language-model-middleware-typescript.text | A TypeScript code example demonstrating how to use wrapLanguageModel and defaultSettingsMiddleware to apply settings to an AI SDK language model. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use wrapLanguageModel and defaultSettingsMiddleware to apply settings... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-wrap-4.text | A TypeScript code example demonstrating how to use wrapLanguageModel and addToolInputExamplesMiddleware to enhance a language model. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use wrapLanguageModel and addToolInputExamplesMiddleware to enhance a... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-typescript.text | A TypeScript code example demonstrating how to implement and use language model middleware within the AI SDK Core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to implement and use language model middleware within the AI SDK Core. |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-input-examples.text | Textual examples of input objects used for testing language model middleware in the AI SDK Core. | Exact payloads, commands, or snippets shown in Textual examples of input objects used for testing language model middleware in the AI SDK Core. |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-wrap-language-model-middleware.text | A code example demonstrating how to use the wrapLanguageModel function with addToolInputExamplesMiddleware in the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the wrapLanguageModel function with addToolInputExamplesMiddleware in the AI... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-wrap-language-model-middleware-2.text | A code example demonstrating how to use the wrapLanguageModel function to apply middleware to a language model instance. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the wrapLanguageModel function to apply middleware to a language model instance. |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-typescript-2.text | A TypeScript code example demonstrating how to implement a custom LanguageModelV3Middleware to intercept and log generate calls. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to implement a custom LanguageModelV3Middleware to intercept and log gene... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-typescript-implementation.text | A TypeScript implementation demonstrating how to create a custom language model middleware using the LanguageModelV3Middleware type to implement caching. | Exact payloads, commands, or snippets shown in A TypeScript implementation demonstrating how to create a custom language model middleware using the LanguageModelV3M... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-typescript-3.text | A TypeScript implementation demonstrating how to create a custom language model middleware using the LanguageModelV3Middleware type. | Exact payloads, commands, or snippets shown in A TypeScript implementation demonstrating how to create a custom language model middleware using the LanguageModelV3M... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-typescript-implementation-2.text | A TypeScript implementation demonstrating how to create a language model middleware using the LanguageModelV3Middleware type to wrap the generate function for text filtering. | Exact payloads, commands, or snippets shown in A TypeScript implementation demonstrating how to create a language model middleware using the LanguageModelV3Middlewa... |
examples/ai-sdk-core-language-model-middleware-docs/ai-sdk-core-language-model-middleware-typescript-4.text | A TypeScript code example demonstrating how to implement custom language model middleware using the wrapLanguageModel function from the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to implement custom language model middleware using the wrapLanguageModel... |
docs/ai-sdk-core-overview-docs/workflow-guide.md | An overview of the AI SDK Core functions and API reference for interacting with large language models. | Questions about an overview of the AI SDK Core functions and API reference for interacting with large language models. |
examples/ai-sdk-core-overview-docs/ai-sdk-core-generatetext-typescript.text | A TypeScript code example demonstrating the basic usage of the generateText function from the AI SDK core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating the basic usage of the generateText function from the AI SDK core. |
docs/ai-sdk-core-prompt-engineering-docs/workflow-guide.md | A guide covering prompt engineering tips, tool prompting strategies, and structured data schema implementation using Zod for the AI SDK Core. | Questions about a guide covering prompt engineering tips, tool prompting strategies, and structured data schema implementation using... |
examples/ai-sdk-core-prompt-engineering-docs/ai-sdk-core-prompt-engineering-generatetext.text | A code example demonstrating how to use the generateText function with structured output and a schema for prompt engineering. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the generateText function with structured output and a schema for prompt engi... |
examples/ai-sdk-core-prompt-engineering-docs/ai-sdk-core-prompt-engineering-tool-validation.text | A text file demonstrating how tool definitions with Zod schemas interact with strict schema validation during prompt engineering. | Exact payloads, commands, or snippets shown in A text file demonstrating how tool definitions with Zod schemas interact with strict schema validation during prompt... |
examples/ai-sdk-core-prompt-engineering-docs/ai-sdk-core-prompt-engineering.text | A code example demonstrating the use of generateText with model configuration and tool definitions for prompt engineering. | Exact payloads, commands, or snippets shown in A code example demonstrating the use of generateText with model configuration and tool definitions for prompt enginee... |
examples/ai-sdk-core-prompt-engineering-docs/vercel-ai-sdk-core-prompt-engineering.text | A text-based example demonstrating basic prompt engineering usage with the generateText function in the Vercel AI SDK Core. | Exact payloads, commands, or snippets shown in A text-based example demonstrating basic prompt engineering usage with the generateText function in the Vercel AI SDK... |
examples/ai-sdk-core-prompt-engineering-docs/vercel-ai-sdk-core-prompt-engineering-2.text | A text-based example demonstrating basic prompt engineering usage with the generateText function in the AI SDK Core. | Exact payloads, commands, or snippets shown in A text-based example demonstrating basic prompt engineering usage with the generateText function in the AI SDK Core. |
docs/ai-sdk-core-provider-model-management-docs/workflow-guide.md | Documentation regarding managing multiple AI providers and model configurations using string IDs within the AI SDK Core. | Questions about documentation regarding managing multiple AI providers and model configurations using string IDs within the AI SDK Core. |
examples/ai-sdk-core-provider-model-management-docs/vercel-ai-sdk-core-provider-model-management.text | A TypeScript code example demonstrating how to use custom providers, gateways, and middleware to manage language models within the AI SDK core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use custom providers, gateways, and middleware to manage language mode... |
examples/ai-sdk-core-provider-model-management-docs/ai-sdk-core-custom-provider-gateway-implementation.text | A TypeScript code example demonstrating how to define a custom provider and use the gateway function to alias language models within the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define a custom provider and use the gateway function to alias languag... |
examples/ai-sdk-core-provider-model-management-docs/ai-sdk-core-provider-model-management-custom-provider.text | A TypeScript code example demonstrating how to use customProvider, gateway, and wrapLanguageModel to manage multiple language models within the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use customProvider, gateway, and wrapLanguageModel to manage multiple... |
examples/ai-sdk-core-provider-model-management-docs/ai-sdk-core-provider-registry-setup.text | A TypeScript code example demonstrating how to use createProviderRegistry and gateway to manage multiple AI providers like Anthropic and OpenAI. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use createProviderRegistry and gateway to manage multiple AI providers... |
examples/ai-sdk-core-provider-model-management-docs/ai-sdk-core-provider-registry-creation.text | A TypeScript code example demonstrating how to use createProviderRegistry and gateway to manage multiple AI providers like Anthropic and OpenAI. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use createProviderRegistry and gateway to manage multiple AI providers... |
examples/ai-sdk-core-provider-model-management-docs/ai-sdk-core-provider-model-registry.text | A TypeScript code example demonstrating how to use the AI SDK registry to manage and invoke language models with custom separators. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK registry to manage and invoke language models with cust... |
examples/ai-sdk-core-provider-model-management-docs/ai-sdk-core-provider-model-management-embed.text | A TypeScript code example demonstrating how to use the embed function with a model from a registry in the AI SDK Core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the embed function with a model from a registry in the AI SDK Core. |
examples/ai-sdk-core-provider-model-management-docs/ai-sdk-core-provider-model-management-generateimage.text | A TypeScript code example demonstrating how to use the generateImage function with a model from a custom registry. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateImage function with a model from a custom registry. |
examples/ai-sdk-core-provider-model-management-docs/ai-sdk-core-provider-registry-setup-2.text | A TypeScript code example demonstrating how to use createProviderRegistry, customProvider, and middleware to manage multiple AI providers within the AI SDK Core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use createProviderRegistry, customProvider, and middleware to manage m... |
examples/ai-sdk-core-provider-model-management-docs/ai-sdk-core-provider-model-management-typescript-streamtext.text | A TypeScript code example demonstrating how to use the streamText function with a specific model provider in the AI SDK Core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the streamText function with a specific model provider in the AI S... |
examples/ai-sdk-core-provider-model-management-docs/ai-sdk-core-provider-model-management-global-default-provider-setup.text | A code example demonstrating how to initialize and set a global default provider using globalThis in the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to initialize and set a global default provider using globalThis in the AI SDK Core. |
examples/ai-sdk-core-provider-model-management-docs/ai-sdk-core-provider-model-management-typescript-streamtext-2.text | A TypeScript code example demonstrating how to use the streamText function with a model string to invoke a provider. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the streamText function with a model string to invoke a provider. |
docs/ai-sdk-core-reranking-docs/workflow-guide.md | A guide explaining reranking techniques, working with object documents, and interpreting results within the AI SDK Core. | Questions about a guide explaining reranking techniques, working with object documents, and interpreting results within the AI SDK Core. |
examples/ai-sdk-core-reranking-docs/ai-sdk-core-reranking-cohere-typescript.text | A TypeScript code example demonstrating how to use the AI SDK core rerank function with a Cohere model to rank documents against a query. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK core rerank function with a Cohere model to rank docume... |
examples/ai-sdk-core-reranking-docs/ai-sdk-core-rerank-cohere.text | A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider to reorder documents. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider to reorde... |
examples/ai-sdk-core-reranking-docs/ai-sdk-core-cohere-rerank.text | A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider to reorder documents based on a query. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider to reorde... |
examples/ai-sdk-core-reranking-docs/ai-sdk-core-rerank-cohere-2.text | A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider to rank documents against a query. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider to rank d... |
examples/ai-sdk-core-reranking-docs/ai-sdk-core-rerank-cohere-3.text | A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider. |
examples/ai-sdk-core-reranking-docs/ai-sdk-core-rerank-cohere-4.text | A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider. |
examples/ai-sdk-core-reranking-docs/ai-sdk-core-rerank-cohere-5.text | A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider. |
examples/ai-sdk-core-reranking-docs/ai-sdk-core-rerank-cohere-6.text | A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider. |
examples/ai-sdk-core-reranking-docs/ai-sdk-core-rerank-cohere-7.text | A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the AI SDK core rerank function with the Cohere provider. |
docs/ai-sdk-core-settings-docs/workflow-guide.md | A guide detailing common LLM configuration settings such as maxOutputTokens, temperature, topP, and topK within the AI SDK Core. | Questions about a guide detailing common LLM configuration settings such as maxOutputTokens, temperature, topP, and topK within the A... |
examples/ai-sdk-core-settings-docs/ai-sdk-core-generatetext-settings.text | A code example demonstrating how to configure generation settings such as temperature, maxOutputTokens, and maxRetries within the AI SDK generateText function. | Exact payloads, commands, or snippets shown in A code example demonstrating how to configure generation settings such as temperature, maxOutputTokens, and maxRetrie... |
examples/ai-sdk-core-settings-docs/ai-sdk-core-settings-generatetext-javascript.text | A JavaScript code example demonstrating how to pass configuration settings like model and abortSignal to the generateText function in the AI SDK Core. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to pass configuration settings like model and abortSignal to the generate... |
examples/ai-sdk-core-settings-docs/ai-sdk-core-generatetext-settings-2.text | A code example demonstrating how to configure timeout and other settings within the generateText function of the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to configure timeout and other settings within the generateText function of the AI S... |
examples/ai-sdk-core-settings-docs/ai-sdk-core-generatetext-settings-3.text | A code example demonstrating how to configure timeout and other settings within the generateText function of the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to configure timeout and other settings within the generateText function of the AI S... |
examples/ai-sdk-core-settings-docs/ai-sdk-core-settings-generatetext-timeout.text | A code example demonstrating how to configure the timeout setting within the generateText function of the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to configure the timeout setting within the generateText function of the AI SDK Core. |
examples/ai-sdk-core-settings-docs/ai-sdk-core-generatetext-timeout-settings.text | A code example demonstrating how to configure total and per-step timeout settings within the generateText function of the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to configure total and per-step timeout settings within the generateText function of... |
examples/ai-sdk-core-settings-docs/ai-sdk-core-settings-streamtext-timeout.text | A code example demonstrating how to configure the timeout setting within the streamText function of the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to configure the timeout setting within the streamText function of the AI SDK Core. |
examples/ai-sdk-core-settings-docs/ai-sdk-core-generatetext-settings-4.text | A code example demonstrating how to pass custom headers and model configurations to the generateText function in the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to pass custom headers and model configurations to the generateText function in the... |
docs/ai-sdk-core-speech-docs/workflow-guide.md | Documentation covering the experimental generateSpeech function, including language settings, provider-specific configurations, and timeout management. | Questions about documentation covering the experimental generateSpeech function, including language settings, provider-specific confi... |
examples/ai-sdk-core-speech-docs/ai-sdk-core-speech-openai-generate-speech-typescript.text | A TypeScript code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider to convert text to speech. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider... |
examples/ai-sdk-core-speech-docs/ai-sdk-core-speech-lmnt-generate-speech-typescript.text | A TypeScript code example demonstrating how to use the experimental generateSpeech function with the LMNT provider to convert text to speech. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateSpeech function with the LMNT provider to... |
examples/ai-sdk-core-speech-docs/ai-sdk-core-speech-audio-data-formats.text | A text example demonstrating how to access audio data as Uint8Array or base64 strings from an AI SDK speech result. | Exact payloads, commands, or snippets shown in A text example demonstrating how to access audio data as Uint8Array or base64 strings from an AI SDK speech result. |
examples/ai-sdk-core-speech-docs/ai-sdk-core-speech-openai-generate-speech.text | A TypeScript code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider to convert text to audio. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider... |
examples/ai-sdk-core-speech-docs/ai-sdk-core-speech-experimental-generate-speech-openai-typescript.text | A TypeScript code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider to convert text to speech. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider... |
examples/ai-sdk-core-speech-docs/ai-sdk-core-speech-openai-generate-speech-2.text | A TypeScript code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider to convert text to speech. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider... |
examples/ai-sdk-core-speech-docs/ai-sdk-core-speech-experimental-generate-speech-openai-nodejs.text | A Node.js code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider to convert text to audio. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider to... |
examples/ai-sdk-core-speech-docs/vercel-ai-sdk-core-speech-openai-generate-speech.text | A TypeScript code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider to convert text to speech. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateSpeech function with the OpenAI provider... |
docs/ai-sdk-core-telemetry-docs/workflow-guide.md | A guide explaining how to enable OpenTelemetry, configure telemetry metadata, and implement custom tracers within the AI SDK Core. | Questions about a guide explaining how to enable OpenTelemetry, configure telemetry metadata, and implement custom tracers within the... |
examples/ai-sdk-core-telemetry-docs/ai-sdk-core-telemetry-enablement.text | A code example demonstrating how to enable experimental telemetry within the generateText function of the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to enable experimental telemetry within the generateText function of the AI SDK Core. |
examples/ai-sdk-core-telemetry-docs/ai-sdk-core-telemetry-enablement-2.text | A code example demonstrating how to enable experimental telemetry with custom function IDs and metadata in the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to enable experimental telemetry with custom function IDs and metadata in the AI SDK... |
examples/ai-sdk-core-telemetry-docs/ai-sdk-core-telemetry-nodejs-tracerprovider-setup.text | A code example demonstrating how to initialize a NodeTracerProvider and pass it to the generateText function using the experimentalTelemetry configuration. | Exact payloads, commands, or snippets shown in A code example demonstrating how to initialize a NodeTracerProvider and pass it to the generateText function using th... |
examples/ai-sdk-core-telemetry-docs/ai-sdk-core-telemetry-devtools-integration.text | A TypeScript code example demonstrating how to enable experimental telemetry using the devToolsIntegration within the streamText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to enable experimental telemetry using the devToolsIntegration within the... |
examples/ai-sdk-core-telemetry-docs/ai-sdk-core-telemetry-configuration.text | A configuration object demonstrating how to enable experimental telemetry and register integrations like devTools, OpenTelemetry, and custom loggers in the AI SDK. | Exact payloads, commands, or snippets shown in A configuration object demonstrating how to enable experimental telemetry and register integrations like devTools, Op... |
examples/ai-sdk-core-telemetry-docs/ai-sdk-core-telemetry-integration-typescript.text | A TypeScript implementation demonstrating how to create and bind a custom telemetry integration using the TelemetryIntegration interface. | Exact payloads, commands, or snippets shown in A TypeScript implementation demonstrating how to create and bind a custom telemetry integration using the TelemetryIn... |
docs/ai-sdk-core-testing-docs/workflow-guide.md | A guide explaining how to unit test AI SDK Core functions using mock providers to handle non-deterministic language model outputs. | Questions about a guide explaining how to unit test AI SDK Core functions using mock providers to handle non-deterministic language m... |
examples/ai-sdk-core-testing-docs/ai-sdk-core-mock-language-model-testing.text | A code example demonstrating how to use MockLanguageModelV3 to test AI SDK core functions like generateText. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use MockLanguageModelV3 to test AI SDK core functions like generateText. |
examples/ai-sdk-core-testing-docs/ai-sdk-core-mock-language-model-testing-2.text | A code example demonstrating how to use MockLanguageModelV3 and simulateReadableStream to test AI SDK core functions. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use MockLanguageModelV3 and simulateReadableStream to test AI SDK core functions. |
examples/ai-sdk-core-testing-docs/ai-sdk-core-mock-language-model-testing-3.text | A TypeScript code example demonstrating how to use MockLanguageModelV3 to test generateText functions within the AI SDK Core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use MockLanguageModelV3 to test generateText functions within the AI S... |
examples/ai-sdk-core-testing-docs/ai-sdk-core-mock-language-model-testing-4.text | A TypeScript code example demonstrating how to use MockLanguageModelV3 and simulateReadableStream to test AI SDK core functions. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use MockLanguageModelV3 and simulateReadableStream to test AI SDK core... |
examples/ai-sdk-core-testing-docs/ai-sdk-core-simulate-readable-stream.text | A TypeScript code example demonstrating how to use the simulateReadableStream function to mock stream responses for testing. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the simulateReadableStream function to mock stream responses for t... |
docs/ai-sdk-core-tool-calling-docs-tools-and/workflow-guide.md | A guide explaining the core elements, strict mode, and execution approval processes for tool calling in the Vercel AI SDK. | Questions about a guide explaining the core elements, strict mode, and execution approval processes for tool calling in the Vercel AI... |
examples/ai-sdk-core-tool-calling-docs-tools-and/vercel-ai-sdk-core-tool-calling-typescript.text | A TypeScript code example demonstrating how to define and use tools with the AI SDK generateText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define and use tools with the AI SDK generateText function. |
examples/ai-sdk-core-tool-calling-docs-tools-and/vercel-ai-sdk-core-tool-calling-definition.text | A code example demonstrating how to define a tool with a description, input schema, and execution function using the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to define a tool with a description, input schema, and execution function using the... |
examples/ai-sdk-core-tool-calling-docs-tools-and/vercel-ai-sdk-core-tool-definition.text | A code example demonstrating how to define a tool using the tool function with a description, input schema, and execute handler. | Exact payloads, commands, or snippets shown in A code example demonstrating how to define a tool using the tool function with a description, input schema, and execu... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-definition-zod.text | A TypeScript code example demonstrating how to define an AI SDK tool using the tool function and Zod schema for input validation. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define an AI SDK tool using the tool function and Zod schema for input... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-generate-text-messages.text | A TypeScript code example demonstrating how to use generateText with tool calling by appending model response messages to the conversation history. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use generateText with tool calling by appending model response message... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-approval-response-typescript.text | A TypeScript code example demonstrating how to handle tool-approval-request parts and provide ToolApprovalResponse objects within the AI SDK core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to handle tool-approval-request parts and provide ToolApprovalResponse ob... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-payment-tool-definition.text | A TypeScript code example demonstrating how to define a tool with a description, input schema, and execution logic using the AI SDK core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define a tool with a description, input schema, and execution logic us... |
examples/ai-sdk-core-tool-calling-docs-tools-and/vercel-ai-sdk-core-tool-calling-typescript-2.text | A TypeScript code example demonstrating how to define tools with Zod schemas and use them within the generateText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define tools with Zod schemas and use them within the generateText fun... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-steps-extraction-typescript.text | A TypeScript code example demonstrating how to extract all tool calls from the steps object returned by the generateText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to extract all tool calls from the steps object returned by the generateT... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-onstepfinish-typescript.text | A TypeScript code example demonstrating how to use the onStepFinish callback within the AI SDK generateText function to monitor tool calling steps. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the onStepFinish callback within the AI SDK generateText function... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-callbacks-typescript.text | A TypeScript code example demonstrating how to use experimental onToolCallStart and onToolCallFinish callbacks within the AI SDK generateText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use experimental onToolCallStart and onToolCallFinish callbacks within... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-generatetext-preparestep.text | A TypeScript code example demonstrating the use of the prepareStep function within generateText to control model selection and tool choice during tool calling steps. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating the use of the prepareStep function within generateText to control model sele... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-prepare-step-implementation.text | A JavaScript implementation of the prepareStep function used to compress conversation history during tool calling loops. | Exact payloads, commands, or snippets shown in A JavaScript implementation of the prepareStep function used to compress conversation history during tool calling loops. |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-anthropic-container-id-propagation.text | A TypeScript code example demonstrating how to propagate an Anthropic container ID from a previous step to ensure code execution continuity during tool calling. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to propagate an Anthropic container ID from a previous step to ensure cod... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-typescript-generate-text-messages-update.text | A TypeScript code example demonstrating how to append tool calling response messages to a conversation history array using generateText. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to append tool calling response messages to a conversation history array... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-dynamic-tool-definition.text | A TypeScript code example demonstrating how to define a custom tool using the dynamicTool function from the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define a custom tool using the dynamicTool function from the AI SDK. |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-javascript.text | A JavaScript code example demonstrating how to implement static and dynamic tools using the AI SDK core generateText function. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to implement static and dynamic tools using the AI SDK core generateText... |
examples/ai-sdk-core-tool-calling-docs-tools-and/vercel-ai-sdk-core-tool-calling-typescript-3.text | A TypeScript code example demonstrating how to define a tool with a description, input schema, and an asynchronous execute function for the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define a tool with a description, input schema, and an asynchronous ex... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-typescript.text | A TypeScript code example demonstrating how to define and use tools with the AI SDK generateText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define and use tools with the AI SDK generateText function. |
examples/ai-sdk-core-tool-calling-docs-tools-and/vercel-ai-sdk-core-tool-calling-typescript-4.text | A TypeScript code example demonstrating how to implement tool calling using the streamText function and the tool helper from the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to implement tool calling using the streamText function and the tool help... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-typescript-2.text | A TypeScript code example demonstrating how to define and use tools within the generateText function using the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define and use tools within the generateText function using the AI SDK. |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-typescript-3.text | A TypeScript code example demonstrating how to define and use tools with the AI SDK generateText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define and use tools with the AI SDK generateText function. |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-experimental-context.text | A code example demonstrating how to use the experimental_context property within the AI SDK tool calling configuration. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the experimentalcontext property within the AI SDK tool calling configuration. |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-typescript-streamtext.text | A TypeScript code example demonstrating how to define tools and use streamText for tool calling with the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define tools and use streamText for tool calling with the AI SDK. |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-typescript-4.text | A TypeScript code example demonstrating how to define and use tools with the AI SDK core generateText function. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define and use tools with the AI SDK core generateText function. |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-error-handling.text | A text example demonstrating how to catch and handle NoSuchToolError and InvalidToolInputError when using tool calling in the AI SDK Core. | Exact payloads, commands, or snippets shown in A text example demonstrating how to catch and handle NoSuchToolError and InvalidToolInputError when using tool callin... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-error-handling-2.text | A code example demonstrating how to iterate through generation steps to identify and log tool-error parts within the AI SDK core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to iterate through generation steps to identify and log tool-error parts within the... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-streamtext-error-handling.text | A code example demonstrating how to handle NoSuchToolError and InvalidToolInputError when using streamText with tool calling in the AI SDK. | Exact payloads, commands, or snippets shown in A code example demonstrating how to handle NoSuchToolError and InvalidToolInputError when using streamText with tool... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-experimental-repair.text | A TypeScript code example demonstrating the use of the experimentalRepairToolCall function within the AI SDK Core tool calling workflow. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating the use of the experimentalRepairToolCall function within the AI SDK Core too... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-experimental-repair-2.text | A TypeScript code example demonstrating how to use the experimentalRepairToolCall function within the AI SDK Core to handle tool calling errors. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimentalRepairToolCall function within the AI SDK Core to... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-typescript-generate.text | A TypeScript code example demonstrating how to use the generateText function with the tools and activeTools parameters in the AI SDK Core. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateText function with the tools and activeTools parameter... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-calling-generatetext.text | A code example demonstrating how to use the generateText function with tool definitions and execution logic in the AI SDK Core. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the generateText function with tool definitions and execution logic in the AI... |
examples/ai-sdk-core-tool-calling-docs-tools-and/ai-sdk-core-tool-definition-zod-2.text | A TypeScript code example demonstrating how to define an AI SDK tool using the tool helper function and Zod schema for input validation. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define an AI SDK tool using the tool helper function and Zod schema fo... |
docs/ai-sdk-core-transcription-docs/workflow-guide.md | Documentation covering the usage of the transcribe function, provider-specific settings, and audio input requirements for the AI SDK Core transcription feature. | Questions about documentation covering the usage of the transcribe function, provider-specific settings, and audio input requirements... |
examples/ai-sdk-core-transcription-docs/ai-sdk-core-transcription-typescript.text | A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model to process audio files. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model t... |
examples/ai-sdk-core-transcription-docs/ai-sdk-core-transcription-result-object-structure.text | A text representation of the transcription result object including text, segments, language, and duration properties. | Exact payloads, commands, or snippets shown in A text representation of the transcription result object including text, segments, language, and duration properties. |
examples/ai-sdk-core-transcription-docs/ai-sdk-core-transcription-openai-nodejs.text | A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model to process audio files. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model t... |
examples/ai-sdk-core-transcription-docs/ai-sdk-core-transcription-openai-whisper-nodejs.text | A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model and a download limit. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model a... |
examples/ai-sdk-core-transcription-docs/ai-sdk-core-transcription-openai-nodejs-2.text | A TypeScript code example demonstrating how to use the experimental transcribe function from the AI SDK with OpenAI's Whisper model. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental transcribe function from the AI SDK with OpenAI's... |
examples/ai-sdk-core-transcription-docs/ai-sdk-core-transcription-typescript-openai-whisper.text | A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model to process an audio URL. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model t... |
examples/ai-sdk-core-transcription-docs/ai-sdk-core-transcription-openai-whisper-nodejs-2.text | A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model via the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model v... |
examples/ai-sdk-core-transcription-docs/ai-sdk-core-transcription-openai-whisper-nodejs-3.text | A Node.js code example demonstrating how to use the AI SDK experimental transcribe function with OpenAI's Whisper model to process audio files. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the AI SDK experimental transcribe function with OpenAI's Whisper mod... |
examples/ai-sdk-core-transcription-docs/ai-sdk-core-transcription-openai-whisper-nodejs-4.text | A Node.js code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model to process an audio file. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model to p... |
examples/ai-sdk-core-transcription-docs/ai-sdk-core-transcription-openai-nodejs-3.text | A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model to process audio files. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental transcribe function with OpenAI's Whisper model t... |
docs/ai-sdk-core-video-generation-docs/workflow-guide.md | Documentation covering the experimental generateVideo function, including settings for aspect ratio, resolution, and duration. | Questions about documentation covering the experimental generateVideo function, including settings for aspect ratio, resolution, and... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-javascript.text | A JavaScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create video content using a model like Google Veo. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-base64-uint8array-access.text | Demonstrates how to access video data as base64 strings and Uint8Array objects using the AI SDK Core. | Exact payloads, commands, or snippets shown in Demonstrates how to access video data as base64 strings and Uint8Array objects using the AI SDK Core. |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-nodejs.text | A TypeScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create video content using a model like Google Veo. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-nodejs-2.text | A TypeScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create video content using a model like Google Veo. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-nodejs-3.text | A TypeScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create video content using a model like Google Veo. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-nodejs-4.text | A TypeScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create video content using a model like Google Veo. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-nodejs-5.text | A TypeScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create videos using a model like Google Veo. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-javascript-2.text | A JavaScript code example demonstrating how to use the generateVideo function with a Google Veo model to create multiple videos from a text prompt. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the generateVideo function with a Google Veo model to create multi... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-javascript-3.text | A JavaScript code example demonstrating how to use the experimental generateVideo function with a text and image prompt. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the experimental generateVideo function with a text and image prompt. |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-javascript-4.text | A JavaScript code example demonstrating how to use the generateVideo function with a text and image prompt to create video content. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the generateVideo function with a text and image prompt to create... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-javascript-5.text | A JavaScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create video content using a model like Google Veo. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-fal-nodejs.text | A TypeScript code example demonstrating how to use the experimental generateVideo function with the fal provider to create video content. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateVideo function with the fal provider to c... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-javascript-6.text | A JavaScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create video content using a model like Google Veo. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the experimental generateVideo function from the AI SDK to create... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-fal-nodejs-2.text | A TypeScript code example demonstrating how to use the experimental generateVideo function with the fal provider to create video content. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateVideo function with the fal provider to c... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-javascript-7.text | A JavaScript code example demonstrating how to use the experimental_generateVideo function from the AI SDK to generate video using a specific model and prompt. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the experimentalgenerateVideo function from the AI SDK to generate... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-javascript-8.text | A JavaScript code example demonstrating how to use the generateVideo function with a Google Veo model to create video content. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the generateVideo function with a Google Veo model to create video... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-typescript.text | A TypeScript code example demonstrating how to use the generateVideo function with the fal provider to create video content from a text prompt. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the generateVideo function with the fal provider to create video c... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-javascript-9.text | A JavaScript code example demonstrating how to use the generateVideo function with a Google Veo model to create video content from a text prompt. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the generateVideo function with a Google Veo model to create video... |
examples/ai-sdk-core-video-generation-docs/ai-sdk-core-video-generation-typescript-2.text | A TypeScript code example demonstrating how to use the experimental generateVideo function and handle NoVideoGeneratedError within the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the experimental generateVideo function and handle NoVideoGenerate... |
What This Skill Covers
- AI SDK Core: DevTools: AI SDK DevTools is experimental and intended for local development only. Do not use in production environments.
- AI SDK Core: Embeddings: Embeddings are a way to represent words, phrases, or images as vectors in a high-dimensional space. In this space, similar words are close to each other, and...
- AI SDK Core: Error Handling: Regular errors are thrown and can be handled using the try/catch block.
- AI SDK Core: Event Callbacks: The AI SDK provides per-call event callbacks that you can pass to generateText and streamText to observe lifecycle events. This is useful for building observ...
- AI SDK Core: Generating Structured Data: While text generation can be useful, your use case will likely call for generating structured data. For example, you might want to extract information from t...
- AI SDK Core: Generating Text: Large language models (LLMs) can generate text in response to a prompt, which can contain instructions and information to process. For example, you can ask a...
- AI SDK Core: Image Generation: The AI SDK provides the generateImage function to generate images based on a given prompt using an image model.
- AI SDK Core: Model Context Protocol (MCP): AI SDK Core Model Context Protocol (MCP) Copy markdown
- AI SDK Core: Language Model Middleware: Language model middleware is a way to enhance the behavior of language models by intercepting and modifying the calls to the language model.
- AI SDK Core: Overview: Large Language Models (LLMs) are advanced programs that can understand, create, and engage with human language on a large scale. They are trained on vast amo...
- AI SDK Core: Prompt Engineering: When you create prompts that include tools, getting good results can be tricky as the number and complexity of your tools increases.
- AI SDK Core: Provider & Model Management: AI SDK Core Provider & Model Management Copy markdown
- AI SDK Core: Reranking: Reranking is a technique used to improve search relevance by reordering a set of documents based on their relevance to a query. Unlike embedding-based simila...
- AI SDK Core: Settings: Large language models (LLMs) typically provide settings to augment their output.
- AI SDK Core: Speech: Speech is an experimental feature.
- AI SDK Core: Telemetry: AI SDK Telemetry is experimental and may change in the future.
- AI SDK Core: Testing: Testing language models can be challenging, because they are non-deterministic and calling them is slow and expensive.
- AI SDK Core: Tool Calling: As covered under Foundations, tools are objects that can be called by the model to perform a specific task. AI SDK Core tools contain several core elements:
- AI SDK Core: Transcription: Transcription is an experimental feature.
- AI SDK Core: Video Generation: Video generation is an experimental feature. The API may change in future versions.
Workflow
- Start with the reference file that matches the question.
- Prefer the most relevant file under
docs/for exact instructions and prose guidance. - Use
schemas/andexamples/for exact contracts, payloads, manifests, requests, and snippets. - Do not add behavior or configuration that is not present in the attached source files.
Canonical Sources
- https://ai-sdk.dev/docs/ai-sdk-core/devtools
- https://ai-sdk.dev/docs/ai-sdk-core/embeddings
- https://ai-sdk.dev/docs/ai-sdk-core/error-handling
- https://ai-sdk.dev/docs/ai-sdk-core/event-listeners
- https://ai-sdk.dev/docs/ai-sdk-core/generating-structured-data
- https://ai-sdk.dev/docs/ai-sdk-core/generating-text
- https://ai-sdk.dev/docs/ai-sdk-core/image-generation
- https://ai-sdk.dev/docs/ai-sdk-core/mcp-tools
- https://ai-sdk.dev/docs/ai-sdk-core/middleware
- https://ai-sdk.dev/docs/ai-sdk-core/overview
- https://ai-sdk.dev/docs/ai-sdk-core/prompt-engineering
- https://ai-sdk.dev/docs/ai-sdk-core/provider-management
- https://ai-sdk.dev/docs/ai-sdk-core/reranking
- https://ai-sdk.dev/docs/ai-sdk-core/settings
- https://ai-sdk.dev/docs/ai-sdk-core/speech
- https://ai-sdk.dev/docs/ai-sdk-core/telemetry
- https://ai-sdk.dev/docs/ai-sdk-core/testing
- https://ai-sdk.dev/docs/ai-sdk-core/tools-and-tool-calling
- https://ai-sdk.dev/docs/ai-sdk-core/transcription
- https://ai-sdk.dev/docs/ai-sdk-core/video-generation