Prompt Buddy logoPrompt Buddy

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...

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/ai-sdk-core-devtools-docs/workflow-guide.mdA 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.textThe 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.textA 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.textA 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.textThe 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.textThe 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.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdDocumentation 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdDocumentation 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdA 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.textA 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.textDemonstrates 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdDocumentation 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textTextual 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdAn 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.textA 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.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdDocumentation 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdDocumentation 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdDocumentation 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.mdDocumentation 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.textA 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.textDemonstrates 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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

  1. Start with the reference file that matches the question.
  2. Prefer the most relevant file under docs/ for exact instructions and prose guidance.
  3. Use schemas/ and examples/ for exact contracts, payloads, manifests, requests, and snippets.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical Sources