[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-vercel-develop-ai-functions-example":3,"mdc-mgxxhu-key":45,"related-org-vercel-develop-ai-functions-example":3862,"related-repo-vercel-develop-ai-functions-example":4031},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":20,"repoUrl":21,"updatedAt":22,"license":23,"forks":24,"topics":25,"repo":40,"sourceUrl":43,"mdContent":44},"develop-ai-functions-example","develop AI SDK function examples","Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples\u002Fai-functions\u002Fsrc to validate provider support, demonstrate features, or create test fixtures.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"vercel","Vercel","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fvercel.png",[12,14,17],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"AI SDK","ai-sdk",{"name":18,"slug":19,"type":13},"Testing","testing",25670,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai","2026-04-06T18:55:55.088956",null,4816,[26,27,28,29,30,31,32,33,34,35,36,37,38,8,39],"anthropic","artificial-intelligence","gemini","generative-ai","generative-ui","javascript","language-model","llm","nextjs","openai","react","svelte","typescript","vue",{"repoUrl":21,"stars":20,"forks":24,"topics":41,"description":42},[26,27,28,29,30,31,32,33,34,35,36,37,38,8,39],"The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents ","https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai\u002Ftree\u002FHEAD\u002Fskills\u002Fdevelop-ai-functions-example","---\nname: develop-ai-functions-example\ndescription: Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples\u002Fai-functions\u002Fsrc to validate provider support, demonstrate features, or create test fixtures.\nmetadata:\n  internal: true\n---\n\n## AI Functions Examples\n\nThe `examples\u002Fai-functions\u002F` directory contains scripts for validating, testing, and iterating on AI SDK functions across providers.\n\n## Example Categories\n\nExamples are organized by AI SDK function in `examples\u002Fai-functions\u002Fsrc\u002F`:\n\n| Directory          | Purpose                                              |\n| ------------------ | ---------------------------------------------------- |\n| `generate-text\u002F`   | Non-streaming text generation with `generateText()`  |\n| `stream-text\u002F`     | Streaming text generation with `streamText()`        |\n| `generate-object\u002F` | Structured output generation with `generateObject()` |\n| `stream-object\u002F`   | Streaming structured output with `streamObject()`    |\n| `agent\u002F`           | `ToolLoopAgent` examples for agentic workflows       |\n| `embed\u002F`           | Single embedding generation with `embed()`           |\n| `embed-many\u002F`      | Batch embedding generation with `embedMany()`        |\n| `generate-image\u002F`  | Image generation with `generateImage()`              |\n| `generate-speech\u002F` | Text-to-speech with `generateSpeech()`               |\n| `transcribe\u002F`      | Audio transcription with `transcribe()`              |\n| `rerank\u002F`          | Document reranking with `rerank()`                   |\n| `middleware\u002F`      | Custom middleware implementations                    |\n| `registry\u002F`        | Provider registry setup and usage                    |\n| `telemetry\u002F`       | OpenTelemetry integration                            |\n| `complex\u002F`         | Multi-component examples (agents, routers)           |\n| `lib\u002F`             | Shared utilities (not examples)                      |\n| `tools\u002F`           | Reusable tool definitions                            |\n\n## File Naming Convention\n\nExamples follow the pattern: `{provider}-{feature}.ts`\n\n| Pattern                                  | Example                                    | Description                |\n| ---------------------------------------- | ------------------------------------------ | -------------------------- |\n| `{provider}.ts`                          | `openai.ts`                                | Basic provider usage       |\n| `{provider}-{feature}.ts`                | `openai-tool-call.ts`                      | Specific feature           |\n| `{provider}-{sub-provider}.ts`           | `amazon-bedrock-anthropic.ts`              | Provider with sub-provider |\n| `{provider}-{sub-provider}-{feature}.ts` | `google-vertex-anthropic-cache-control.ts` | Sub-provider with feature  |\n\n## Example Structure\n\nAll examples use the `run()` wrapper from `lib\u002Frun.ts` which:\n\n- Loads environment variables from `.env`\n- Provides error handling with detailed API error logging\n\n### Basic Template\n\n```typescript\nimport { providerName } from '@ai-sdk\u002Fprovider-name';\nimport { generateText } from 'ai';\nimport { run } from '..\u002Flib\u002Frun';\n\nrun(async () => {\n  const result = await generateText({\n    model: providerName('model-id'),\n    prompt: 'Your prompt here.',\n  });\n\n  console.log(result.text);\n  console.log('Token usage:', result.usage);\n  console.log('Finish reason:', result.finishReason);\n});\n```\n\n### Streaming Template\n\n```typescript\nimport { providerName } from '@ai-sdk\u002Fprovider-name';\nimport { streamText } from 'ai';\nimport { printFullStream } from '..\u002Flib\u002Fprint-full-stream';\nimport { run } from '..\u002Flib\u002Frun';\n\nrun(async () => {\n  const result = streamText({\n    model: providerName('model-id'),\n    prompt: 'Your prompt here.',\n  });\n\n  await printFullStream({ result });\n});\n```\n\n### Tool Calling Template\n\n```typescript\nimport { providerName } from '@ai-sdk\u002Fprovider-name';\nimport { generateText, tool } from 'ai';\nimport { z } from 'zod';\nimport { run } from '..\u002Flib\u002Frun';\n\nrun(async () => {\n  const result = await generateText({\n    model: providerName('model-id'),\n    tools: {\n      myTool: tool({\n        description: 'Tool description',\n        inputSchema: z.object({\n          param: z.string().describe('Parameter description'),\n        }),\n        execute: async ({ param }) => {\n          return { result: `Processed: ${param}` };\n        },\n      }),\n    },\n    prompt: 'Use the tool to...',\n  });\n\n  console.log(JSON.stringify(result, null, 2));\n});\n```\n\n### Structured Output Template\n\n```typescript\nimport { providerName } from '@ai-sdk\u002Fprovider-name';\nimport { generateObject } from 'ai';\nimport { z } from 'zod';\nimport { run } from '..\u002Flib\u002Frun';\n\nrun(async () => {\n  const result = await generateObject({\n    model: providerName('model-id'),\n    schema: z.object({\n      name: z.string(),\n      items: z.array(z.string()),\n    }),\n    prompt: 'Generate a...',\n  });\n\n  console.log(JSON.stringify(result.object, null, 2));\n  console.log('Token usage:', result.usage);\n});\n```\n\n## Running Examples\n\nFrom the `examples\u002Fai-functions` directory:\n\n```bash\npnpm tsx src\u002Fgenerate-text\u002Fopenai.ts\npnpm tsx src\u002Fstream-text\u002Fopenai-tool-call.ts\npnpm tsx src\u002Fagent\u002Fopenai-generate.ts\n```\n\n## When to Write Examples\n\nWrite examples when:\n\n1. **Adding a new provider**: Create basic examples for each supported API (`generateText`, `streamText`, `generateObject`, etc.)\n\n2. **Implementing a new feature**: Demonstrate the feature with at least one provider example\n\n3. **Reproducing a bug**: Create an example that shows the issue for debugging\n\n4. **Adding provider-specific options**: Show how to use `providerOptions` for provider-specific settings\n\n5. **Creating test fixtures**: Use examples to generate API response fixtures (see `capture-api-response-test-fixture` skill)\n\n## Utility Helpers\n\nThe `lib\u002F` directory contains shared utilities:\n\n| File                   | Purpose                                                  |\n| ---------------------- | -------------------------------------------------------- |\n| `run.ts`               | Error-handling wrapper with `.env` loading               |\n| `print.ts`             | Clean object printing (removes undefined values)         |\n| `print-full-stream.ts` | Colored streaming output for tool calls, reasoning, text |\n| `save-raw-chunks.ts`   | Save streaming chunks for test fixtures                  |\n| `present-image.ts`     | Display images in terminal                               |\n| `save-audio.ts`        | Save audio files to disk                                 |\n\n### Using print utilities\n\n```typescript\nimport { print } from '..\u002Flib\u002Fprint';\n\n\u002F\u002F Pretty print objects without undefined values\nprint('Result:', result);\nprint('Usage:', result.usage, { depth: 2 });\n```\n\n### Using printFullStream\n\n```typescript\nimport { printFullStream } from '..\u002Flib\u002Fprint-full-stream';\n\nconst result = streamText({ ... });\nawait printFullStream({ result }); \u002F\u002F Colored output for text, tool calls, reasoning\n```\n\n## Reusable Tools\n\nThe `tools\u002F` directory contains reusable tool definitions:\n\n```typescript\nimport { weatherTool } from '..\u002Ftools\u002Fweather-tool';\n\nconst result = await generateText({\n  model: openai('gpt-4o'),\n  tools: { weather: weatherTool },\n  prompt: 'What is the weather in San Francisco?',\n});\n```\n\n## Best Practices\n\n1. **Keep examples focused**: Each example should demonstrate one feature or use case\n\n2. **Use descriptive prompts**: Make it clear what the example is testing\n\n3. **Handle errors gracefully**: The `run()` wrapper handles this automatically\n\n4. **Use realistic model IDs**: Use actual model IDs that work with the provider\n\n5. **Add comments for complex logic**: Explain non-obvious code patterns\n\n6. **Reuse tools when appropriate**: Use `weatherTool` or create new reusable tools in `tools\u002F`\n",{"data":46,"body":49},{"name":4,"description":6,"metadata":47},{"internal":48},true,{"type":50,"children":51},"root",[52,61,76,82,95,478,484,495,625,631,652,673,680,1189,1195,1562,1568,2291,2297,2883,2889,2902,2962,2968,2973,3067,3073,3084,3214,3220,3395,3401,3543,3549,3560,3767,3773,3856],{"type":53,"tag":54,"props":55,"children":57},"element","h2",{"id":56},"ai-functions-examples",[58],{"type":59,"value":60},"text","AI Functions Examples",{"type":53,"tag":62,"props":63,"children":64},"p",{},[65,67,74],{"type":59,"value":66},"The ",{"type":53,"tag":68,"props":69,"children":71},"code",{"className":70},[],[72],{"type":59,"value":73},"examples\u002Fai-functions\u002F",{"type":59,"value":75}," directory contains scripts for validating, testing, and iterating on AI SDK functions across providers.",{"type":53,"tag":54,"props":77,"children":79},{"id":78},"example-categories",[80],{"type":59,"value":81},"Example Categories",{"type":53,"tag":62,"props":83,"children":84},{},[85,87,93],{"type":59,"value":86},"Examples are organized by AI SDK function in ",{"type":53,"tag":68,"props":88,"children":90},{"className":89},[],[91],{"type":59,"value":92},"examples\u002Fai-functions\u002Fsrc\u002F",{"type":59,"value":94},":",{"type":53,"tag":96,"props":97,"children":98},"table",{},[99,118],{"type":53,"tag":100,"props":101,"children":102},"thead",{},[103],{"type":53,"tag":104,"props":105,"children":106},"tr",{},[107,113],{"type":53,"tag":108,"props":109,"children":110},"th",{},[111],{"type":59,"value":112},"Directory",{"type":53,"tag":108,"props":114,"children":115},{},[116],{"type":59,"value":117},"Purpose",{"type":53,"tag":119,"props":120,"children":121},"tbody",{},[122,146,169,192,215,238,261,284,307,330,353,376,393,410,427,444,461],{"type":53,"tag":104,"props":123,"children":124},{},[125,135],{"type":53,"tag":126,"props":127,"children":128},"td",{},[129],{"type":53,"tag":68,"props":130,"children":132},{"className":131},[],[133],{"type":59,"value":134},"generate-text\u002F",{"type":53,"tag":126,"props":136,"children":137},{},[138,140],{"type":59,"value":139},"Non-streaming text generation with ",{"type":53,"tag":68,"props":141,"children":143},{"className":142},[],[144],{"type":59,"value":145},"generateText()",{"type":53,"tag":104,"props":147,"children":148},{},[149,158],{"type":53,"tag":126,"props":150,"children":151},{},[152],{"type":53,"tag":68,"props":153,"children":155},{"className":154},[],[156],{"type":59,"value":157},"stream-text\u002F",{"type":53,"tag":126,"props":159,"children":160},{},[161,163],{"type":59,"value":162},"Streaming text generation with ",{"type":53,"tag":68,"props":164,"children":166},{"className":165},[],[167],{"type":59,"value":168},"streamText()",{"type":53,"tag":104,"props":170,"children":171},{},[172,181],{"type":53,"tag":126,"props":173,"children":174},{},[175],{"type":53,"tag":68,"props":176,"children":178},{"className":177},[],[179],{"type":59,"value":180},"generate-object\u002F",{"type":53,"tag":126,"props":182,"children":183},{},[184,186],{"type":59,"value":185},"Structured output generation with ",{"type":53,"tag":68,"props":187,"children":189},{"className":188},[],[190],{"type":59,"value":191},"generateObject()",{"type":53,"tag":104,"props":193,"children":194},{},[195,204],{"type":53,"tag":126,"props":196,"children":197},{},[198],{"type":53,"tag":68,"props":199,"children":201},{"className":200},[],[202],{"type":59,"value":203},"stream-object\u002F",{"type":53,"tag":126,"props":205,"children":206},{},[207,209],{"type":59,"value":208},"Streaming structured output with ",{"type":53,"tag":68,"props":210,"children":212},{"className":211},[],[213],{"type":59,"value":214},"streamObject()",{"type":53,"tag":104,"props":216,"children":217},{},[218,227],{"type":53,"tag":126,"props":219,"children":220},{},[221],{"type":53,"tag":68,"props":222,"children":224},{"className":223},[],[225],{"type":59,"value":226},"agent\u002F",{"type":53,"tag":126,"props":228,"children":229},{},[230,236],{"type":53,"tag":68,"props":231,"children":233},{"className":232},[],[234],{"type":59,"value":235},"ToolLoopAgent",{"type":59,"value":237}," examples for agentic workflows",{"type":53,"tag":104,"props":239,"children":240},{},[241,250],{"type":53,"tag":126,"props":242,"children":243},{},[244],{"type":53,"tag":68,"props":245,"children":247},{"className":246},[],[248],{"type":59,"value":249},"embed\u002F",{"type":53,"tag":126,"props":251,"children":252},{},[253,255],{"type":59,"value":254},"Single embedding generation with ",{"type":53,"tag":68,"props":256,"children":258},{"className":257},[],[259],{"type":59,"value":260},"embed()",{"type":53,"tag":104,"props":262,"children":263},{},[264,273],{"type":53,"tag":126,"props":265,"children":266},{},[267],{"type":53,"tag":68,"props":268,"children":270},{"className":269},[],[271],{"type":59,"value":272},"embed-many\u002F",{"type":53,"tag":126,"props":274,"children":275},{},[276,278],{"type":59,"value":277},"Batch embedding generation with ",{"type":53,"tag":68,"props":279,"children":281},{"className":280},[],[282],{"type":59,"value":283},"embedMany()",{"type":53,"tag":104,"props":285,"children":286},{},[287,296],{"type":53,"tag":126,"props":288,"children":289},{},[290],{"type":53,"tag":68,"props":291,"children":293},{"className":292},[],[294],{"type":59,"value":295},"generate-image\u002F",{"type":53,"tag":126,"props":297,"children":298},{},[299,301],{"type":59,"value":300},"Image generation with ",{"type":53,"tag":68,"props":302,"children":304},{"className":303},[],[305],{"type":59,"value":306},"generateImage()",{"type":53,"tag":104,"props":308,"children":309},{},[310,319],{"type":53,"tag":126,"props":311,"children":312},{},[313],{"type":53,"tag":68,"props":314,"children":316},{"className":315},[],[317],{"type":59,"value":318},"generate-speech\u002F",{"type":53,"tag":126,"props":320,"children":321},{},[322,324],{"type":59,"value":323},"Text-to-speech with ",{"type":53,"tag":68,"props":325,"children":327},{"className":326},[],[328],{"type":59,"value":329},"generateSpeech()",{"type":53,"tag":104,"props":331,"children":332},{},[333,342],{"type":53,"tag":126,"props":334,"children":335},{},[336],{"type":53,"tag":68,"props":337,"children":339},{"className":338},[],[340],{"type":59,"value":341},"transcribe\u002F",{"type":53,"tag":126,"props":343,"children":344},{},[345,347],{"type":59,"value":346},"Audio transcription with ",{"type":53,"tag":68,"props":348,"children":350},{"className":349},[],[351],{"type":59,"value":352},"transcribe()",{"type":53,"tag":104,"props":354,"children":355},{},[356,365],{"type":53,"tag":126,"props":357,"children":358},{},[359],{"type":53,"tag":68,"props":360,"children":362},{"className":361},[],[363],{"type":59,"value":364},"rerank\u002F",{"type":53,"tag":126,"props":366,"children":367},{},[368,370],{"type":59,"value":369},"Document reranking with ",{"type":53,"tag":68,"props":371,"children":373},{"className":372},[],[374],{"type":59,"value":375},"rerank()",{"type":53,"tag":104,"props":377,"children":378},{},[379,388],{"type":53,"tag":126,"props":380,"children":381},{},[382],{"type":53,"tag":68,"props":383,"children":385},{"className":384},[],[386],{"type":59,"value":387},"middleware\u002F",{"type":53,"tag":126,"props":389,"children":390},{},[391],{"type":59,"value":392},"Custom middleware implementations",{"type":53,"tag":104,"props":394,"children":395},{},[396,405],{"type":53,"tag":126,"props":397,"children":398},{},[399],{"type":53,"tag":68,"props":400,"children":402},{"className":401},[],[403],{"type":59,"value":404},"registry\u002F",{"type":53,"tag":126,"props":406,"children":407},{},[408],{"type":59,"value":409},"Provider registry setup and usage",{"type":53,"tag":104,"props":411,"children":412},{},[413,422],{"type":53,"tag":126,"props":414,"children":415},{},[416],{"type":53,"tag":68,"props":417,"children":419},{"className":418},[],[420],{"type":59,"value":421},"telemetry\u002F",{"type":53,"tag":126,"props":423,"children":424},{},[425],{"type":59,"value":426},"OpenTelemetry integration",{"type":53,"tag":104,"props":428,"children":429},{},[430,439],{"type":53,"tag":126,"props":431,"children":432},{},[433],{"type":53,"tag":68,"props":434,"children":436},{"className":435},[],[437],{"type":59,"value":438},"complex\u002F",{"type":53,"tag":126,"props":440,"children":441},{},[442],{"type":59,"value":443},"Multi-component examples (agents, routers)",{"type":53,"tag":104,"props":445,"children":446},{},[447,456],{"type":53,"tag":126,"props":448,"children":449},{},[450],{"type":53,"tag":68,"props":451,"children":453},{"className":452},[],[454],{"type":59,"value":455},"lib\u002F",{"type":53,"tag":126,"props":457,"children":458},{},[459],{"type":59,"value":460},"Shared utilities (not examples)",{"type":53,"tag":104,"props":462,"children":463},{},[464,473],{"type":53,"tag":126,"props":465,"children":466},{},[467],{"type":53,"tag":68,"props":468,"children":470},{"className":469},[],[471],{"type":59,"value":472},"tools\u002F",{"type":53,"tag":126,"props":474,"children":475},{},[476],{"type":59,"value":477},"Reusable tool definitions",{"type":53,"tag":54,"props":479,"children":481},{"id":480},"file-naming-convention",[482],{"type":59,"value":483},"File Naming Convention",{"type":53,"tag":62,"props":485,"children":486},{},[487,489],{"type":59,"value":488},"Examples follow the pattern: ",{"type":53,"tag":68,"props":490,"children":492},{"className":491},[],[493],{"type":59,"value":494},"{provider}-{feature}.ts",{"type":53,"tag":96,"props":496,"children":497},{},[498,519],{"type":53,"tag":100,"props":499,"children":500},{},[501],{"type":53,"tag":104,"props":502,"children":503},{},[504,509,514],{"type":53,"tag":108,"props":505,"children":506},{},[507],{"type":59,"value":508},"Pattern",{"type":53,"tag":108,"props":510,"children":511},{},[512],{"type":59,"value":513},"Example",{"type":53,"tag":108,"props":515,"children":516},{},[517],{"type":59,"value":518},"Description",{"type":53,"tag":119,"props":520,"children":521},{},[522,548,573,599],{"type":53,"tag":104,"props":523,"children":524},{},[525,534,543],{"type":53,"tag":126,"props":526,"children":527},{},[528],{"type":53,"tag":68,"props":529,"children":531},{"className":530},[],[532],{"type":59,"value":533},"{provider}.ts",{"type":53,"tag":126,"props":535,"children":536},{},[537],{"type":53,"tag":68,"props":538,"children":540},{"className":539},[],[541],{"type":59,"value":542},"openai.ts",{"type":53,"tag":126,"props":544,"children":545},{},[546],{"type":59,"value":547},"Basic provider usage",{"type":53,"tag":104,"props":549,"children":550},{},[551,559,568],{"type":53,"tag":126,"props":552,"children":553},{},[554],{"type":53,"tag":68,"props":555,"children":557},{"className":556},[],[558],{"type":59,"value":494},{"type":53,"tag":126,"props":560,"children":561},{},[562],{"type":53,"tag":68,"props":563,"children":565},{"className":564},[],[566],{"type":59,"value":567},"openai-tool-call.ts",{"type":53,"tag":126,"props":569,"children":570},{},[571],{"type":59,"value":572},"Specific feature",{"type":53,"tag":104,"props":574,"children":575},{},[576,585,594],{"type":53,"tag":126,"props":577,"children":578},{},[579],{"type":53,"tag":68,"props":580,"children":582},{"className":581},[],[583],{"type":59,"value":584},"{provider}-{sub-provider}.ts",{"type":53,"tag":126,"props":586,"children":587},{},[588],{"type":53,"tag":68,"props":589,"children":591},{"className":590},[],[592],{"type":59,"value":593},"amazon-bedrock-anthropic.ts",{"type":53,"tag":126,"props":595,"children":596},{},[597],{"type":59,"value":598},"Provider with sub-provider",{"type":53,"tag":104,"props":600,"children":601},{},[602,611,620],{"type":53,"tag":126,"props":603,"children":604},{},[605],{"type":53,"tag":68,"props":606,"children":608},{"className":607},[],[609],{"type":59,"value":610},"{provider}-{sub-provider}-{feature}.ts",{"type":53,"tag":126,"props":612,"children":613},{},[614],{"type":53,"tag":68,"props":615,"children":617},{"className":616},[],[618],{"type":59,"value":619},"google-vertex-anthropic-cache-control.ts",{"type":53,"tag":126,"props":621,"children":622},{},[623],{"type":59,"value":624},"Sub-provider with feature",{"type":53,"tag":54,"props":626,"children":628},{"id":627},"example-structure",[629],{"type":59,"value":630},"Example Structure",{"type":53,"tag":62,"props":632,"children":633},{},[634,636,642,644,650],{"type":59,"value":635},"All examples use the ",{"type":53,"tag":68,"props":637,"children":639},{"className":638},[],[640],{"type":59,"value":641},"run()",{"type":59,"value":643}," wrapper from ",{"type":53,"tag":68,"props":645,"children":647},{"className":646},[],[648],{"type":59,"value":649},"lib\u002Frun.ts",{"type":59,"value":651}," which:",{"type":53,"tag":653,"props":654,"children":655},"ul",{},[656,668],{"type":53,"tag":657,"props":658,"children":659},"li",{},[660,662],{"type":59,"value":661},"Loads environment variables from ",{"type":53,"tag":68,"props":663,"children":665},{"className":664},[],[666],{"type":59,"value":667},".env",{"type":53,"tag":657,"props":669,"children":670},{},[671],{"type":59,"value":672},"Provides error handling with detailed API error logging",{"type":53,"tag":674,"props":675,"children":677},"h3",{"id":676},"basic-template",[678],{"type":59,"value":679},"Basic Template",{"type":53,"tag":681,"props":682,"children":686},"pre",{"className":683,"code":684,"language":38,"meta":685,"style":685},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { providerName } from '@ai-sdk\u002Fprovider-name';\nimport { generateText } from 'ai';\nimport { run } from '..\u002Flib\u002Frun';\n\nrun(async () => {\n  const result = await generateText({\n    model: providerName('model-id'),\n    prompt: 'Your prompt here.',\n  });\n\n  console.log(result.text);\n  console.log('Token usage:', result.usage);\n  console.log('Finish reason:', result.finishReason);\n});\n","",[687],{"type":53,"tag":68,"props":688,"children":689},{"__ignoreMap":685},[690,745,787,829,838,874,912,956,986,1003,1011,1055,1114,1172],{"type":53,"tag":691,"props":692,"children":695},"span",{"class":693,"line":694},"line",1,[696,702,708,714,719,724,729,735,740],{"type":53,"tag":691,"props":697,"children":699},{"style":698},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[700],{"type":59,"value":701},"import",{"type":53,"tag":691,"props":703,"children":705},{"style":704},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[706],{"type":59,"value":707}," {",{"type":53,"tag":691,"props":709,"children":711},{"style":710},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[712],{"type":59,"value":713}," providerName",{"type":53,"tag":691,"props":715,"children":716},{"style":704},[717],{"type":59,"value":718}," }",{"type":53,"tag":691,"props":720,"children":721},{"style":698},[722],{"type":59,"value":723}," from",{"type":53,"tag":691,"props":725,"children":726},{"style":704},[727],{"type":59,"value":728}," '",{"type":53,"tag":691,"props":730,"children":732},{"style":731},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[733],{"type":59,"value":734},"@ai-sdk\u002Fprovider-name",{"type":53,"tag":691,"props":736,"children":737},{"style":704},[738],{"type":59,"value":739},"'",{"type":53,"tag":691,"props":741,"children":742},{"style":704},[743],{"type":59,"value":744},";\n",{"type":53,"tag":691,"props":746,"children":748},{"class":693,"line":747},2,[749,753,757,762,766,770,774,779,783],{"type":53,"tag":691,"props":750,"children":751},{"style":698},[752],{"type":59,"value":701},{"type":53,"tag":691,"props":754,"children":755},{"style":704},[756],{"type":59,"value":707},{"type":53,"tag":691,"props":758,"children":759},{"style":710},[760],{"type":59,"value":761}," generateText",{"type":53,"tag":691,"props":763,"children":764},{"style":704},[765],{"type":59,"value":718},{"type":53,"tag":691,"props":767,"children":768},{"style":698},[769],{"type":59,"value":723},{"type":53,"tag":691,"props":771,"children":772},{"style":704},[773],{"type":59,"value":728},{"type":53,"tag":691,"props":775,"children":776},{"style":731},[777],{"type":59,"value":778},"ai",{"type":53,"tag":691,"props":780,"children":781},{"style":704},[782],{"type":59,"value":739},{"type":53,"tag":691,"props":784,"children":785},{"style":704},[786],{"type":59,"value":744},{"type":53,"tag":691,"props":788,"children":790},{"class":693,"line":789},3,[791,795,799,804,808,812,816,821,825],{"type":53,"tag":691,"props":792,"children":793},{"style":698},[794],{"type":59,"value":701},{"type":53,"tag":691,"props":796,"children":797},{"style":704},[798],{"type":59,"value":707},{"type":53,"tag":691,"props":800,"children":801},{"style":710},[802],{"type":59,"value":803}," run",{"type":53,"tag":691,"props":805,"children":806},{"style":704},[807],{"type":59,"value":718},{"type":53,"tag":691,"props":809,"children":810},{"style":698},[811],{"type":59,"value":723},{"type":53,"tag":691,"props":813,"children":814},{"style":704},[815],{"type":59,"value":728},{"type":53,"tag":691,"props":817,"children":818},{"style":731},[819],{"type":59,"value":820},"..\u002Flib\u002Frun",{"type":53,"tag":691,"props":822,"children":823},{"style":704},[824],{"type":59,"value":739},{"type":53,"tag":691,"props":826,"children":827},{"style":704},[828],{"type":59,"value":744},{"type":53,"tag":691,"props":830,"children":832},{"class":693,"line":831},4,[833],{"type":53,"tag":691,"props":834,"children":835},{"emptyLinePlaceholder":48},[836],{"type":59,"value":837},"\n",{"type":53,"tag":691,"props":839,"children":841},{"class":693,"line":840},5,[842,848,853,859,864,869],{"type":53,"tag":691,"props":843,"children":845},{"style":844},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[846],{"type":59,"value":847},"run",{"type":53,"tag":691,"props":849,"children":850},{"style":710},[851],{"type":59,"value":852},"(",{"type":53,"tag":691,"props":854,"children":856},{"style":855},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[857],{"type":59,"value":858},"async",{"type":53,"tag":691,"props":860,"children":861},{"style":704},[862],{"type":59,"value":863}," ()",{"type":53,"tag":691,"props":865,"children":866},{"style":855},[867],{"type":59,"value":868}," =>",{"type":53,"tag":691,"props":870,"children":871},{"style":704},[872],{"type":59,"value":873}," {\n",{"type":53,"tag":691,"props":875,"children":877},{"class":693,"line":876},6,[878,883,888,893,898,902,907],{"type":53,"tag":691,"props":879,"children":880},{"style":855},[881],{"type":59,"value":882},"  const",{"type":53,"tag":691,"props":884,"children":885},{"style":710},[886],{"type":59,"value":887}," result",{"type":53,"tag":691,"props":889,"children":890},{"style":704},[891],{"type":59,"value":892}," =",{"type":53,"tag":691,"props":894,"children":895},{"style":698},[896],{"type":59,"value":897}," await",{"type":53,"tag":691,"props":899,"children":900},{"style":844},[901],{"type":59,"value":761},{"type":53,"tag":691,"props":903,"children":905},{"style":904},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[906],{"type":59,"value":852},{"type":53,"tag":691,"props":908,"children":909},{"style":704},[910],{"type":59,"value":911},"{\n",{"type":53,"tag":691,"props":913,"children":915},{"class":693,"line":914},7,[916,921,925,929,933,937,942,946,951],{"type":53,"tag":691,"props":917,"children":918},{"style":904},[919],{"type":59,"value":920},"    model",{"type":53,"tag":691,"props":922,"children":923},{"style":704},[924],{"type":59,"value":94},{"type":53,"tag":691,"props":926,"children":927},{"style":844},[928],{"type":59,"value":713},{"type":53,"tag":691,"props":930,"children":931},{"style":904},[932],{"type":59,"value":852},{"type":53,"tag":691,"props":934,"children":935},{"style":704},[936],{"type":59,"value":739},{"type":53,"tag":691,"props":938,"children":939},{"style":731},[940],{"type":59,"value":941},"model-id",{"type":53,"tag":691,"props":943,"children":944},{"style":704},[945],{"type":59,"value":739},{"type":53,"tag":691,"props":947,"children":948},{"style":904},[949],{"type":59,"value":950},")",{"type":53,"tag":691,"props":952,"children":953},{"style":704},[954],{"type":59,"value":955},",\n",{"type":53,"tag":691,"props":957,"children":959},{"class":693,"line":958},8,[960,965,969,973,978,982],{"type":53,"tag":691,"props":961,"children":962},{"style":904},[963],{"type":59,"value":964},"    prompt",{"type":53,"tag":691,"props":966,"children":967},{"style":704},[968],{"type":59,"value":94},{"type":53,"tag":691,"props":970,"children":971},{"style":704},[972],{"type":59,"value":728},{"type":53,"tag":691,"props":974,"children":975},{"style":731},[976],{"type":59,"value":977},"Your prompt here.",{"type":53,"tag":691,"props":979,"children":980},{"style":704},[981],{"type":59,"value":739},{"type":53,"tag":691,"props":983,"children":984},{"style":704},[985],{"type":59,"value":955},{"type":53,"tag":691,"props":987,"children":989},{"class":693,"line":988},9,[990,995,999],{"type":53,"tag":691,"props":991,"children":992},{"style":704},[993],{"type":59,"value":994},"  }",{"type":53,"tag":691,"props":996,"children":997},{"style":904},[998],{"type":59,"value":950},{"type":53,"tag":691,"props":1000,"children":1001},{"style":704},[1002],{"type":59,"value":744},{"type":53,"tag":691,"props":1004,"children":1006},{"class":693,"line":1005},10,[1007],{"type":53,"tag":691,"props":1008,"children":1009},{"emptyLinePlaceholder":48},[1010],{"type":59,"value":837},{"type":53,"tag":691,"props":1012,"children":1014},{"class":693,"line":1013},11,[1015,1020,1025,1030,1034,1039,1043,1047,1051],{"type":53,"tag":691,"props":1016,"children":1017},{"style":710},[1018],{"type":59,"value":1019},"  console",{"type":53,"tag":691,"props":1021,"children":1022},{"style":704},[1023],{"type":59,"value":1024},".",{"type":53,"tag":691,"props":1026,"children":1027},{"style":844},[1028],{"type":59,"value":1029},"log",{"type":53,"tag":691,"props":1031,"children":1032},{"style":904},[1033],{"type":59,"value":852},{"type":53,"tag":691,"props":1035,"children":1036},{"style":710},[1037],{"type":59,"value":1038},"result",{"type":53,"tag":691,"props":1040,"children":1041},{"style":704},[1042],{"type":59,"value":1024},{"type":53,"tag":691,"props":1044,"children":1045},{"style":710},[1046],{"type":59,"value":59},{"type":53,"tag":691,"props":1048,"children":1049},{"style":904},[1050],{"type":59,"value":950},{"type":53,"tag":691,"props":1052,"children":1053},{"style":704},[1054],{"type":59,"value":744},{"type":53,"tag":691,"props":1056,"children":1058},{"class":693,"line":1057},12,[1059,1063,1067,1071,1075,1079,1084,1088,1093,1097,1101,1106,1110],{"type":53,"tag":691,"props":1060,"children":1061},{"style":710},[1062],{"type":59,"value":1019},{"type":53,"tag":691,"props":1064,"children":1065},{"style":704},[1066],{"type":59,"value":1024},{"type":53,"tag":691,"props":1068,"children":1069},{"style":844},[1070],{"type":59,"value":1029},{"type":53,"tag":691,"props":1072,"children":1073},{"style":904},[1074],{"type":59,"value":852},{"type":53,"tag":691,"props":1076,"children":1077},{"style":704},[1078],{"type":59,"value":739},{"type":53,"tag":691,"props":1080,"children":1081},{"style":731},[1082],{"type":59,"value":1083},"Token usage:",{"type":53,"tag":691,"props":1085,"children":1086},{"style":704},[1087],{"type":59,"value":739},{"type":53,"tag":691,"props":1089,"children":1090},{"style":704},[1091],{"type":59,"value":1092},",",{"type":53,"tag":691,"props":1094,"children":1095},{"style":710},[1096],{"type":59,"value":887},{"type":53,"tag":691,"props":1098,"children":1099},{"style":704},[1100],{"type":59,"value":1024},{"type":53,"tag":691,"props":1102,"children":1103},{"style":710},[1104],{"type":59,"value":1105},"usage",{"type":53,"tag":691,"props":1107,"children":1108},{"style":904},[1109],{"type":59,"value":950},{"type":53,"tag":691,"props":1111,"children":1112},{"style":704},[1113],{"type":59,"value":744},{"type":53,"tag":691,"props":1115,"children":1117},{"class":693,"line":1116},13,[1118,1122,1126,1130,1134,1138,1143,1147,1151,1155,1159,1164,1168],{"type":53,"tag":691,"props":1119,"children":1120},{"style":710},[1121],{"type":59,"value":1019},{"type":53,"tag":691,"props":1123,"children":1124},{"style":704},[1125],{"type":59,"value":1024},{"type":53,"tag":691,"props":1127,"children":1128},{"style":844},[1129],{"type":59,"value":1029},{"type":53,"tag":691,"props":1131,"children":1132},{"style":904},[1133],{"type":59,"value":852},{"type":53,"tag":691,"props":1135,"children":1136},{"style":704},[1137],{"type":59,"value":739},{"type":53,"tag":691,"props":1139,"children":1140},{"style":731},[1141],{"type":59,"value":1142},"Finish reason:",{"type":53,"tag":691,"props":1144,"children":1145},{"style":704},[1146],{"type":59,"value":739},{"type":53,"tag":691,"props":1148,"children":1149},{"style":704},[1150],{"type":59,"value":1092},{"type":53,"tag":691,"props":1152,"children":1153},{"style":710},[1154],{"type":59,"value":887},{"type":53,"tag":691,"props":1156,"children":1157},{"style":704},[1158],{"type":59,"value":1024},{"type":53,"tag":691,"props":1160,"children":1161},{"style":710},[1162],{"type":59,"value":1163},"finishReason",{"type":53,"tag":691,"props":1165,"children":1166},{"style":904},[1167],{"type":59,"value":950},{"type":53,"tag":691,"props":1169,"children":1170},{"style":704},[1171],{"type":59,"value":744},{"type":53,"tag":691,"props":1173,"children":1175},{"class":693,"line":1174},14,[1176,1181,1185],{"type":53,"tag":691,"props":1177,"children":1178},{"style":704},[1179],{"type":59,"value":1180},"}",{"type":53,"tag":691,"props":1182,"children":1183},{"style":710},[1184],{"type":59,"value":950},{"type":53,"tag":691,"props":1186,"children":1187},{"style":704},[1188],{"type":59,"value":744},{"type":53,"tag":674,"props":1190,"children":1192},{"id":1191},"streaming-template",[1193],{"type":59,"value":1194},"Streaming Template",{"type":53,"tag":681,"props":1196,"children":1198},{"className":683,"code":1197,"language":38,"meta":685,"style":685},"import { providerName } from '@ai-sdk\u002Fprovider-name';\nimport { streamText } from 'ai';\nimport { printFullStream } from '..\u002Flib\u002Fprint-full-stream';\nimport { run } from '..\u002Flib\u002Frun';\n\nrun(async () => {\n  const result = streamText({\n    model: providerName('model-id'),\n    prompt: 'Your prompt here.',\n  });\n\n  await printFullStream({ result });\n});\n",[1199],{"type":53,"tag":68,"props":1200,"children":1201},{"__ignoreMap":685},[1202,1241,1281,1322,1361,1368,1395,1422,1461,1488,1503,1510,1547],{"type":53,"tag":691,"props":1203,"children":1204},{"class":693,"line":694},[1205,1209,1213,1217,1221,1225,1229,1233,1237],{"type":53,"tag":691,"props":1206,"children":1207},{"style":698},[1208],{"type":59,"value":701},{"type":53,"tag":691,"props":1210,"children":1211},{"style":704},[1212],{"type":59,"value":707},{"type":53,"tag":691,"props":1214,"children":1215},{"style":710},[1216],{"type":59,"value":713},{"type":53,"tag":691,"props":1218,"children":1219},{"style":704},[1220],{"type":59,"value":718},{"type":53,"tag":691,"props":1222,"children":1223},{"style":698},[1224],{"type":59,"value":723},{"type":53,"tag":691,"props":1226,"children":1227},{"style":704},[1228],{"type":59,"value":728},{"type":53,"tag":691,"props":1230,"children":1231},{"style":731},[1232],{"type":59,"value":734},{"type":53,"tag":691,"props":1234,"children":1235},{"style":704},[1236],{"type":59,"value":739},{"type":53,"tag":691,"props":1238,"children":1239},{"style":704},[1240],{"type":59,"value":744},{"type":53,"tag":691,"props":1242,"children":1243},{"class":693,"line":747},[1244,1248,1252,1257,1261,1265,1269,1273,1277],{"type":53,"tag":691,"props":1245,"children":1246},{"style":698},[1247],{"type":59,"value":701},{"type":53,"tag":691,"props":1249,"children":1250},{"style":704},[1251],{"type":59,"value":707},{"type":53,"tag":691,"props":1253,"children":1254},{"style":710},[1255],{"type":59,"value":1256}," streamText",{"type":53,"tag":691,"props":1258,"children":1259},{"style":704},[1260],{"type":59,"value":718},{"type":53,"tag":691,"props":1262,"children":1263},{"style":698},[1264],{"type":59,"value":723},{"type":53,"tag":691,"props":1266,"children":1267},{"style":704},[1268],{"type":59,"value":728},{"type":53,"tag":691,"props":1270,"children":1271},{"style":731},[1272],{"type":59,"value":778},{"type":53,"tag":691,"props":1274,"children":1275},{"style":704},[1276],{"type":59,"value":739},{"type":53,"tag":691,"props":1278,"children":1279},{"style":704},[1280],{"type":59,"value":744},{"type":53,"tag":691,"props":1282,"children":1283},{"class":693,"line":789},[1284,1288,1292,1297,1301,1305,1309,1314,1318],{"type":53,"tag":691,"props":1285,"children":1286},{"style":698},[1287],{"type":59,"value":701},{"type":53,"tag":691,"props":1289,"children":1290},{"style":704},[1291],{"type":59,"value":707},{"type":53,"tag":691,"props":1293,"children":1294},{"style":710},[1295],{"type":59,"value":1296}," printFullStream",{"type":53,"tag":691,"props":1298,"children":1299},{"style":704},[1300],{"type":59,"value":718},{"type":53,"tag":691,"props":1302,"children":1303},{"style":698},[1304],{"type":59,"value":723},{"type":53,"tag":691,"props":1306,"children":1307},{"style":704},[1308],{"type":59,"value":728},{"type":53,"tag":691,"props":1310,"children":1311},{"style":731},[1312],{"type":59,"value":1313},"..\u002Flib\u002Fprint-full-stream",{"type":53,"tag":691,"props":1315,"children":1316},{"style":704},[1317],{"type":59,"value":739},{"type":53,"tag":691,"props":1319,"children":1320},{"style":704},[1321],{"type":59,"value":744},{"type":53,"tag":691,"props":1323,"children":1324},{"class":693,"line":831},[1325,1329,1333,1337,1341,1345,1349,1353,1357],{"type":53,"tag":691,"props":1326,"children":1327},{"style":698},[1328],{"type":59,"value":701},{"type":53,"tag":691,"props":1330,"children":1331},{"style":704},[1332],{"type":59,"value":707},{"type":53,"tag":691,"props":1334,"children":1335},{"style":710},[1336],{"type":59,"value":803},{"type":53,"tag":691,"props":1338,"children":1339},{"style":704},[1340],{"type":59,"value":718},{"type":53,"tag":691,"props":1342,"children":1343},{"style":698},[1344],{"type":59,"value":723},{"type":53,"tag":691,"props":1346,"children":1347},{"style":704},[1348],{"type":59,"value":728},{"type":53,"tag":691,"props":1350,"children":1351},{"style":731},[1352],{"type":59,"value":820},{"type":53,"tag":691,"props":1354,"children":1355},{"style":704},[1356],{"type":59,"value":739},{"type":53,"tag":691,"props":1358,"children":1359},{"style":704},[1360],{"type":59,"value":744},{"type":53,"tag":691,"props":1362,"children":1363},{"class":693,"line":840},[1364],{"type":53,"tag":691,"props":1365,"children":1366},{"emptyLinePlaceholder":48},[1367],{"type":59,"value":837},{"type":53,"tag":691,"props":1369,"children":1370},{"class":693,"line":876},[1371,1375,1379,1383,1387,1391],{"type":53,"tag":691,"props":1372,"children":1373},{"style":844},[1374],{"type":59,"value":847},{"type":53,"tag":691,"props":1376,"children":1377},{"style":710},[1378],{"type":59,"value":852},{"type":53,"tag":691,"props":1380,"children":1381},{"style":855},[1382],{"type":59,"value":858},{"type":53,"tag":691,"props":1384,"children":1385},{"style":704},[1386],{"type":59,"value":863},{"type":53,"tag":691,"props":1388,"children":1389},{"style":855},[1390],{"type":59,"value":868},{"type":53,"tag":691,"props":1392,"children":1393},{"style":704},[1394],{"type":59,"value":873},{"type":53,"tag":691,"props":1396,"children":1397},{"class":693,"line":914},[1398,1402,1406,1410,1414,1418],{"type":53,"tag":691,"props":1399,"children":1400},{"style":855},[1401],{"type":59,"value":882},{"type":53,"tag":691,"props":1403,"children":1404},{"style":710},[1405],{"type":59,"value":887},{"type":53,"tag":691,"props":1407,"children":1408},{"style":704},[1409],{"type":59,"value":892},{"type":53,"tag":691,"props":1411,"children":1412},{"style":844},[1413],{"type":59,"value":1256},{"type":53,"tag":691,"props":1415,"children":1416},{"style":904},[1417],{"type":59,"value":852},{"type":53,"tag":691,"props":1419,"children":1420},{"style":704},[1421],{"type":59,"value":911},{"type":53,"tag":691,"props":1423,"children":1424},{"class":693,"line":958},[1425,1429,1433,1437,1441,1445,1449,1453,1457],{"type":53,"tag":691,"props":1426,"children":1427},{"style":904},[1428],{"type":59,"value":920},{"type":53,"tag":691,"props":1430,"children":1431},{"style":704},[1432],{"type":59,"value":94},{"type":53,"tag":691,"props":1434,"children":1435},{"style":844},[1436],{"type":59,"value":713},{"type":53,"tag":691,"props":1438,"children":1439},{"style":904},[1440],{"type":59,"value":852},{"type":53,"tag":691,"props":1442,"children":1443},{"style":704},[1444],{"type":59,"value":739},{"type":53,"tag":691,"props":1446,"children":1447},{"style":731},[1448],{"type":59,"value":941},{"type":53,"tag":691,"props":1450,"children":1451},{"style":704},[1452],{"type":59,"value":739},{"type":53,"tag":691,"props":1454,"children":1455},{"style":904},[1456],{"type":59,"value":950},{"type":53,"tag":691,"props":1458,"children":1459},{"style":704},[1460],{"type":59,"value":955},{"type":53,"tag":691,"props":1462,"children":1463},{"class":693,"line":988},[1464,1468,1472,1476,1480,1484],{"type":53,"tag":691,"props":1465,"children":1466},{"style":904},[1467],{"type":59,"value":964},{"type":53,"tag":691,"props":1469,"children":1470},{"style":704},[1471],{"type":59,"value":94},{"type":53,"tag":691,"props":1473,"children":1474},{"style":704},[1475],{"type":59,"value":728},{"type":53,"tag":691,"props":1477,"children":1478},{"style":731},[1479],{"type":59,"value":977},{"type":53,"tag":691,"props":1481,"children":1482},{"style":704},[1483],{"type":59,"value":739},{"type":53,"tag":691,"props":1485,"children":1486},{"style":704},[1487],{"type":59,"value":955},{"type":53,"tag":691,"props":1489,"children":1490},{"class":693,"line":1005},[1491,1495,1499],{"type":53,"tag":691,"props":1492,"children":1493},{"style":704},[1494],{"type":59,"value":994},{"type":53,"tag":691,"props":1496,"children":1497},{"style":904},[1498],{"type":59,"value":950},{"type":53,"tag":691,"props":1500,"children":1501},{"style":704},[1502],{"type":59,"value":744},{"type":53,"tag":691,"props":1504,"children":1505},{"class":693,"line":1013},[1506],{"type":53,"tag":691,"props":1507,"children":1508},{"emptyLinePlaceholder":48},[1509],{"type":59,"value":837},{"type":53,"tag":691,"props":1511,"children":1512},{"class":693,"line":1057},[1513,1518,1522,1526,1531,1535,1539,1543],{"type":53,"tag":691,"props":1514,"children":1515},{"style":698},[1516],{"type":59,"value":1517},"  await",{"type":53,"tag":691,"props":1519,"children":1520},{"style":844},[1521],{"type":59,"value":1296},{"type":53,"tag":691,"props":1523,"children":1524},{"style":904},[1525],{"type":59,"value":852},{"type":53,"tag":691,"props":1527,"children":1528},{"style":704},[1529],{"type":59,"value":1530},"{",{"type":53,"tag":691,"props":1532,"children":1533},{"style":710},[1534],{"type":59,"value":887},{"type":53,"tag":691,"props":1536,"children":1537},{"style":704},[1538],{"type":59,"value":718},{"type":53,"tag":691,"props":1540,"children":1541},{"style":904},[1542],{"type":59,"value":950},{"type":53,"tag":691,"props":1544,"children":1545},{"style":704},[1546],{"type":59,"value":744},{"type":53,"tag":691,"props":1548,"children":1549},{"class":693,"line":1116},[1550,1554,1558],{"type":53,"tag":691,"props":1551,"children":1552},{"style":704},[1553],{"type":59,"value":1180},{"type":53,"tag":691,"props":1555,"children":1556},{"style":710},[1557],{"type":59,"value":950},{"type":53,"tag":691,"props":1559,"children":1560},{"style":704},[1561],{"type":59,"value":744},{"type":53,"tag":674,"props":1563,"children":1565},{"id":1564},"tool-calling-template",[1566],{"type":59,"value":1567},"Tool Calling Template",{"type":53,"tag":681,"props":1569,"children":1571},{"className":683,"code":1570,"language":38,"meta":685,"style":685},"import { providerName } from '@ai-sdk\u002Fprovider-name';\nimport { generateText, tool } from 'ai';\nimport { z } from 'zod';\nimport { run } from '..\u002Flib\u002Frun';\n\nrun(async () => {\n  const result = await generateText({\n    model: providerName('model-id'),\n    tools: {\n      myTool: tool({\n        description: 'Tool description',\n        inputSchema: z.object({\n          param: z.string().describe('Parameter description'),\n        }),\n        execute: async ({ param }) => {\n          return { result: `Processed: ${param}` };\n        },\n      }),\n    },\n    prompt: 'Use the tool to...',\n  });\n\n  console.log(JSON.stringify(result, null, 2));\n});\n",[1572],{"type":53,"tag":68,"props":1573,"children":1574},{"__ignoreMap":685},[1575,1614,1662,1703,1742,1749,1776,1807,1846,1862,1886,1915,1948,2012,2028,2070,2121,2130,2147,2156,2185,2201,2209,2275],{"type":53,"tag":691,"props":1576,"children":1577},{"class":693,"line":694},[1578,1582,1586,1590,1594,1598,1602,1606,1610],{"type":53,"tag":691,"props":1579,"children":1580},{"style":698},[1581],{"type":59,"value":701},{"type":53,"tag":691,"props":1583,"children":1584},{"style":704},[1585],{"type":59,"value":707},{"type":53,"tag":691,"props":1587,"children":1588},{"style":710},[1589],{"type":59,"value":713},{"type":53,"tag":691,"props":1591,"children":1592},{"style":704},[1593],{"type":59,"value":718},{"type":53,"tag":691,"props":1595,"children":1596},{"style":698},[1597],{"type":59,"value":723},{"type":53,"tag":691,"props":1599,"children":1600},{"style":704},[1601],{"type":59,"value":728},{"type":53,"tag":691,"props":1603,"children":1604},{"style":731},[1605],{"type":59,"value":734},{"type":53,"tag":691,"props":1607,"children":1608},{"style":704},[1609],{"type":59,"value":739},{"type":53,"tag":691,"props":1611,"children":1612},{"style":704},[1613],{"type":59,"value":744},{"type":53,"tag":691,"props":1615,"children":1616},{"class":693,"line":747},[1617,1621,1625,1629,1633,1638,1642,1646,1650,1654,1658],{"type":53,"tag":691,"props":1618,"children":1619},{"style":698},[1620],{"type":59,"value":701},{"type":53,"tag":691,"props":1622,"children":1623},{"style":704},[1624],{"type":59,"value":707},{"type":53,"tag":691,"props":1626,"children":1627},{"style":710},[1628],{"type":59,"value":761},{"type":53,"tag":691,"props":1630,"children":1631},{"style":704},[1632],{"type":59,"value":1092},{"type":53,"tag":691,"props":1634,"children":1635},{"style":710},[1636],{"type":59,"value":1637}," tool",{"type":53,"tag":691,"props":1639,"children":1640},{"style":704},[1641],{"type":59,"value":718},{"type":53,"tag":691,"props":1643,"children":1644},{"style":698},[1645],{"type":59,"value":723},{"type":53,"tag":691,"props":1647,"children":1648},{"style":704},[1649],{"type":59,"value":728},{"type":53,"tag":691,"props":1651,"children":1652},{"style":731},[1653],{"type":59,"value":778},{"type":53,"tag":691,"props":1655,"children":1656},{"style":704},[1657],{"type":59,"value":739},{"type":53,"tag":691,"props":1659,"children":1660},{"style":704},[1661],{"type":59,"value":744},{"type":53,"tag":691,"props":1663,"children":1664},{"class":693,"line":789},[1665,1669,1673,1678,1682,1686,1690,1695,1699],{"type":53,"tag":691,"props":1666,"children":1667},{"style":698},[1668],{"type":59,"value":701},{"type":53,"tag":691,"props":1670,"children":1671},{"style":704},[1672],{"type":59,"value":707},{"type":53,"tag":691,"props":1674,"children":1675},{"style":710},[1676],{"type":59,"value":1677}," z",{"type":53,"tag":691,"props":1679,"children":1680},{"style":704},[1681],{"type":59,"value":718},{"type":53,"tag":691,"props":1683,"children":1684},{"style":698},[1685],{"type":59,"value":723},{"type":53,"tag":691,"props":1687,"children":1688},{"style":704},[1689],{"type":59,"value":728},{"type":53,"tag":691,"props":1691,"children":1692},{"style":731},[1693],{"type":59,"value":1694},"zod",{"type":53,"tag":691,"props":1696,"children":1697},{"style":704},[1698],{"type":59,"value":739},{"type":53,"tag":691,"props":1700,"children":1701},{"style":704},[1702],{"type":59,"value":744},{"type":53,"tag":691,"props":1704,"children":1705},{"class":693,"line":831},[1706,1710,1714,1718,1722,1726,1730,1734,1738],{"type":53,"tag":691,"props":1707,"children":1708},{"style":698},[1709],{"type":59,"value":701},{"type":53,"tag":691,"props":1711,"children":1712},{"style":704},[1713],{"type":59,"value":707},{"type":53,"tag":691,"props":1715,"children":1716},{"style":710},[1717],{"type":59,"value":803},{"type":53,"tag":691,"props":1719,"children":1720},{"style":704},[1721],{"type":59,"value":718},{"type":53,"tag":691,"props":1723,"children":1724},{"style":698},[1725],{"type":59,"value":723},{"type":53,"tag":691,"props":1727,"children":1728},{"style":704},[1729],{"type":59,"value":728},{"type":53,"tag":691,"props":1731,"children":1732},{"style":731},[1733],{"type":59,"value":820},{"type":53,"tag":691,"props":1735,"children":1736},{"style":704},[1737],{"type":59,"value":739},{"type":53,"tag":691,"props":1739,"children":1740},{"style":704},[1741],{"type":59,"value":744},{"type":53,"tag":691,"props":1743,"children":1744},{"class":693,"line":840},[1745],{"type":53,"tag":691,"props":1746,"children":1747},{"emptyLinePlaceholder":48},[1748],{"type":59,"value":837},{"type":53,"tag":691,"props":1750,"children":1751},{"class":693,"line":876},[1752,1756,1760,1764,1768,1772],{"type":53,"tag":691,"props":1753,"children":1754},{"style":844},[1755],{"type":59,"value":847},{"type":53,"tag":691,"props":1757,"children":1758},{"style":710},[1759],{"type":59,"value":852},{"type":53,"tag":691,"props":1761,"children":1762},{"style":855},[1763],{"type":59,"value":858},{"type":53,"tag":691,"props":1765,"children":1766},{"style":704},[1767],{"type":59,"value":863},{"type":53,"tag":691,"props":1769,"children":1770},{"style":855},[1771],{"type":59,"value":868},{"type":53,"tag":691,"props":1773,"children":1774},{"style":704},[1775],{"type":59,"value":873},{"type":53,"tag":691,"props":1777,"children":1778},{"class":693,"line":914},[1779,1783,1787,1791,1795,1799,1803],{"type":53,"tag":691,"props":1780,"children":1781},{"style":855},[1782],{"type":59,"value":882},{"type":53,"tag":691,"props":1784,"children":1785},{"style":710},[1786],{"type":59,"value":887},{"type":53,"tag":691,"props":1788,"children":1789},{"style":704},[1790],{"type":59,"value":892},{"type":53,"tag":691,"props":1792,"children":1793},{"style":698},[1794],{"type":59,"value":897},{"type":53,"tag":691,"props":1796,"children":1797},{"style":844},[1798],{"type":59,"value":761},{"type":53,"tag":691,"props":1800,"children":1801},{"style":904},[1802],{"type":59,"value":852},{"type":53,"tag":691,"props":1804,"children":1805},{"style":704},[1806],{"type":59,"value":911},{"type":53,"tag":691,"props":1808,"children":1809},{"class":693,"line":958},[1810,1814,1818,1822,1826,1830,1834,1838,1842],{"type":53,"tag":691,"props":1811,"children":1812},{"style":904},[1813],{"type":59,"value":920},{"type":53,"tag":691,"props":1815,"children":1816},{"style":704},[1817],{"type":59,"value":94},{"type":53,"tag":691,"props":1819,"children":1820},{"style":844},[1821],{"type":59,"value":713},{"type":53,"tag":691,"props":1823,"children":1824},{"style":904},[1825],{"type":59,"value":852},{"type":53,"tag":691,"props":1827,"children":1828},{"style":704},[1829],{"type":59,"value":739},{"type":53,"tag":691,"props":1831,"children":1832},{"style":731},[1833],{"type":59,"value":941},{"type":53,"tag":691,"props":1835,"children":1836},{"style":704},[1837],{"type":59,"value":739},{"type":53,"tag":691,"props":1839,"children":1840},{"style":904},[1841],{"type":59,"value":950},{"type":53,"tag":691,"props":1843,"children":1844},{"style":704},[1845],{"type":59,"value":955},{"type":53,"tag":691,"props":1847,"children":1848},{"class":693,"line":988},[1849,1854,1858],{"type":53,"tag":691,"props":1850,"children":1851},{"style":904},[1852],{"type":59,"value":1853},"    tools",{"type":53,"tag":691,"props":1855,"children":1856},{"style":704},[1857],{"type":59,"value":94},{"type":53,"tag":691,"props":1859,"children":1860},{"style":704},[1861],{"type":59,"value":873},{"type":53,"tag":691,"props":1863,"children":1864},{"class":693,"line":1005},[1865,1870,1874,1878,1882],{"type":53,"tag":691,"props":1866,"children":1867},{"style":904},[1868],{"type":59,"value":1869},"      myTool",{"type":53,"tag":691,"props":1871,"children":1872},{"style":704},[1873],{"type":59,"value":94},{"type":53,"tag":691,"props":1875,"children":1876},{"style":844},[1877],{"type":59,"value":1637},{"type":53,"tag":691,"props":1879,"children":1880},{"style":904},[1881],{"type":59,"value":852},{"type":53,"tag":691,"props":1883,"children":1884},{"style":704},[1885],{"type":59,"value":911},{"type":53,"tag":691,"props":1887,"children":1888},{"class":693,"line":1013},[1889,1894,1898,1902,1907,1911],{"type":53,"tag":691,"props":1890,"children":1891},{"style":904},[1892],{"type":59,"value":1893},"        description",{"type":53,"tag":691,"props":1895,"children":1896},{"style":704},[1897],{"type":59,"value":94},{"type":53,"tag":691,"props":1899,"children":1900},{"style":704},[1901],{"type":59,"value":728},{"type":53,"tag":691,"props":1903,"children":1904},{"style":731},[1905],{"type":59,"value":1906},"Tool description",{"type":53,"tag":691,"props":1908,"children":1909},{"style":704},[1910],{"type":59,"value":739},{"type":53,"tag":691,"props":1912,"children":1913},{"style":704},[1914],{"type":59,"value":955},{"type":53,"tag":691,"props":1916,"children":1917},{"class":693,"line":1057},[1918,1923,1927,1931,1935,1940,1944],{"type":53,"tag":691,"props":1919,"children":1920},{"style":904},[1921],{"type":59,"value":1922},"        inputSchema",{"type":53,"tag":691,"props":1924,"children":1925},{"style":704},[1926],{"type":59,"value":94},{"type":53,"tag":691,"props":1928,"children":1929},{"style":710},[1930],{"type":59,"value":1677},{"type":53,"tag":691,"props":1932,"children":1933},{"style":704},[1934],{"type":59,"value":1024},{"type":53,"tag":691,"props":1936,"children":1937},{"style":844},[1938],{"type":59,"value":1939},"object",{"type":53,"tag":691,"props":1941,"children":1942},{"style":904},[1943],{"type":59,"value":852},{"type":53,"tag":691,"props":1945,"children":1946},{"style":704},[1947],{"type":59,"value":911},{"type":53,"tag":691,"props":1949,"children":1950},{"class":693,"line":1116},[1951,1956,1960,1964,1968,1973,1978,1982,1987,1991,1995,2000,2004,2008],{"type":53,"tag":691,"props":1952,"children":1953},{"style":904},[1954],{"type":59,"value":1955},"          param",{"type":53,"tag":691,"props":1957,"children":1958},{"style":704},[1959],{"type":59,"value":94},{"type":53,"tag":691,"props":1961,"children":1962},{"style":710},[1963],{"type":59,"value":1677},{"type":53,"tag":691,"props":1965,"children":1966},{"style":704},[1967],{"type":59,"value":1024},{"type":53,"tag":691,"props":1969,"children":1970},{"style":844},[1971],{"type":59,"value":1972},"string",{"type":53,"tag":691,"props":1974,"children":1975},{"style":904},[1976],{"type":59,"value":1977},"()",{"type":53,"tag":691,"props":1979,"children":1980},{"style":704},[1981],{"type":59,"value":1024},{"type":53,"tag":691,"props":1983,"children":1984},{"style":844},[1985],{"type":59,"value":1986},"describe",{"type":53,"tag":691,"props":1988,"children":1989},{"style":904},[1990],{"type":59,"value":852},{"type":53,"tag":691,"props":1992,"children":1993},{"style":704},[1994],{"type":59,"value":739},{"type":53,"tag":691,"props":1996,"children":1997},{"style":731},[1998],{"type":59,"value":1999},"Parameter description",{"type":53,"tag":691,"props":2001,"children":2002},{"style":704},[2003],{"type":59,"value":739},{"type":53,"tag":691,"props":2005,"children":2006},{"style":904},[2007],{"type":59,"value":950},{"type":53,"tag":691,"props":2009,"children":2010},{"style":704},[2011],{"type":59,"value":955},{"type":53,"tag":691,"props":2013,"children":2014},{"class":693,"line":1174},[2015,2020,2024],{"type":53,"tag":691,"props":2016,"children":2017},{"style":704},[2018],{"type":59,"value":2019},"        }",{"type":53,"tag":691,"props":2021,"children":2022},{"style":904},[2023],{"type":59,"value":950},{"type":53,"tag":691,"props":2025,"children":2026},{"style":704},[2027],{"type":59,"value":955},{"type":53,"tag":691,"props":2029,"children":2031},{"class":693,"line":2030},15,[2032,2037,2041,2046,2051,2057,2062,2066],{"type":53,"tag":691,"props":2033,"children":2034},{"style":844},[2035],{"type":59,"value":2036},"        execute",{"type":53,"tag":691,"props":2038,"children":2039},{"style":704},[2040],{"type":59,"value":94},{"type":53,"tag":691,"props":2042,"children":2043},{"style":855},[2044],{"type":59,"value":2045}," async",{"type":53,"tag":691,"props":2047,"children":2048},{"style":704},[2049],{"type":59,"value":2050}," ({",{"type":53,"tag":691,"props":2052,"children":2054},{"style":2053},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[2055],{"type":59,"value":2056}," param",{"type":53,"tag":691,"props":2058,"children":2059},{"style":704},[2060],{"type":59,"value":2061}," })",{"type":53,"tag":691,"props":2063,"children":2064},{"style":855},[2065],{"type":59,"value":868},{"type":53,"tag":691,"props":2067,"children":2068},{"style":704},[2069],{"type":59,"value":873},{"type":53,"tag":691,"props":2071,"children":2073},{"class":693,"line":2072},16,[2074,2079,2083,2087,2091,2096,2101,2106,2111,2116],{"type":53,"tag":691,"props":2075,"children":2076},{"style":698},[2077],{"type":59,"value":2078},"          return",{"type":53,"tag":691,"props":2080,"children":2081},{"style":704},[2082],{"type":59,"value":707},{"type":53,"tag":691,"props":2084,"children":2085},{"style":904},[2086],{"type":59,"value":887},{"type":53,"tag":691,"props":2088,"children":2089},{"style":704},[2090],{"type":59,"value":94},{"type":53,"tag":691,"props":2092,"children":2093},{"style":704},[2094],{"type":59,"value":2095}," `",{"type":53,"tag":691,"props":2097,"children":2098},{"style":731},[2099],{"type":59,"value":2100},"Processed: ",{"type":53,"tag":691,"props":2102,"children":2103},{"style":704},[2104],{"type":59,"value":2105},"${",{"type":53,"tag":691,"props":2107,"children":2108},{"style":710},[2109],{"type":59,"value":2110},"param",{"type":53,"tag":691,"props":2112,"children":2113},{"style":704},[2114],{"type":59,"value":2115},"}`",{"type":53,"tag":691,"props":2117,"children":2118},{"style":704},[2119],{"type":59,"value":2120}," };\n",{"type":53,"tag":691,"props":2122,"children":2124},{"class":693,"line":2123},17,[2125],{"type":53,"tag":691,"props":2126,"children":2127},{"style":704},[2128],{"type":59,"value":2129},"        },\n",{"type":53,"tag":691,"props":2131,"children":2133},{"class":693,"line":2132},18,[2134,2139,2143],{"type":53,"tag":691,"props":2135,"children":2136},{"style":704},[2137],{"type":59,"value":2138},"      }",{"type":53,"tag":691,"props":2140,"children":2141},{"style":904},[2142],{"type":59,"value":950},{"type":53,"tag":691,"props":2144,"children":2145},{"style":704},[2146],{"type":59,"value":955},{"type":53,"tag":691,"props":2148,"children":2150},{"class":693,"line":2149},19,[2151],{"type":53,"tag":691,"props":2152,"children":2153},{"style":704},[2154],{"type":59,"value":2155},"    },\n",{"type":53,"tag":691,"props":2157,"children":2159},{"class":693,"line":2158},20,[2160,2164,2168,2172,2177,2181],{"type":53,"tag":691,"props":2161,"children":2162},{"style":904},[2163],{"type":59,"value":964},{"type":53,"tag":691,"props":2165,"children":2166},{"style":704},[2167],{"type":59,"value":94},{"type":53,"tag":691,"props":2169,"children":2170},{"style":704},[2171],{"type":59,"value":728},{"type":53,"tag":691,"props":2173,"children":2174},{"style":731},[2175],{"type":59,"value":2176},"Use the tool to...",{"type":53,"tag":691,"props":2178,"children":2179},{"style":704},[2180],{"type":59,"value":739},{"type":53,"tag":691,"props":2182,"children":2183},{"style":704},[2184],{"type":59,"value":955},{"type":53,"tag":691,"props":2186,"children":2188},{"class":693,"line":2187},21,[2189,2193,2197],{"type":53,"tag":691,"props":2190,"children":2191},{"style":704},[2192],{"type":59,"value":994},{"type":53,"tag":691,"props":2194,"children":2195},{"style":904},[2196],{"type":59,"value":950},{"type":53,"tag":691,"props":2198,"children":2199},{"style":704},[2200],{"type":59,"value":744},{"type":53,"tag":691,"props":2202,"children":2204},{"class":693,"line":2203},22,[2205],{"type":53,"tag":691,"props":2206,"children":2207},{"emptyLinePlaceholder":48},[2208],{"type":59,"value":837},{"type":53,"tag":691,"props":2210,"children":2212},{"class":693,"line":2211},23,[2213,2217,2221,2225,2229,2234,2238,2243,2247,2251,2255,2260,2266,2271],{"type":53,"tag":691,"props":2214,"children":2215},{"style":710},[2216],{"type":59,"value":1019},{"type":53,"tag":691,"props":2218,"children":2219},{"style":704},[2220],{"type":59,"value":1024},{"type":53,"tag":691,"props":2222,"children":2223},{"style":844},[2224],{"type":59,"value":1029},{"type":53,"tag":691,"props":2226,"children":2227},{"style":904},[2228],{"type":59,"value":852},{"type":53,"tag":691,"props":2230,"children":2231},{"style":710},[2232],{"type":59,"value":2233},"JSON",{"type":53,"tag":691,"props":2235,"children":2236},{"style":704},[2237],{"type":59,"value":1024},{"type":53,"tag":691,"props":2239,"children":2240},{"style":844},[2241],{"type":59,"value":2242},"stringify",{"type":53,"tag":691,"props":2244,"children":2245},{"style":904},[2246],{"type":59,"value":852},{"type":53,"tag":691,"props":2248,"children":2249},{"style":710},[2250],{"type":59,"value":1038},{"type":53,"tag":691,"props":2252,"children":2253},{"style":704},[2254],{"type":59,"value":1092},{"type":53,"tag":691,"props":2256,"children":2257},{"style":704},[2258],{"type":59,"value":2259}," null,",{"type":53,"tag":691,"props":2261,"children":2263},{"style":2262},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[2264],{"type":59,"value":2265}," 2",{"type":53,"tag":691,"props":2267,"children":2268},{"style":904},[2269],{"type":59,"value":2270},"))",{"type":53,"tag":691,"props":2272,"children":2273},{"style":704},[2274],{"type":59,"value":744},{"type":53,"tag":691,"props":2276,"children":2278},{"class":693,"line":2277},24,[2279,2283,2287],{"type":53,"tag":691,"props":2280,"children":2281},{"style":704},[2282],{"type":59,"value":1180},{"type":53,"tag":691,"props":2284,"children":2285},{"style":710},[2286],{"type":59,"value":950},{"type":53,"tag":691,"props":2288,"children":2289},{"style":704},[2290],{"type":59,"value":744},{"type":53,"tag":674,"props":2292,"children":2294},{"id":2293},"structured-output-template",[2295],{"type":59,"value":2296},"Structured Output Template",{"type":53,"tag":681,"props":2298,"children":2300},{"className":683,"code":2299,"language":38,"meta":685,"style":685},"import { providerName } from '@ai-sdk\u002Fprovider-name';\nimport { generateObject } from 'ai';\nimport { z } from 'zod';\nimport { run } from '..\u002Flib\u002Frun';\n\nrun(async () => {\n  const result = await generateObject({\n    model: providerName('model-id'),\n    schema: z.object({\n      name: z.string(),\n      items: z.array(z.string()),\n    }),\n    prompt: 'Generate a...',\n  });\n\n  console.log(JSON.stringify(result.object, null, 2));\n  console.log('Token usage:', result.usage);\n});\n",[2301],{"type":53,"tag":68,"props":2302,"children":2303},{"__ignoreMap":685},[2304,2343,2383,2422,2461,2468,2495,2526,2565,2597,2629,2680,2696,2724,2739,2746,2813,2868],{"type":53,"tag":691,"props":2305,"children":2306},{"class":693,"line":694},[2307,2311,2315,2319,2323,2327,2331,2335,2339],{"type":53,"tag":691,"props":2308,"children":2309},{"style":698},[2310],{"type":59,"value":701},{"type":53,"tag":691,"props":2312,"children":2313},{"style":704},[2314],{"type":59,"value":707},{"type":53,"tag":691,"props":2316,"children":2317},{"style":710},[2318],{"type":59,"value":713},{"type":53,"tag":691,"props":2320,"children":2321},{"style":704},[2322],{"type":59,"value":718},{"type":53,"tag":691,"props":2324,"children":2325},{"style":698},[2326],{"type":59,"value":723},{"type":53,"tag":691,"props":2328,"children":2329},{"style":704},[2330],{"type":59,"value":728},{"type":53,"tag":691,"props":2332,"children":2333},{"style":731},[2334],{"type":59,"value":734},{"type":53,"tag":691,"props":2336,"children":2337},{"style":704},[2338],{"type":59,"value":739},{"type":53,"tag":691,"props":2340,"children":2341},{"style":704},[2342],{"type":59,"value":744},{"type":53,"tag":691,"props":2344,"children":2345},{"class":693,"line":747},[2346,2350,2354,2359,2363,2367,2371,2375,2379],{"type":53,"tag":691,"props":2347,"children":2348},{"style":698},[2349],{"type":59,"value":701},{"type":53,"tag":691,"props":2351,"children":2352},{"style":704},[2353],{"type":59,"value":707},{"type":53,"tag":691,"props":2355,"children":2356},{"style":710},[2357],{"type":59,"value":2358}," generateObject",{"type":53,"tag":691,"props":2360,"children":2361},{"style":704},[2362],{"type":59,"value":718},{"type":53,"tag":691,"props":2364,"children":2365},{"style":698},[2366],{"type":59,"value":723},{"type":53,"tag":691,"props":2368,"children":2369},{"style":704},[2370],{"type":59,"value":728},{"type":53,"tag":691,"props":2372,"children":2373},{"style":731},[2374],{"type":59,"value":778},{"type":53,"tag":691,"props":2376,"children":2377},{"style":704},[2378],{"type":59,"value":739},{"type":53,"tag":691,"props":2380,"children":2381},{"style":704},[2382],{"type":59,"value":744},{"type":53,"tag":691,"props":2384,"children":2385},{"class":693,"line":789},[2386,2390,2394,2398,2402,2406,2410,2414,2418],{"type":53,"tag":691,"props":2387,"children":2388},{"style":698},[2389],{"type":59,"value":701},{"type":53,"tag":691,"props":2391,"children":2392},{"style":704},[2393],{"type":59,"value":707},{"type":53,"tag":691,"props":2395,"children":2396},{"style":710},[2397],{"type":59,"value":1677},{"type":53,"tag":691,"props":2399,"children":2400},{"style":704},[2401],{"type":59,"value":718},{"type":53,"tag":691,"props":2403,"children":2404},{"style":698},[2405],{"type":59,"value":723},{"type":53,"tag":691,"props":2407,"children":2408},{"style":704},[2409],{"type":59,"value":728},{"type":53,"tag":691,"props":2411,"children":2412},{"style":731},[2413],{"type":59,"value":1694},{"type":53,"tag":691,"props":2415,"children":2416},{"style":704},[2417],{"type":59,"value":739},{"type":53,"tag":691,"props":2419,"children":2420},{"style":704},[2421],{"type":59,"value":744},{"type":53,"tag":691,"props":2423,"children":2424},{"class":693,"line":831},[2425,2429,2433,2437,2441,2445,2449,2453,2457],{"type":53,"tag":691,"props":2426,"children":2427},{"style":698},[2428],{"type":59,"value":701},{"type":53,"tag":691,"props":2430,"children":2431},{"style":704},[2432],{"type":59,"value":707},{"type":53,"tag":691,"props":2434,"children":2435},{"style":710},[2436],{"type":59,"value":803},{"type":53,"tag":691,"props":2438,"children":2439},{"style":704},[2440],{"type":59,"value":718},{"type":53,"tag":691,"props":2442,"children":2443},{"style":698},[2444],{"type":59,"value":723},{"type":53,"tag":691,"props":2446,"children":2447},{"style":704},[2448],{"type":59,"value":728},{"type":53,"tag":691,"props":2450,"children":2451},{"style":731},[2452],{"type":59,"value":820},{"type":53,"tag":691,"props":2454,"children":2455},{"style":704},[2456],{"type":59,"value":739},{"type":53,"tag":691,"props":2458,"children":2459},{"style":704},[2460],{"type":59,"value":744},{"type":53,"tag":691,"props":2462,"children":2463},{"class":693,"line":840},[2464],{"type":53,"tag":691,"props":2465,"children":2466},{"emptyLinePlaceholder":48},[2467],{"type":59,"value":837},{"type":53,"tag":691,"props":2469,"children":2470},{"class":693,"line":876},[2471,2475,2479,2483,2487,2491],{"type":53,"tag":691,"props":2472,"children":2473},{"style":844},[2474],{"type":59,"value":847},{"type":53,"tag":691,"props":2476,"children":2477},{"style":710},[2478],{"type":59,"value":852},{"type":53,"tag":691,"props":2480,"children":2481},{"style":855},[2482],{"type":59,"value":858},{"type":53,"tag":691,"props":2484,"children":2485},{"style":704},[2486],{"type":59,"value":863},{"type":53,"tag":691,"props":2488,"children":2489},{"style":855},[2490],{"type":59,"value":868},{"type":53,"tag":691,"props":2492,"children":2493},{"style":704},[2494],{"type":59,"value":873},{"type":53,"tag":691,"props":2496,"children":2497},{"class":693,"line":914},[2498,2502,2506,2510,2514,2518,2522],{"type":53,"tag":691,"props":2499,"children":2500},{"style":855},[2501],{"type":59,"value":882},{"type":53,"tag":691,"props":2503,"children":2504},{"style":710},[2505],{"type":59,"value":887},{"type":53,"tag":691,"props":2507,"children":2508},{"style":704},[2509],{"type":59,"value":892},{"type":53,"tag":691,"props":2511,"children":2512},{"style":698},[2513],{"type":59,"value":897},{"type":53,"tag":691,"props":2515,"children":2516},{"style":844},[2517],{"type":59,"value":2358},{"type":53,"tag":691,"props":2519,"children":2520},{"style":904},[2521],{"type":59,"value":852},{"type":53,"tag":691,"props":2523,"children":2524},{"style":704},[2525],{"type":59,"value":911},{"type":53,"tag":691,"props":2527,"children":2528},{"class":693,"line":958},[2529,2533,2537,2541,2545,2549,2553,2557,2561],{"type":53,"tag":691,"props":2530,"children":2531},{"style":904},[2532],{"type":59,"value":920},{"type":53,"tag":691,"props":2534,"children":2535},{"style":704},[2536],{"type":59,"value":94},{"type":53,"tag":691,"props":2538,"children":2539},{"style":844},[2540],{"type":59,"value":713},{"type":53,"tag":691,"props":2542,"children":2543},{"style":904},[2544],{"type":59,"value":852},{"type":53,"tag":691,"props":2546,"children":2547},{"style":704},[2548],{"type":59,"value":739},{"type":53,"tag":691,"props":2550,"children":2551},{"style":731},[2552],{"type":59,"value":941},{"type":53,"tag":691,"props":2554,"children":2555},{"style":704},[2556],{"type":59,"value":739},{"type":53,"tag":691,"props":2558,"children":2559},{"style":904},[2560],{"type":59,"value":950},{"type":53,"tag":691,"props":2562,"children":2563},{"style":704},[2564],{"type":59,"value":955},{"type":53,"tag":691,"props":2566,"children":2567},{"class":693,"line":988},[2568,2573,2577,2581,2585,2589,2593],{"type":53,"tag":691,"props":2569,"children":2570},{"style":904},[2571],{"type":59,"value":2572},"    schema",{"type":53,"tag":691,"props":2574,"children":2575},{"style":704},[2576],{"type":59,"value":94},{"type":53,"tag":691,"props":2578,"children":2579},{"style":710},[2580],{"type":59,"value":1677},{"type":53,"tag":691,"props":2582,"children":2583},{"style":704},[2584],{"type":59,"value":1024},{"type":53,"tag":691,"props":2586,"children":2587},{"style":844},[2588],{"type":59,"value":1939},{"type":53,"tag":691,"props":2590,"children":2591},{"style":904},[2592],{"type":59,"value":852},{"type":53,"tag":691,"props":2594,"children":2595},{"style":704},[2596],{"type":59,"value":911},{"type":53,"tag":691,"props":2598,"children":2599},{"class":693,"line":1005},[2600,2605,2609,2613,2617,2621,2625],{"type":53,"tag":691,"props":2601,"children":2602},{"style":904},[2603],{"type":59,"value":2604},"      name",{"type":53,"tag":691,"props":2606,"children":2607},{"style":704},[2608],{"type":59,"value":94},{"type":53,"tag":691,"props":2610,"children":2611},{"style":710},[2612],{"type":59,"value":1677},{"type":53,"tag":691,"props":2614,"children":2615},{"style":704},[2616],{"type":59,"value":1024},{"type":53,"tag":691,"props":2618,"children":2619},{"style":844},[2620],{"type":59,"value":1972},{"type":53,"tag":691,"props":2622,"children":2623},{"style":904},[2624],{"type":59,"value":1977},{"type":53,"tag":691,"props":2626,"children":2627},{"style":704},[2628],{"type":59,"value":955},{"type":53,"tag":691,"props":2630,"children":2631},{"class":693,"line":1013},[2632,2637,2641,2645,2649,2654,2658,2663,2667,2671,2676],{"type":53,"tag":691,"props":2633,"children":2634},{"style":904},[2635],{"type":59,"value":2636},"      items",{"type":53,"tag":691,"props":2638,"children":2639},{"style":704},[2640],{"type":59,"value":94},{"type":53,"tag":691,"props":2642,"children":2643},{"style":710},[2644],{"type":59,"value":1677},{"type":53,"tag":691,"props":2646,"children":2647},{"style":704},[2648],{"type":59,"value":1024},{"type":53,"tag":691,"props":2650,"children":2651},{"style":844},[2652],{"type":59,"value":2653},"array",{"type":53,"tag":691,"props":2655,"children":2656},{"style":904},[2657],{"type":59,"value":852},{"type":53,"tag":691,"props":2659,"children":2660},{"style":710},[2661],{"type":59,"value":2662},"z",{"type":53,"tag":691,"props":2664,"children":2665},{"style":704},[2666],{"type":59,"value":1024},{"type":53,"tag":691,"props":2668,"children":2669},{"style":844},[2670],{"type":59,"value":1972},{"type":53,"tag":691,"props":2672,"children":2673},{"style":904},[2674],{"type":59,"value":2675},"())",{"type":53,"tag":691,"props":2677,"children":2678},{"style":704},[2679],{"type":59,"value":955},{"type":53,"tag":691,"props":2681,"children":2682},{"class":693,"line":1057},[2683,2688,2692],{"type":53,"tag":691,"props":2684,"children":2685},{"style":704},[2686],{"type":59,"value":2687},"    }",{"type":53,"tag":691,"props":2689,"children":2690},{"style":904},[2691],{"type":59,"value":950},{"type":53,"tag":691,"props":2693,"children":2694},{"style":704},[2695],{"type":59,"value":955},{"type":53,"tag":691,"props":2697,"children":2698},{"class":693,"line":1116},[2699,2703,2707,2711,2716,2720],{"type":53,"tag":691,"props":2700,"children":2701},{"style":904},[2702],{"type":59,"value":964},{"type":53,"tag":691,"props":2704,"children":2705},{"style":704},[2706],{"type":59,"value":94},{"type":53,"tag":691,"props":2708,"children":2709},{"style":704},[2710],{"type":59,"value":728},{"type":53,"tag":691,"props":2712,"children":2713},{"style":731},[2714],{"type":59,"value":2715},"Generate a...",{"type":53,"tag":691,"props":2717,"children":2718},{"style":704},[2719],{"type":59,"value":739},{"type":53,"tag":691,"props":2721,"children":2722},{"style":704},[2723],{"type":59,"value":955},{"type":53,"tag":691,"props":2725,"children":2726},{"class":693,"line":1174},[2727,2731,2735],{"type":53,"tag":691,"props":2728,"children":2729},{"style":704},[2730],{"type":59,"value":994},{"type":53,"tag":691,"props":2732,"children":2733},{"style":904},[2734],{"type":59,"value":950},{"type":53,"tag":691,"props":2736,"children":2737},{"style":704},[2738],{"type":59,"value":744},{"type":53,"tag":691,"props":2740,"children":2741},{"class":693,"line":2030},[2742],{"type":53,"tag":691,"props":2743,"children":2744},{"emptyLinePlaceholder":48},[2745],{"type":59,"value":837},{"type":53,"tag":691,"props":2747,"children":2748},{"class":693,"line":2072},[2749,2753,2757,2761,2765,2769,2773,2777,2781,2785,2789,2793,2797,2801,2805,2809],{"type":53,"tag":691,"props":2750,"children":2751},{"style":710},[2752],{"type":59,"value":1019},{"type":53,"tag":691,"props":2754,"children":2755},{"style":704},[2756],{"type":59,"value":1024},{"type":53,"tag":691,"props":2758,"children":2759},{"style":844},[2760],{"type":59,"value":1029},{"type":53,"tag":691,"props":2762,"children":2763},{"style":904},[2764],{"type":59,"value":852},{"type":53,"tag":691,"props":2766,"children":2767},{"style":710},[2768],{"type":59,"value":2233},{"type":53,"tag":691,"props":2770,"children":2771},{"style":704},[2772],{"type":59,"value":1024},{"type":53,"tag":691,"props":2774,"children":2775},{"style":844},[2776],{"type":59,"value":2242},{"type":53,"tag":691,"props":2778,"children":2779},{"style":904},[2780],{"type":59,"value":852},{"type":53,"tag":691,"props":2782,"children":2783},{"style":710},[2784],{"type":59,"value":1038},{"type":53,"tag":691,"props":2786,"children":2787},{"style":704},[2788],{"type":59,"value":1024},{"type":53,"tag":691,"props":2790,"children":2791},{"style":710},[2792],{"type":59,"value":1939},{"type":53,"tag":691,"props":2794,"children":2795},{"style":704},[2796],{"type":59,"value":1092},{"type":53,"tag":691,"props":2798,"children":2799},{"style":704},[2800],{"type":59,"value":2259},{"type":53,"tag":691,"props":2802,"children":2803},{"style":2262},[2804],{"type":59,"value":2265},{"type":53,"tag":691,"props":2806,"children":2807},{"style":904},[2808],{"type":59,"value":2270},{"type":53,"tag":691,"props":2810,"children":2811},{"style":704},[2812],{"type":59,"value":744},{"type":53,"tag":691,"props":2814,"children":2815},{"class":693,"line":2123},[2816,2820,2824,2828,2832,2836,2840,2844,2848,2852,2856,2860,2864],{"type":53,"tag":691,"props":2817,"children":2818},{"style":710},[2819],{"type":59,"value":1019},{"type":53,"tag":691,"props":2821,"children":2822},{"style":704},[2823],{"type":59,"value":1024},{"type":53,"tag":691,"props":2825,"children":2826},{"style":844},[2827],{"type":59,"value":1029},{"type":53,"tag":691,"props":2829,"children":2830},{"style":904},[2831],{"type":59,"value":852},{"type":53,"tag":691,"props":2833,"children":2834},{"style":704},[2835],{"type":59,"value":739},{"type":53,"tag":691,"props":2837,"children":2838},{"style":731},[2839],{"type":59,"value":1083},{"type":53,"tag":691,"props":2841,"children":2842},{"style":704},[2843],{"type":59,"value":739},{"type":53,"tag":691,"props":2845,"children":2846},{"style":704},[2847],{"type":59,"value":1092},{"type":53,"tag":691,"props":2849,"children":2850},{"style":710},[2851],{"type":59,"value":887},{"type":53,"tag":691,"props":2853,"children":2854},{"style":704},[2855],{"type":59,"value":1024},{"type":53,"tag":691,"props":2857,"children":2858},{"style":710},[2859],{"type":59,"value":1105},{"type":53,"tag":691,"props":2861,"children":2862},{"style":904},[2863],{"type":59,"value":950},{"type":53,"tag":691,"props":2865,"children":2866},{"style":704},[2867],{"type":59,"value":744},{"type":53,"tag":691,"props":2869,"children":2870},{"class":693,"line":2132},[2871,2875,2879],{"type":53,"tag":691,"props":2872,"children":2873},{"style":704},[2874],{"type":59,"value":1180},{"type":53,"tag":691,"props":2876,"children":2877},{"style":710},[2878],{"type":59,"value":950},{"type":53,"tag":691,"props":2880,"children":2881},{"style":704},[2882],{"type":59,"value":744},{"type":53,"tag":54,"props":2884,"children":2886},{"id":2885},"running-examples",[2887],{"type":59,"value":2888},"Running Examples",{"type":53,"tag":62,"props":2890,"children":2891},{},[2892,2894,2900],{"type":59,"value":2893},"From the ",{"type":53,"tag":68,"props":2895,"children":2897},{"className":2896},[],[2898],{"type":59,"value":2899},"examples\u002Fai-functions",{"type":59,"value":2901}," directory:",{"type":53,"tag":681,"props":2903,"children":2907},{"className":2904,"code":2905,"language":2906,"meta":685,"style":685},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm tsx src\u002Fgenerate-text\u002Fopenai.ts\npnpm tsx src\u002Fstream-text\u002Fopenai-tool-call.ts\npnpm tsx src\u002Fagent\u002Fopenai-generate.ts\n","bash",[2908],{"type":53,"tag":68,"props":2909,"children":2910},{"__ignoreMap":685},[2911,2930,2946],{"type":53,"tag":691,"props":2912,"children":2913},{"class":693,"line":694},[2914,2920,2925],{"type":53,"tag":691,"props":2915,"children":2917},{"style":2916},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[2918],{"type":59,"value":2919},"pnpm",{"type":53,"tag":691,"props":2921,"children":2922},{"style":731},[2923],{"type":59,"value":2924}," tsx",{"type":53,"tag":691,"props":2926,"children":2927},{"style":731},[2928],{"type":59,"value":2929}," src\u002Fgenerate-text\u002Fopenai.ts\n",{"type":53,"tag":691,"props":2931,"children":2932},{"class":693,"line":747},[2933,2937,2941],{"type":53,"tag":691,"props":2934,"children":2935},{"style":2916},[2936],{"type":59,"value":2919},{"type":53,"tag":691,"props":2938,"children":2939},{"style":731},[2940],{"type":59,"value":2924},{"type":53,"tag":691,"props":2942,"children":2943},{"style":731},[2944],{"type":59,"value":2945}," src\u002Fstream-text\u002Fopenai-tool-call.ts\n",{"type":53,"tag":691,"props":2947,"children":2948},{"class":693,"line":789},[2949,2953,2957],{"type":53,"tag":691,"props":2950,"children":2951},{"style":2916},[2952],{"type":59,"value":2919},{"type":53,"tag":691,"props":2954,"children":2955},{"style":731},[2956],{"type":59,"value":2924},{"type":53,"tag":691,"props":2958,"children":2959},{"style":731},[2960],{"type":59,"value":2961}," src\u002Fagent\u002Fopenai-generate.ts\n",{"type":53,"tag":54,"props":2963,"children":2965},{"id":2964},"when-to-write-examples",[2966],{"type":59,"value":2967},"When to Write Examples",{"type":53,"tag":62,"props":2969,"children":2970},{},[2971],{"type":59,"value":2972},"Write examples when:",{"type":53,"tag":2974,"props":2975,"children":2976},"ol",{},[2977,3011,3021,3031,3049],{"type":53,"tag":657,"props":2978,"children":2979},{},[2980,2986,2988,2994,2996,3002,3003,3009],{"type":53,"tag":2981,"props":2982,"children":2983},"strong",{},[2984],{"type":59,"value":2985},"Adding a new provider",{"type":59,"value":2987},": Create basic examples for each supported API (",{"type":53,"tag":68,"props":2989,"children":2991},{"className":2990},[],[2992],{"type":59,"value":2993},"generateText",{"type":59,"value":2995},", ",{"type":53,"tag":68,"props":2997,"children":2999},{"className":2998},[],[3000],{"type":59,"value":3001},"streamText",{"type":59,"value":2995},{"type":53,"tag":68,"props":3004,"children":3006},{"className":3005},[],[3007],{"type":59,"value":3008},"generateObject",{"type":59,"value":3010},", etc.)",{"type":53,"tag":657,"props":3012,"children":3013},{},[3014,3019],{"type":53,"tag":2981,"props":3015,"children":3016},{},[3017],{"type":59,"value":3018},"Implementing a new feature",{"type":59,"value":3020},": Demonstrate the feature with at least one provider example",{"type":53,"tag":657,"props":3022,"children":3023},{},[3024,3029],{"type":53,"tag":2981,"props":3025,"children":3026},{},[3027],{"type":59,"value":3028},"Reproducing a bug",{"type":59,"value":3030},": Create an example that shows the issue for debugging",{"type":53,"tag":657,"props":3032,"children":3033},{},[3034,3039,3041,3047],{"type":53,"tag":2981,"props":3035,"children":3036},{},[3037],{"type":59,"value":3038},"Adding provider-specific options",{"type":59,"value":3040},": Show how to use ",{"type":53,"tag":68,"props":3042,"children":3044},{"className":3043},[],[3045],{"type":59,"value":3046},"providerOptions",{"type":59,"value":3048}," for provider-specific settings",{"type":53,"tag":657,"props":3050,"children":3051},{},[3052,3057,3059,3065],{"type":53,"tag":2981,"props":3053,"children":3054},{},[3055],{"type":59,"value":3056},"Creating test fixtures",{"type":59,"value":3058},": Use examples to generate API response fixtures (see ",{"type":53,"tag":68,"props":3060,"children":3062},{"className":3061},[],[3063],{"type":59,"value":3064},"capture-api-response-test-fixture",{"type":59,"value":3066}," skill)",{"type":53,"tag":54,"props":3068,"children":3070},{"id":3069},"utility-helpers",[3071],{"type":59,"value":3072},"Utility Helpers",{"type":53,"tag":62,"props":3074,"children":3075},{},[3076,3077,3082],{"type":59,"value":66},{"type":53,"tag":68,"props":3078,"children":3080},{"className":3079},[],[3081],{"type":59,"value":455},{"type":59,"value":3083}," directory contains shared utilities:",{"type":53,"tag":96,"props":3085,"children":3086},{},[3087,3102],{"type":53,"tag":100,"props":3088,"children":3089},{},[3090],{"type":53,"tag":104,"props":3091,"children":3092},{},[3093,3098],{"type":53,"tag":108,"props":3094,"children":3095},{},[3096],{"type":59,"value":3097},"File",{"type":53,"tag":108,"props":3099,"children":3100},{},[3101],{"type":59,"value":117},{"type":53,"tag":119,"props":3103,"children":3104},{},[3105,3129,3146,3163,3180,3197],{"type":53,"tag":104,"props":3106,"children":3107},{},[3108,3117],{"type":53,"tag":126,"props":3109,"children":3110},{},[3111],{"type":53,"tag":68,"props":3112,"children":3114},{"className":3113},[],[3115],{"type":59,"value":3116},"run.ts",{"type":53,"tag":126,"props":3118,"children":3119},{},[3120,3122,3127],{"type":59,"value":3121},"Error-handling wrapper with ",{"type":53,"tag":68,"props":3123,"children":3125},{"className":3124},[],[3126],{"type":59,"value":667},{"type":59,"value":3128}," loading",{"type":53,"tag":104,"props":3130,"children":3131},{},[3132,3141],{"type":53,"tag":126,"props":3133,"children":3134},{},[3135],{"type":53,"tag":68,"props":3136,"children":3138},{"className":3137},[],[3139],{"type":59,"value":3140},"print.ts",{"type":53,"tag":126,"props":3142,"children":3143},{},[3144],{"type":59,"value":3145},"Clean object printing (removes undefined values)",{"type":53,"tag":104,"props":3147,"children":3148},{},[3149,3158],{"type":53,"tag":126,"props":3150,"children":3151},{},[3152],{"type":53,"tag":68,"props":3153,"children":3155},{"className":3154},[],[3156],{"type":59,"value":3157},"print-full-stream.ts",{"type":53,"tag":126,"props":3159,"children":3160},{},[3161],{"type":59,"value":3162},"Colored streaming output for tool calls, reasoning, text",{"type":53,"tag":104,"props":3164,"children":3165},{},[3166,3175],{"type":53,"tag":126,"props":3167,"children":3168},{},[3169],{"type":53,"tag":68,"props":3170,"children":3172},{"className":3171},[],[3173],{"type":59,"value":3174},"save-raw-chunks.ts",{"type":53,"tag":126,"props":3176,"children":3177},{},[3178],{"type":59,"value":3179},"Save streaming chunks for test fixtures",{"type":53,"tag":104,"props":3181,"children":3182},{},[3183,3192],{"type":53,"tag":126,"props":3184,"children":3185},{},[3186],{"type":53,"tag":68,"props":3187,"children":3189},{"className":3188},[],[3190],{"type":59,"value":3191},"present-image.ts",{"type":53,"tag":126,"props":3193,"children":3194},{},[3195],{"type":59,"value":3196},"Display images in terminal",{"type":53,"tag":104,"props":3198,"children":3199},{},[3200,3209],{"type":53,"tag":126,"props":3201,"children":3202},{},[3203],{"type":53,"tag":68,"props":3204,"children":3206},{"className":3205},[],[3207],{"type":59,"value":3208},"save-audio.ts",{"type":53,"tag":126,"props":3210,"children":3211},{},[3212],{"type":59,"value":3213},"Save audio files to disk",{"type":53,"tag":674,"props":3215,"children":3217},{"id":3216},"using-print-utilities",[3218],{"type":59,"value":3219},"Using print utilities",{"type":53,"tag":681,"props":3221,"children":3223},{"className":683,"code":3222,"language":38,"meta":685,"style":685},"import { print } from '..\u002Flib\u002Fprint';\n\n\u002F\u002F Pretty print objects without undefined values\nprint('Result:', result);\nprint('Usage:', result.usage, { depth: 2 });\n",[3224],{"type":53,"tag":68,"props":3225,"children":3226},{"__ignoreMap":685},[3227,3268,3275,3284,3322],{"type":53,"tag":691,"props":3228,"children":3229},{"class":693,"line":694},[3230,3234,3238,3243,3247,3251,3255,3260,3264],{"type":53,"tag":691,"props":3231,"children":3232},{"style":698},[3233],{"type":59,"value":701},{"type":53,"tag":691,"props":3235,"children":3236},{"style":704},[3237],{"type":59,"value":707},{"type":53,"tag":691,"props":3239,"children":3240},{"style":710},[3241],{"type":59,"value":3242}," print",{"type":53,"tag":691,"props":3244,"children":3245},{"style":704},[3246],{"type":59,"value":718},{"type":53,"tag":691,"props":3248,"children":3249},{"style":698},[3250],{"type":59,"value":723},{"type":53,"tag":691,"props":3252,"children":3253},{"style":704},[3254],{"type":59,"value":728},{"type":53,"tag":691,"props":3256,"children":3257},{"style":731},[3258],{"type":59,"value":3259},"..\u002Flib\u002Fprint",{"type":53,"tag":691,"props":3261,"children":3262},{"style":704},[3263],{"type":59,"value":739},{"type":53,"tag":691,"props":3265,"children":3266},{"style":704},[3267],{"type":59,"value":744},{"type":53,"tag":691,"props":3269,"children":3270},{"class":693,"line":747},[3271],{"type":53,"tag":691,"props":3272,"children":3273},{"emptyLinePlaceholder":48},[3274],{"type":59,"value":837},{"type":53,"tag":691,"props":3276,"children":3277},{"class":693,"line":789},[3278],{"type":53,"tag":691,"props":3279,"children":3281},{"style":3280},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[3282],{"type":59,"value":3283},"\u002F\u002F Pretty print objects without undefined values\n",{"type":53,"tag":691,"props":3285,"children":3286},{"class":693,"line":831},[3287,3292,3296,3300,3305,3309,3313,3318],{"type":53,"tag":691,"props":3288,"children":3289},{"style":844},[3290],{"type":59,"value":3291},"print",{"type":53,"tag":691,"props":3293,"children":3294},{"style":710},[3295],{"type":59,"value":852},{"type":53,"tag":691,"props":3297,"children":3298},{"style":704},[3299],{"type":59,"value":739},{"type":53,"tag":691,"props":3301,"children":3302},{"style":731},[3303],{"type":59,"value":3304},"Result:",{"type":53,"tag":691,"props":3306,"children":3307},{"style":704},[3308],{"type":59,"value":739},{"type":53,"tag":691,"props":3310,"children":3311},{"style":704},[3312],{"type":59,"value":1092},{"type":53,"tag":691,"props":3314,"children":3315},{"style":710},[3316],{"type":59,"value":3317}," result)",{"type":53,"tag":691,"props":3319,"children":3320},{"style":704},[3321],{"type":59,"value":744},{"type":53,"tag":691,"props":3323,"children":3324},{"class":693,"line":840},[3325,3329,3333,3337,3342,3346,3350,3354,3358,3362,3366,3370,3375,3379,3383,3387,3391],{"type":53,"tag":691,"props":3326,"children":3327},{"style":844},[3328],{"type":59,"value":3291},{"type":53,"tag":691,"props":3330,"children":3331},{"style":710},[3332],{"type":59,"value":852},{"type":53,"tag":691,"props":3334,"children":3335},{"style":704},[3336],{"type":59,"value":739},{"type":53,"tag":691,"props":3338,"children":3339},{"style":731},[3340],{"type":59,"value":3341},"Usage:",{"type":53,"tag":691,"props":3343,"children":3344},{"style":704},[3345],{"type":59,"value":739},{"type":53,"tag":691,"props":3347,"children":3348},{"style":704},[3349],{"type":59,"value":1092},{"type":53,"tag":691,"props":3351,"children":3352},{"style":710},[3353],{"type":59,"value":887},{"type":53,"tag":691,"props":3355,"children":3356},{"style":704},[3357],{"type":59,"value":1024},{"type":53,"tag":691,"props":3359,"children":3360},{"style":710},[3361],{"type":59,"value":1105},{"type":53,"tag":691,"props":3363,"children":3364},{"style":704},[3365],{"type":59,"value":1092},{"type":53,"tag":691,"props":3367,"children":3368},{"style":704},[3369],{"type":59,"value":707},{"type":53,"tag":691,"props":3371,"children":3372},{"style":904},[3373],{"type":59,"value":3374}," depth",{"type":53,"tag":691,"props":3376,"children":3377},{"style":704},[3378],{"type":59,"value":94},{"type":53,"tag":691,"props":3380,"children":3381},{"style":2262},[3382],{"type":59,"value":2265},{"type":53,"tag":691,"props":3384,"children":3385},{"style":704},[3386],{"type":59,"value":718},{"type":53,"tag":691,"props":3388,"children":3389},{"style":710},[3390],{"type":59,"value":950},{"type":53,"tag":691,"props":3392,"children":3393},{"style":704},[3394],{"type":59,"value":744},{"type":53,"tag":674,"props":3396,"children":3398},{"id":3397},"using-printfullstream",[3399],{"type":59,"value":3400},"Using printFullStream",{"type":53,"tag":681,"props":3402,"children":3404},{"className":683,"code":3403,"language":38,"meta":685,"style":685},"import { printFullStream } from '..\u002Flib\u002Fprint-full-stream';\n\nconst result = streamText({ ... });\nawait printFullStream({ result }); \u002F\u002F Colored output for text, tool calls, reasoning\n",[3405],{"type":53,"tag":68,"props":3406,"children":3407},{"__ignoreMap":685},[3408,3447,3454,3501],{"type":53,"tag":691,"props":3409,"children":3410},{"class":693,"line":694},[3411,3415,3419,3423,3427,3431,3435,3439,3443],{"type":53,"tag":691,"props":3412,"children":3413},{"style":698},[3414],{"type":59,"value":701},{"type":53,"tag":691,"props":3416,"children":3417},{"style":704},[3418],{"type":59,"value":707},{"type":53,"tag":691,"props":3420,"children":3421},{"style":710},[3422],{"type":59,"value":1296},{"type":53,"tag":691,"props":3424,"children":3425},{"style":704},[3426],{"type":59,"value":718},{"type":53,"tag":691,"props":3428,"children":3429},{"style":698},[3430],{"type":59,"value":723},{"type":53,"tag":691,"props":3432,"children":3433},{"style":704},[3434],{"type":59,"value":728},{"type":53,"tag":691,"props":3436,"children":3437},{"style":731},[3438],{"type":59,"value":1313},{"type":53,"tag":691,"props":3440,"children":3441},{"style":704},[3442],{"type":59,"value":739},{"type":53,"tag":691,"props":3444,"children":3445},{"style":704},[3446],{"type":59,"value":744},{"type":53,"tag":691,"props":3448,"children":3449},{"class":693,"line":747},[3450],{"type":53,"tag":691,"props":3451,"children":3452},{"emptyLinePlaceholder":48},[3453],{"type":59,"value":837},{"type":53,"tag":691,"props":3455,"children":3456},{"class":693,"line":789},[3457,3462,3467,3472,3476,3480,3484,3489,3493,3497],{"type":53,"tag":691,"props":3458,"children":3459},{"style":855},[3460],{"type":59,"value":3461},"const",{"type":53,"tag":691,"props":3463,"children":3464},{"style":710},[3465],{"type":59,"value":3466}," result ",{"type":53,"tag":691,"props":3468,"children":3469},{"style":704},[3470],{"type":59,"value":3471},"=",{"type":53,"tag":691,"props":3473,"children":3474},{"style":844},[3475],{"type":59,"value":1256},{"type":53,"tag":691,"props":3477,"children":3478},{"style":710},[3479],{"type":59,"value":852},{"type":53,"tag":691,"props":3481,"children":3482},{"style":704},[3483],{"type":59,"value":1530},{"type":53,"tag":691,"props":3485,"children":3486},{"style":704},[3487],{"type":59,"value":3488}," ...",{"type":53,"tag":691,"props":3490,"children":3491},{"style":704},[3492],{"type":59,"value":718},{"type":53,"tag":691,"props":3494,"children":3495},{"style":710},[3496],{"type":59,"value":950},{"type":53,"tag":691,"props":3498,"children":3499},{"style":704},[3500],{"type":59,"value":744},{"type":53,"tag":691,"props":3502,"children":3503},{"class":693,"line":831},[3504,3509,3513,3517,3521,3525,3529,3533,3538],{"type":53,"tag":691,"props":3505,"children":3506},{"style":698},[3507],{"type":59,"value":3508},"await",{"type":53,"tag":691,"props":3510,"children":3511},{"style":844},[3512],{"type":59,"value":1296},{"type":53,"tag":691,"props":3514,"children":3515},{"style":710},[3516],{"type":59,"value":852},{"type":53,"tag":691,"props":3518,"children":3519},{"style":704},[3520],{"type":59,"value":1530},{"type":53,"tag":691,"props":3522,"children":3523},{"style":710},[3524],{"type":59,"value":3466},{"type":53,"tag":691,"props":3526,"children":3527},{"style":704},[3528],{"type":59,"value":1180},{"type":53,"tag":691,"props":3530,"children":3531},{"style":710},[3532],{"type":59,"value":950},{"type":53,"tag":691,"props":3534,"children":3535},{"style":704},[3536],{"type":59,"value":3537},";",{"type":53,"tag":691,"props":3539,"children":3540},{"style":3280},[3541],{"type":59,"value":3542}," \u002F\u002F Colored output for text, tool calls, reasoning\n",{"type":53,"tag":54,"props":3544,"children":3546},{"id":3545},"reusable-tools",[3547],{"type":59,"value":3548},"Reusable Tools",{"type":53,"tag":62,"props":3550,"children":3551},{},[3552,3553,3558],{"type":59,"value":66},{"type":53,"tag":68,"props":3554,"children":3556},{"className":3555},[],[3557],{"type":59,"value":472},{"type":59,"value":3559}," directory contains reusable tool definitions:",{"type":53,"tag":681,"props":3561,"children":3563},{"className":683,"code":3562,"language":38,"meta":685,"style":685},"import { weatherTool } from '..\u002Ftools\u002Fweather-tool';\n\nconst result = await generateText({\n  model: openai('gpt-4o'),\n  tools: { weather: weatherTool },\n  prompt: 'What is the weather in San Francisco?',\n});\n",[3564],{"type":53,"tag":68,"props":3565,"children":3566},{"__ignoreMap":685},[3567,3608,3615,3646,3688,3723,3752],{"type":53,"tag":691,"props":3568,"children":3569},{"class":693,"line":694},[3570,3574,3578,3583,3587,3591,3595,3600,3604],{"type":53,"tag":691,"props":3571,"children":3572},{"style":698},[3573],{"type":59,"value":701},{"type":53,"tag":691,"props":3575,"children":3576},{"style":704},[3577],{"type":59,"value":707},{"type":53,"tag":691,"props":3579,"children":3580},{"style":710},[3581],{"type":59,"value":3582}," weatherTool",{"type":53,"tag":691,"props":3584,"children":3585},{"style":704},[3586],{"type":59,"value":718},{"type":53,"tag":691,"props":3588,"children":3589},{"style":698},[3590],{"type":59,"value":723},{"type":53,"tag":691,"props":3592,"children":3593},{"style":704},[3594],{"type":59,"value":728},{"type":53,"tag":691,"props":3596,"children":3597},{"style":731},[3598],{"type":59,"value":3599},"..\u002Ftools\u002Fweather-tool",{"type":53,"tag":691,"props":3601,"children":3602},{"style":704},[3603],{"type":59,"value":739},{"type":53,"tag":691,"props":3605,"children":3606},{"style":704},[3607],{"type":59,"value":744},{"type":53,"tag":691,"props":3609,"children":3610},{"class":693,"line":747},[3611],{"type":53,"tag":691,"props":3612,"children":3613},{"emptyLinePlaceholder":48},[3614],{"type":59,"value":837},{"type":53,"tag":691,"props":3616,"children":3617},{"class":693,"line":789},[3618,3622,3626,3630,3634,3638,3642],{"type":53,"tag":691,"props":3619,"children":3620},{"style":855},[3621],{"type":59,"value":3461},{"type":53,"tag":691,"props":3623,"children":3624},{"style":710},[3625],{"type":59,"value":3466},{"type":53,"tag":691,"props":3627,"children":3628},{"style":704},[3629],{"type":59,"value":3471},{"type":53,"tag":691,"props":3631,"children":3632},{"style":698},[3633],{"type":59,"value":897},{"type":53,"tag":691,"props":3635,"children":3636},{"style":844},[3637],{"type":59,"value":761},{"type":53,"tag":691,"props":3639,"children":3640},{"style":710},[3641],{"type":59,"value":852},{"type":53,"tag":691,"props":3643,"children":3644},{"style":704},[3645],{"type":59,"value":911},{"type":53,"tag":691,"props":3647,"children":3648},{"class":693,"line":831},[3649,3654,3658,3663,3667,3671,3676,3680,3684],{"type":53,"tag":691,"props":3650,"children":3651},{"style":904},[3652],{"type":59,"value":3653},"  model",{"type":53,"tag":691,"props":3655,"children":3656},{"style":704},[3657],{"type":59,"value":94},{"type":53,"tag":691,"props":3659,"children":3660},{"style":844},[3661],{"type":59,"value":3662}," openai",{"type":53,"tag":691,"props":3664,"children":3665},{"style":710},[3666],{"type":59,"value":852},{"type":53,"tag":691,"props":3668,"children":3669},{"style":704},[3670],{"type":59,"value":739},{"type":53,"tag":691,"props":3672,"children":3673},{"style":731},[3674],{"type":59,"value":3675},"gpt-4o",{"type":53,"tag":691,"props":3677,"children":3678},{"style":704},[3679],{"type":59,"value":739},{"type":53,"tag":691,"props":3681,"children":3682},{"style":710},[3683],{"type":59,"value":950},{"type":53,"tag":691,"props":3685,"children":3686},{"style":704},[3687],{"type":59,"value":955},{"type":53,"tag":691,"props":3689,"children":3690},{"class":693,"line":840},[3691,3696,3700,3704,3709,3713,3718],{"type":53,"tag":691,"props":3692,"children":3693},{"style":904},[3694],{"type":59,"value":3695},"  tools",{"type":53,"tag":691,"props":3697,"children":3698},{"style":704},[3699],{"type":59,"value":94},{"type":53,"tag":691,"props":3701,"children":3702},{"style":704},[3703],{"type":59,"value":707},{"type":53,"tag":691,"props":3705,"children":3706},{"style":904},[3707],{"type":59,"value":3708}," weather",{"type":53,"tag":691,"props":3710,"children":3711},{"style":704},[3712],{"type":59,"value":94},{"type":53,"tag":691,"props":3714,"children":3715},{"style":710},[3716],{"type":59,"value":3717}," weatherTool ",{"type":53,"tag":691,"props":3719,"children":3720},{"style":704},[3721],{"type":59,"value":3722},"},\n",{"type":53,"tag":691,"props":3724,"children":3725},{"class":693,"line":876},[3726,3731,3735,3739,3744,3748],{"type":53,"tag":691,"props":3727,"children":3728},{"style":904},[3729],{"type":59,"value":3730},"  prompt",{"type":53,"tag":691,"props":3732,"children":3733},{"style":704},[3734],{"type":59,"value":94},{"type":53,"tag":691,"props":3736,"children":3737},{"style":704},[3738],{"type":59,"value":728},{"type":53,"tag":691,"props":3740,"children":3741},{"style":731},[3742],{"type":59,"value":3743},"What is the weather in San Francisco?",{"type":53,"tag":691,"props":3745,"children":3746},{"style":704},[3747],{"type":59,"value":739},{"type":53,"tag":691,"props":3749,"children":3750},{"style":704},[3751],{"type":59,"value":955},{"type":53,"tag":691,"props":3753,"children":3754},{"class":693,"line":914},[3755,3759,3763],{"type":53,"tag":691,"props":3756,"children":3757},{"style":704},[3758],{"type":59,"value":1180},{"type":53,"tag":691,"props":3760,"children":3761},{"style":710},[3762],{"type":59,"value":950},{"type":53,"tag":691,"props":3764,"children":3765},{"style":704},[3766],{"type":59,"value":744},{"type":53,"tag":54,"props":3768,"children":3770},{"id":3769},"best-practices",[3771],{"type":59,"value":3772},"Best Practices",{"type":53,"tag":2974,"props":3774,"children":3775},{},[3776,3786,3796,3813,3823,3833],{"type":53,"tag":657,"props":3777,"children":3778},{},[3779,3784],{"type":53,"tag":2981,"props":3780,"children":3781},{},[3782],{"type":59,"value":3783},"Keep examples focused",{"type":59,"value":3785},": Each example should demonstrate one feature or use case",{"type":53,"tag":657,"props":3787,"children":3788},{},[3789,3794],{"type":53,"tag":2981,"props":3790,"children":3791},{},[3792],{"type":59,"value":3793},"Use descriptive prompts",{"type":59,"value":3795},": Make it clear what the example is testing",{"type":53,"tag":657,"props":3797,"children":3798},{},[3799,3804,3806,3811],{"type":53,"tag":2981,"props":3800,"children":3801},{},[3802],{"type":59,"value":3803},"Handle errors gracefully",{"type":59,"value":3805},": The ",{"type":53,"tag":68,"props":3807,"children":3809},{"className":3808},[],[3810],{"type":59,"value":641},{"type":59,"value":3812}," wrapper handles this automatically",{"type":53,"tag":657,"props":3814,"children":3815},{},[3816,3821],{"type":53,"tag":2981,"props":3817,"children":3818},{},[3819],{"type":59,"value":3820},"Use realistic model IDs",{"type":59,"value":3822},": Use actual model IDs that work with the provider",{"type":53,"tag":657,"props":3824,"children":3825},{},[3826,3831],{"type":53,"tag":2981,"props":3827,"children":3828},{},[3829],{"type":59,"value":3830},"Add comments for complex logic",{"type":59,"value":3832},": Explain non-obvious code patterns",{"type":53,"tag":657,"props":3834,"children":3835},{},[3836,3841,3843,3849,3851],{"type":53,"tag":2981,"props":3837,"children":3838},{},[3839],{"type":59,"value":3840},"Reuse tools when appropriate",{"type":59,"value":3842},": Use ",{"type":53,"tag":68,"props":3844,"children":3846},{"className":3845},[],[3847],{"type":59,"value":3848},"weatherTool",{"type":59,"value":3850}," or create new reusable tools in ",{"type":53,"tag":68,"props":3852,"children":3854},{"className":3853},[],[3855],{"type":59,"value":472},{"type":53,"tag":3857,"props":3858,"children":3859},"style",{},[3860],{"type":59,"value":3861},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3863,"total":4030},[3864,3886,3900,3919,3930,3945,3955,3973,3985,4004,4015,4024],{"slug":3865,"name":3865,"fn":3866,"description":3867,"org":3868,"tags":3869,"stars":3883,"repoUrl":3884,"updatedAt":3885},"next-cache-components-adoption","enable and migrate to Next.js Cache Components","Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the `cacheComponents` flag, work through a flood of blocking-prerender \u002F instant validation errors, run the `cache-components-instant-false` codemod, or decide between opting routes out with `export const instant = false` and fixing them in place.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3870,3873,3876,3879,3882],{"name":3871,"slug":3872,"type":13},"Caching","caching",{"name":3874,"slug":3875,"type":13},"Frontend","frontend",{"name":3877,"slug":3878,"type":13},"Migration","migration",{"name":3880,"slug":3881,"type":13},"Next.js","next-js",{"name":9,"slug":8,"type":13},141208,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js","2026-07-24T05:38:30.118542",{"slug":3887,"name":3887,"fn":3888,"description":3889,"org":3890,"tags":3891,"stars":3883,"repoUrl":3884,"updatedAt":3899},"next-cache-components-optimizer","optimize Next.js cache components","Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components \u002F PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next\u002Fplaywright instant() e2e and work it to green, one verified route at a time; the shipped test then guards against regression. Use when asked to make a route's navigation instant (its static shell commits immediately), fix a route whose static shell isn't prerendered\u002Fserved\u002Fprefetched, grow a route's static shell or fix its slow first paint, diagnose which Suspense boundary keeps a route out of its static shell, or write the instant() e2e guard for one. Requires Next.js 16.3+ with cacheComponents; directs an upgrade if older.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3892,3893,3894,3895,3898],{"name":3871,"slug":3872,"type":13},{"name":3874,"slug":3875,"type":13},{"name":3880,"slug":3881,"type":13},{"name":3896,"slug":3897,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-07-30T05:31:10.674078",{"slug":3901,"name":3901,"fn":3902,"description":3903,"org":3904,"tags":3905,"stars":3883,"repoUrl":3884,"updatedAt":3918},"next-dev-loop","verify Next.js runtime behavior","Verify Next.js runtime behavior after editing app code. Use this skill to confirm a change actually works in a running app — not just that it compiles or type-checks. Combines \u002F_next\u002Fmcp (Next.js's view) with agent-browser (the browser's view). Requires a running `next dev`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3906,3909,3910,3913,3914,3915],{"name":3907,"slug":3908,"type":13},"Debugging","debugging",{"name":3874,"slug":3875,"type":13},{"name":3911,"slug":3912,"type":13},"Local Development","local-development",{"name":3880,"slug":3881,"type":13},{"name":9,"slug":8,"type":13},{"name":3916,"slug":3917,"type":13},"Web Development","web-development","2026-05-22T06:45:28.627735",{"slug":3920,"name":3920,"fn":3921,"description":3922,"org":3923,"tags":3924,"stars":3883,"repoUrl":3884,"updatedAt":3929},"next-partial-prefetching-adoption","adopt Partial Prefetching in Next.js apps","Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the `partialPrefetching` flag, opt routes in with `export const prefetch = 'partial'`, audit `\u003CLink prefetch={true}>` calls, or resolve the link-prefetch-partial and instant-shell-url-data insights.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3925,3926,3927,3928],{"name":3874,"slug":3875,"type":13},{"name":3880,"slug":3881,"type":13},{"name":3896,"slug":3897,"type":13},{"name":9,"slug":8,"type":13},"2026-07-30T05:31:11.591864",{"slug":3931,"name":3931,"fn":3932,"description":3933,"org":3934,"tags":3935,"stars":3942,"repoUrl":3943,"updatedAt":3944},"turborepo","manage monorepos with Turborepo","Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines,\ndependsOn, caching, remote cache, the \"turbo\" CLI, --filter, --affected, CI optimization, environment\nvariables, internal packages, monorepo structure\u002Fbest practices, and boundaries.\n\nUse when user: configures tasks\u002Fworkflows\u002Fpipelines, creates packages, sets up\nmonorepo, shares code between apps, runs changed\u002Faffected packages, debugs cache,\nor has apps\u002Fpackages directories.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3936,3939,3940],{"name":3937,"slug":3938,"type":13},"CI\u002FCD","ci-cd",{"name":3896,"slug":3897,"type":13},{"name":3941,"slug":3931,"type":13},"Turborepo",30809,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fturborepo","2026-07-30T05:32:14.920116",{"slug":3946,"name":3946,"fn":3947,"description":3948,"org":3949,"tags":3950,"stars":20,"repoUrl":21,"updatedAt":3954},"add-function-examples","add AI function examples for testing","Guide for adding new AI function examples, for testing specific features against the actual provider APIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3951,3952,3953],{"name":15,"slug":16,"type":13},{"name":18,"slug":19,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:51.318866",{"slug":3956,"name":3956,"fn":3957,"description":3958,"org":3959,"tags":3960,"stars":20,"repoUrl":21,"updatedAt":3972},"add-harness-package","add AI SDK harness packages","Guide for adding new AI SDK harness packages. Use when creating a new @ai-sdk\u002Fharness-\u003Cname> package that adapts a coding-agent runtime to HarnessV1.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3961,3964,3965,3968,3971],{"name":3962,"slug":3963,"type":13},"Agents","agents",{"name":15,"slug":16,"type":13},{"name":3966,"slug":3967,"type":13},"Harness","harness",{"name":3969,"slug":3970,"type":13},"SDK","sdk",{"name":9,"slug":8,"type":13},"2026-06-18T08:29:19.858737",{"slug":3974,"name":3974,"fn":3975,"description":3976,"org":3977,"tags":3978,"stars":20,"repoUrl":21,"updatedAt":3984},"add-provider-package","add new provider packages to AI SDK","Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk\u002F\u003Cprovider> package to integrate an AI service into the SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3979,3980,3983],{"name":15,"slug":16,"type":13},{"name":3981,"slug":3982,"type":13},"API Development","api-development",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:47.45549",{"slug":3986,"name":3986,"fn":3987,"description":3988,"org":3989,"tags":3990,"stars":20,"repoUrl":21,"updatedAt":4003},"adr-skill","create and maintain architecture decision records","Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept\u002Freject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3991,3994,3997,4000],{"name":3992,"slug":3993,"type":13},"ADR","adr",{"name":3995,"slug":3996,"type":13},"Architecture","architecture",{"name":3998,"slug":3999,"type":13},"Documentation","documentation",{"name":4001,"slug":4002,"type":13},"Engineering","engineering","2026-04-06T18:55:50.043694",{"slug":16,"name":16,"fn":4005,"description":4006,"org":4007,"tags":4008,"stars":20,"repoUrl":21,"updatedAt":4014},"build AI features with Vercel AI SDK","Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: \"AI SDK\", \"Vercel AI SDK\", \"generateText\", \"streamText\", \"add AI to my app\", \"build an agent\", \"tool calling\", \"structured output\", \"useChat\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4009,4010,4011,4013],{"name":3962,"slug":3963,"type":13},{"name":15,"slug":16,"type":13},{"name":4012,"slug":33,"type":13},"LLM",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:48.739463",{"slug":3064,"name":3064,"fn":4016,"description":4017,"org":4018,"tags":4019,"stars":20,"repoUrl":21,"updatedAt":4023},"capture API response test fixtures","Capture API response test fixture.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4020,4021,4022],{"name":3981,"slug":3982,"type":13},{"name":18,"slug":19,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:56.374433",{"slug":4,"name":4,"fn":5,"description":6,"org":4025,"tags":4026,"stars":20,"repoUrl":21,"updatedAt":22},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4027,4028,4029],{"name":15,"slug":16,"type":13},{"name":18,"slug":19,"type":13},{"name":9,"slug":8,"type":13},68,{"items":4032,"total":1057},[4033,4039,4047,4053,4060,4067,4073],{"slug":3946,"name":3946,"fn":3947,"description":3948,"org":4034,"tags":4035,"stars":20,"repoUrl":21,"updatedAt":3954},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4036,4037,4038],{"name":15,"slug":16,"type":13},{"name":18,"slug":19,"type":13},{"name":9,"slug":8,"type":13},{"slug":3956,"name":3956,"fn":3957,"description":3958,"org":4040,"tags":4041,"stars":20,"repoUrl":21,"updatedAt":3972},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4042,4043,4044,4045,4046],{"name":3962,"slug":3963,"type":13},{"name":15,"slug":16,"type":13},{"name":3966,"slug":3967,"type":13},{"name":3969,"slug":3970,"type":13},{"name":9,"slug":8,"type":13},{"slug":3974,"name":3974,"fn":3975,"description":3976,"org":4048,"tags":4049,"stars":20,"repoUrl":21,"updatedAt":3984},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4050,4051,4052],{"name":15,"slug":16,"type":13},{"name":3981,"slug":3982,"type":13},{"name":9,"slug":8,"type":13},{"slug":3986,"name":3986,"fn":3987,"description":3988,"org":4054,"tags":4055,"stars":20,"repoUrl":21,"updatedAt":4003},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4056,4057,4058,4059],{"name":3992,"slug":3993,"type":13},{"name":3995,"slug":3996,"type":13},{"name":3998,"slug":3999,"type":13},{"name":4001,"slug":4002,"type":13},{"slug":16,"name":16,"fn":4005,"description":4006,"org":4061,"tags":4062,"stars":20,"repoUrl":21,"updatedAt":4014},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4063,4064,4065,4066],{"name":3962,"slug":3963,"type":13},{"name":15,"slug":16,"type":13},{"name":4012,"slug":33,"type":13},{"name":9,"slug":8,"type":13},{"slug":3064,"name":3064,"fn":4016,"description":4017,"org":4068,"tags":4069,"stars":20,"repoUrl":21,"updatedAt":4023},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4070,4071,4072],{"name":3981,"slug":3982,"type":13},{"name":18,"slug":19,"type":13},{"name":9,"slug":8,"type":13},{"slug":4,"name":4,"fn":5,"description":6,"org":4074,"tags":4075,"stars":20,"repoUrl":21,"updatedAt":22},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4076,4077,4078],{"name":15,"slug":16,"type":13},{"name":18,"slug":19,"type":13},{"name":9,"slug":8,"type":13}]