[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-microsoft-m365-agents-ts":3,"mdc--gc9gdb-key":45,"related-repo-microsoft-m365-agents-ts":3636,"related-org-microsoft-m365-agents-ts":3746},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":28,"repoUrl":29,"updatedAt":30,"license":31,"forks":32,"topics":33,"repo":40,"sourceUrl":43,"mdContent":44},"m365-agents-ts","build Microsoft 365 agents with TypeScript","Microsoft 365 Agents SDK for TypeScript\u002FNode.js. Build multichannel agents for Teams\u002FM365\u002FCopilot Studio with AgentApplication routing, Express hosting, streaming responses, and Copilot Studio client integration. Triggers: \"Microsoft 365 Agents SDK\", \"@microsoft\u002Fagents-hosting\", \"AgentApplication\", \"startServer\", \"streamingResponse\", \"Copilot Studio client\", \"@microsoft\u002Fagents-copilotstudio-client\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"microsoft","Microsoft","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmicrosoft.png",[12,16,19,22,25],{"name":13,"slug":14,"type":15},"TypeScript","typescript","tag",{"name":17,"slug":18,"type":15},"Microsoft 365","microsoft-365",{"name":20,"slug":21,"type":15},"Microsoft Teams","microsoft-teams",{"name":23,"slug":24,"type":15},"Copilot Studio","copilot-studio",{"name":26,"slug":27,"type":15},"Agents","agents",2804,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills","2026-05-13T06:14:28.039456","MIT",315,[34,27,35,36,37,38,39],"agent-skills","azure","foundry","mcp","sdk","skills",{"repoUrl":29,"stars":28,"forks":32,"topics":41,"description":42},[34,27,35,36,37,38,39],"Skills, MCP servers, Custom Agents, Agents.md for SDKs to ground Coding Agents","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Ftree\u002FHEAD\u002F.github\u002Fplugins\u002Fazure-sdk-typescript\u002Fskills\u002Fm365-agents-ts","---\nname: m365-agents-ts\ndescription: |\n  Microsoft 365 Agents SDK for TypeScript\u002FNode.js. Build multichannel agents for Teams\u002FM365\u002FCopilot Studio with AgentApplication routing, Express hosting, streaming responses, and Copilot Studio client integration. Triggers: \"Microsoft 365 Agents SDK\", \"@microsoft\u002Fagents-hosting\", \"AgentApplication\", \"startServer\", \"streamingResponse\", \"Copilot Studio client\", \"@microsoft\u002Fagents-copilotstudio-client\".\nlicense: MIT\nmetadata:\n  author: Microsoft\n  version: \"1.0.0\"\n  package: \"@microsoft\u002Fagents-hosting, @microsoft\u002Fagents-hosting-express, @microsoft\u002Fagents-activity, @microsoft\u002Fagents-copilotstudio-client\"\n---\n\n# Microsoft 365 Agents SDK (TypeScript)\n\nBuild enterprise agents for Microsoft 365, Teams, and Copilot Studio using the Microsoft 365 Agents SDK with Express hosting, AgentApplication routing, streaming responses, and Copilot Studio client integrations.\n\n## Before implementation\n\n- Use the microsoft-docs MCP to verify the latest API signatures for AgentApplication, startServer, and CopilotStudioClient.\n- Confirm package versions on npm before wiring up samples or templates.\n\n## Installation\n\n```bash\nnpm install @microsoft\u002Fagents-hosting @microsoft\u002Fagents-hosting-express @microsoft\u002Fagents-activity\nnpm install @microsoft\u002Fagents-copilotstudio-client\n```\n\n## Environment Variables\n\n```bash\nPORT=3978\nAZURE_RESOURCE_NAME=\u003Cazure-openai-resource>\nAZURE_API_KEY=\u003Cazure-openai-key>\nAZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o-mini\n\nTENANT_ID=\u003Ctenant-id>\nCLIENT_ID=\u003Cclient-id>\nCLIENT_SECRET=\u003Cclient-secret>\n\nCOPILOT_ENVIRONMENT_ID=\u003Cenvironment-id>\nCOPILOT_SCHEMA_NAME=\u003Cschema-name>\nCOPILOT_CLIENT_ID=\u003Ccopilot-app-client-id>\nCOPILOT_BEARER_TOKEN=\u003Ccopilot-jwt>\n```\n\n## Core Workflow: Express-hosted AgentApplication\n\n```typescript\nimport {\n  AgentApplication,\n  TurnContext,\n  TurnState,\n} from \"@microsoft\u002Fagents-hosting\";\nimport { startServer } from \"@microsoft\u002Fagents-hosting-express\";\n\nconst agent = new AgentApplication\u003CTurnState>();\n\nagent.onConversationUpdate(\"membersAdded\", async (context: TurnContext) => {\n  await context.sendActivity(\"Welcome to the agent.\");\n});\n\nagent.onMessage(\"hello\", async (context: TurnContext) => {\n  await context.sendActivity(`Echo: ${context.activity.text}`);\n});\n\nstartServer(agent);\n```\n\n## Streaming responses with Azure OpenAI\n\n```typescript\nimport { azure } from \"@ai-sdk\u002Fazure\";\nimport {\n  AgentApplication,\n  TurnContext,\n  TurnState,\n} from \"@microsoft\u002Fagents-hosting\";\nimport { startServer } from \"@microsoft\u002Fagents-hosting-express\";\nimport { streamText } from \"ai\";\n\nconst agent = new AgentApplication\u003CTurnState>();\n\nagent.onMessage(\"poem\", async (context: TurnContext) => {\n  context.streamingResponse.setFeedbackLoop(true);\n  context.streamingResponse.setGeneratedByAILabel(true);\n  context.streamingResponse.setSensitivityLabel({\n    type: \"https:\u002F\u002Fschema.org\u002FMessage\",\n    \"@type\": \"CreativeWork\",\n    name: \"Internal\",\n  });\n\n  await context.streamingResponse.queueInformativeUpdate(\"starting a poem...\");\n\n  const { fullStream } = streamText({\n    model: azure(process.env.AZURE_OPENAI_DEPLOYMENT_NAME || \"gpt-4o-mini\"),\n    system: \"You are a creative assistant.\",\n    prompt: \"Write a poem about Apollo.\",\n  });\n\n  try {\n    for await (const part of fullStream) {\n      if (part.type === \"text-delta\" && part.text.length > 0) {\n        await context.streamingResponse.queueTextChunk(part.text);\n      }\n      if (part.type === \"error\") {\n        throw new Error(`Streaming error: ${part.error}`);\n      }\n    }\n  } finally {\n    await context.streamingResponse.endStream();\n  }\n});\n\nstartServer(agent);\n```\n\n## Invoke activity handling\n\n```typescript\nimport { Activity, ActivityTypes } from \"@microsoft\u002Fagents-activity\";\nimport {\n  AgentApplication,\n  TurnContext,\n  TurnState,\n} from \"@microsoft\u002Fagents-hosting\";\n\nconst agent = new AgentApplication\u003CTurnState>();\n\nagent.onActivity(\"invoke\", async (context: TurnContext) => {\n  const invokeResponse = Activity.fromObject({\n    type: ActivityTypes.InvokeResponse,\n    value: { status: 200 },\n  });\n\n  await context.sendActivity(invokeResponse);\n  await context.sendActivity(\"Thanks for submitting your feedback.\");\n});\n```\n\n## Copilot Studio client (Direct to Engine)\n\n```typescript\nimport { CopilotStudioClient } from \"@microsoft\u002Fagents-copilotstudio-client\";\n\nconst settings = {\n  environmentId: process.env.COPILOT_ENVIRONMENT_ID!,\n  schemaName: process.env.COPILOT_SCHEMA_NAME!,\n  clientId: process.env.COPILOT_CLIENT_ID!,\n};\n\nconst tokenProvider = async (): Promise\u003Cstring> => {\n  return process.env.COPILOT_BEARER_TOKEN!;\n};\n\nconst client = new CopilotStudioClient(settings, tokenProvider);\n\nconst conversation = await client.startConversationAsync();\nconst reply = await client.askQuestionAsync(\"Hello!\", conversation.id);\nconsole.log(reply);\n```\n\n## Copilot Studio WebChat integration\n\n```typescript\nimport { CopilotStudioWebChat } from \"@microsoft\u002Fagents-copilotstudio-client\";\n\nconst directLine = CopilotStudioWebChat.createConnection(client, {\n  showTyping: true,\n});\n\nwindow.WebChat.renderWebChat(\n  {\n    directLine,\n  },\n  document.getElementById(\"webchat\")!,\n);\n```\n\n## Best Practices\n\n1. Use AgentApplication for routing and keep handlers focused on one responsibility.\n2. Prefer streamingResponse for long-running completions and call endStream in finally blocks.\n3. Keep secrets out of source code; load tokens from environment variables or secure stores.\n4. Reuse CopilotStudioClient instances and cache tokens in your token provider.\n5. Validate invoke payloads before logging or persisting feedback.\n\n## Reference Links\n\n| Resource                               | URL                                                                                                                 |\n| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |\n| Microsoft 365 Agents SDK               | https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fmicrosoft-365\u002Fagents-sdk\u002F                                                         |\n| JavaScript SDK overview                | https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fjavascript\u002Fapi\u002Foverview\u002Fagents-overview?view=agents-sdk-js-latest                 |\n| @microsoft\u002Fagents-hosting-express      | https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fjavascript\u002Fapi\u002F%40microsoft\u002Fagents-hosting-express?view=agents-sdk-js-latest      |\n| @microsoft\u002Fagents-copilotstudio-client | https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fjavascript\u002Fapi\u002F%40microsoft\u002Fagents-copilotstudio-client?view=agents-sdk-js-latest |\n| Integrate with Copilot Studio          | https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fmicrosoft-365\u002Fagents-sdk\u002Fintegrate-with-mcs                                       |\n| GitHub samples                         | https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgents\u002Ftree\u002Fmain\u002Fsamples\u002Fnodejs                                                        |\n",{"data":46,"body":50},{"name":4,"description":6,"license":31,"metadata":47},{"author":9,"version":48,"package":49},"1.0.0","@microsoft\u002Fagents-hosting, @microsoft\u002Fagents-hosting-express, @microsoft\u002Fagents-activity, @microsoft\u002Fagents-copilotstudio-client",{"type":51,"children":52},"root",[53,62,68,75,90,96,158,164,426,432,970,976,2232,2238,2709,2715,3202,3208,3459,3465,3494,3500,3630],{"type":54,"tag":55,"props":56,"children":58},"element","h1",{"id":57},"microsoft-365-agents-sdk-typescript",[59],{"type":60,"value":61},"text","Microsoft 365 Agents SDK (TypeScript)",{"type":54,"tag":63,"props":64,"children":65},"p",{},[66],{"type":60,"value":67},"Build enterprise agents for Microsoft 365, Teams, and Copilot Studio using the Microsoft 365 Agents SDK with Express hosting, AgentApplication routing, streaming responses, and Copilot Studio client integrations.",{"type":54,"tag":69,"props":70,"children":72},"h2",{"id":71},"before-implementation",[73],{"type":60,"value":74},"Before implementation",{"type":54,"tag":76,"props":77,"children":78},"ul",{},[79,85],{"type":54,"tag":80,"props":81,"children":82},"li",{},[83],{"type":60,"value":84},"Use the microsoft-docs MCP to verify the latest API signatures for AgentApplication, startServer, and CopilotStudioClient.",{"type":54,"tag":80,"props":86,"children":87},{},[88],{"type":60,"value":89},"Confirm package versions on npm before wiring up samples or templates.",{"type":54,"tag":69,"props":91,"children":93},{"id":92},"installation",[94],{"type":60,"value":95},"Installation",{"type":54,"tag":97,"props":98,"children":103},"pre",{"className":99,"code":100,"language":101,"meta":102,"style":102},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install @microsoft\u002Fagents-hosting @microsoft\u002Fagents-hosting-express @microsoft\u002Fagents-activity\nnpm install @microsoft\u002Fagents-copilotstudio-client\n","bash","",[104],{"type":54,"tag":105,"props":106,"children":107},"code",{"__ignoreMap":102},[108,141],{"type":54,"tag":109,"props":110,"children":113},"span",{"class":111,"line":112},"line",1,[114,120,126,131,136],{"type":54,"tag":109,"props":115,"children":117},{"style":116},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[118],{"type":60,"value":119},"npm",{"type":54,"tag":109,"props":121,"children":123},{"style":122},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[124],{"type":60,"value":125}," install",{"type":54,"tag":109,"props":127,"children":128},{"style":122},[129],{"type":60,"value":130}," @microsoft\u002Fagents-hosting",{"type":54,"tag":109,"props":132,"children":133},{"style":122},[134],{"type":60,"value":135}," @microsoft\u002Fagents-hosting-express",{"type":54,"tag":109,"props":137,"children":138},{"style":122},[139],{"type":60,"value":140}," @microsoft\u002Fagents-activity\n",{"type":54,"tag":109,"props":142,"children":144},{"class":111,"line":143},2,[145,149,153],{"type":54,"tag":109,"props":146,"children":147},{"style":116},[148],{"type":60,"value":119},{"type":54,"tag":109,"props":150,"children":151},{"style":122},[152],{"type":60,"value":125},{"type":54,"tag":109,"props":154,"children":155},{"style":122},[156],{"type":60,"value":157}," @microsoft\u002Fagents-copilotstudio-client\n",{"type":54,"tag":69,"props":159,"children":161},{"id":160},"environment-variables",[162],{"type":60,"value":163},"Environment Variables",{"type":54,"tag":97,"props":165,"children":167},{"className":99,"code":166,"language":101,"meta":102,"style":102},"PORT=3978\nAZURE_RESOURCE_NAME=\u003Cazure-openai-resource>\nAZURE_API_KEY=\u003Cazure-openai-key>\nAZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o-mini\n\nTENANT_ID=\u003Ctenant-id>\nCLIENT_ID=\u003Cclient-id>\nCLIENT_SECRET=\u003Cclient-secret>\n\nCOPILOT_ENVIRONMENT_ID=\u003Cenvironment-id>\nCOPILOT_SCHEMA_NAME=\u003Cschema-name>\nCOPILOT_CLIENT_ID=\u003Ccopilot-app-client-id>\nCOPILOT_BEARER_TOKEN=\u003Ccopilot-jwt>\n",[168],{"type":54,"tag":105,"props":169,"children":170},{"__ignoreMap":102},[171,191,214,236,254,264,286,308,330,338,360,382,404],{"type":54,"tag":109,"props":172,"children":173},{"class":111,"line":112},[174,180,186],{"type":54,"tag":109,"props":175,"children":177},{"style":176},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[178],{"type":60,"value":179},"PORT",{"type":54,"tag":109,"props":181,"children":183},{"style":182},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[184],{"type":60,"value":185},"=",{"type":54,"tag":109,"props":187,"children":188},{"style":122},[189],{"type":60,"value":190},"3978\n",{"type":54,"tag":109,"props":192,"children":193},{"class":111,"line":143},[194,199,204,209],{"type":54,"tag":109,"props":195,"children":196},{"style":176},[197],{"type":60,"value":198},"AZURE_RESOURCE_NAME",{"type":54,"tag":109,"props":200,"children":201},{"style":182},[202],{"type":60,"value":203},"=\u003C",{"type":54,"tag":109,"props":205,"children":206},{"style":122},[207],{"type":60,"value":208},"azure-openai-resource",{"type":54,"tag":109,"props":210,"children":211},{"style":182},[212],{"type":60,"value":213},">\n",{"type":54,"tag":109,"props":215,"children":217},{"class":111,"line":216},3,[218,223,227,232],{"type":54,"tag":109,"props":219,"children":220},{"style":176},[221],{"type":60,"value":222},"AZURE_API_KEY",{"type":54,"tag":109,"props":224,"children":225},{"style":182},[226],{"type":60,"value":203},{"type":54,"tag":109,"props":228,"children":229},{"style":122},[230],{"type":60,"value":231},"azure-openai-key",{"type":54,"tag":109,"props":233,"children":234},{"style":182},[235],{"type":60,"value":213},{"type":54,"tag":109,"props":237,"children":239},{"class":111,"line":238},4,[240,245,249],{"type":54,"tag":109,"props":241,"children":242},{"style":176},[243],{"type":60,"value":244},"AZURE_OPENAI_DEPLOYMENT_NAME",{"type":54,"tag":109,"props":246,"children":247},{"style":182},[248],{"type":60,"value":185},{"type":54,"tag":109,"props":250,"children":251},{"style":122},[252],{"type":60,"value":253},"gpt-4o-mini\n",{"type":54,"tag":109,"props":255,"children":257},{"class":111,"line":256},5,[258],{"type":54,"tag":109,"props":259,"children":261},{"emptyLinePlaceholder":260},true,[262],{"type":60,"value":263},"\n",{"type":54,"tag":109,"props":265,"children":267},{"class":111,"line":266},6,[268,273,277,282],{"type":54,"tag":109,"props":269,"children":270},{"style":176},[271],{"type":60,"value":272},"TENANT_ID",{"type":54,"tag":109,"props":274,"children":275},{"style":182},[276],{"type":60,"value":203},{"type":54,"tag":109,"props":278,"children":279},{"style":122},[280],{"type":60,"value":281},"tenant-id",{"type":54,"tag":109,"props":283,"children":284},{"style":182},[285],{"type":60,"value":213},{"type":54,"tag":109,"props":287,"children":289},{"class":111,"line":288},7,[290,295,299,304],{"type":54,"tag":109,"props":291,"children":292},{"style":176},[293],{"type":60,"value":294},"CLIENT_ID",{"type":54,"tag":109,"props":296,"children":297},{"style":182},[298],{"type":60,"value":203},{"type":54,"tag":109,"props":300,"children":301},{"style":122},[302],{"type":60,"value":303},"client-id",{"type":54,"tag":109,"props":305,"children":306},{"style":182},[307],{"type":60,"value":213},{"type":54,"tag":109,"props":309,"children":311},{"class":111,"line":310},8,[312,317,321,326],{"type":54,"tag":109,"props":313,"children":314},{"style":176},[315],{"type":60,"value":316},"CLIENT_SECRET",{"type":54,"tag":109,"props":318,"children":319},{"style":182},[320],{"type":60,"value":203},{"type":54,"tag":109,"props":322,"children":323},{"style":122},[324],{"type":60,"value":325},"client-secret",{"type":54,"tag":109,"props":327,"children":328},{"style":182},[329],{"type":60,"value":213},{"type":54,"tag":109,"props":331,"children":333},{"class":111,"line":332},9,[334],{"type":54,"tag":109,"props":335,"children":336},{"emptyLinePlaceholder":260},[337],{"type":60,"value":263},{"type":54,"tag":109,"props":339,"children":341},{"class":111,"line":340},10,[342,347,351,356],{"type":54,"tag":109,"props":343,"children":344},{"style":176},[345],{"type":60,"value":346},"COPILOT_ENVIRONMENT_ID",{"type":54,"tag":109,"props":348,"children":349},{"style":182},[350],{"type":60,"value":203},{"type":54,"tag":109,"props":352,"children":353},{"style":122},[354],{"type":60,"value":355},"environment-id",{"type":54,"tag":109,"props":357,"children":358},{"style":182},[359],{"type":60,"value":213},{"type":54,"tag":109,"props":361,"children":363},{"class":111,"line":362},11,[364,369,373,378],{"type":54,"tag":109,"props":365,"children":366},{"style":176},[367],{"type":60,"value":368},"COPILOT_SCHEMA_NAME",{"type":54,"tag":109,"props":370,"children":371},{"style":182},[372],{"type":60,"value":203},{"type":54,"tag":109,"props":374,"children":375},{"style":122},[376],{"type":60,"value":377},"schema-name",{"type":54,"tag":109,"props":379,"children":380},{"style":182},[381],{"type":60,"value":213},{"type":54,"tag":109,"props":383,"children":385},{"class":111,"line":384},12,[386,391,395,400],{"type":54,"tag":109,"props":387,"children":388},{"style":176},[389],{"type":60,"value":390},"COPILOT_CLIENT_ID",{"type":54,"tag":109,"props":392,"children":393},{"style":182},[394],{"type":60,"value":203},{"type":54,"tag":109,"props":396,"children":397},{"style":122},[398],{"type":60,"value":399},"copilot-app-client-id",{"type":54,"tag":109,"props":401,"children":402},{"style":182},[403],{"type":60,"value":213},{"type":54,"tag":109,"props":405,"children":407},{"class":111,"line":406},13,[408,413,417,422],{"type":54,"tag":109,"props":409,"children":410},{"style":176},[411],{"type":60,"value":412},"COPILOT_BEARER_TOKEN",{"type":54,"tag":109,"props":414,"children":415},{"style":182},[416],{"type":60,"value":203},{"type":54,"tag":109,"props":418,"children":419},{"style":122},[420],{"type":60,"value":421},"copilot-jwt",{"type":54,"tag":109,"props":423,"children":424},{"style":182},[425],{"type":60,"value":213},{"type":54,"tag":69,"props":427,"children":429},{"id":428},"core-workflow-express-hosted-agentapplication",[430],{"type":60,"value":431},"Core Workflow: Express-hosted AgentApplication",{"type":54,"tag":97,"props":433,"children":436},{"className":434,"code":435,"language":14,"meta":102,"style":102},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import {\n  AgentApplication,\n  TurnContext,\n  TurnState,\n} from \"@microsoft\u002Fagents-hosting\";\nimport { startServer } from \"@microsoft\u002Fagents-hosting-express\";\n\nconst agent = new AgentApplication\u003CTurnState>();\n\nagent.onConversationUpdate(\"membersAdded\", async (context: TurnContext) => {\n  await context.sendActivity(\"Welcome to the agent.\");\n});\n\nagent.onMessage(\"hello\", async (context: TurnContext) => {\n  await context.sendActivity(`Echo: ${context.activity.text}`);\n});\n\nstartServer(agent);\n",[437],{"type":54,"tag":105,"props":438,"children":439},{"__ignoreMap":102},[440,454,467,479,491,524,567,574,627,634,715,763,778,785,855,928,944,952],{"type":54,"tag":109,"props":441,"children":442},{"class":111,"line":112},[443,449],{"type":54,"tag":109,"props":444,"children":446},{"style":445},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[447],{"type":60,"value":448},"import",{"type":54,"tag":109,"props":450,"children":451},{"style":182},[452],{"type":60,"value":453}," {\n",{"type":54,"tag":109,"props":455,"children":456},{"class":111,"line":143},[457,462],{"type":54,"tag":109,"props":458,"children":459},{"style":176},[460],{"type":60,"value":461},"  AgentApplication",{"type":54,"tag":109,"props":463,"children":464},{"style":182},[465],{"type":60,"value":466},",\n",{"type":54,"tag":109,"props":468,"children":469},{"class":111,"line":216},[470,475],{"type":54,"tag":109,"props":471,"children":472},{"style":176},[473],{"type":60,"value":474},"  TurnContext",{"type":54,"tag":109,"props":476,"children":477},{"style":182},[478],{"type":60,"value":466},{"type":54,"tag":109,"props":480,"children":481},{"class":111,"line":238},[482,487],{"type":54,"tag":109,"props":483,"children":484},{"style":176},[485],{"type":60,"value":486},"  TurnState",{"type":54,"tag":109,"props":488,"children":489},{"style":182},[490],{"type":60,"value":466},{"type":54,"tag":109,"props":492,"children":493},{"class":111,"line":256},[494,499,504,509,514,519],{"type":54,"tag":109,"props":495,"children":496},{"style":182},[497],{"type":60,"value":498},"}",{"type":54,"tag":109,"props":500,"children":501},{"style":445},[502],{"type":60,"value":503}," from",{"type":54,"tag":109,"props":505,"children":506},{"style":182},[507],{"type":60,"value":508}," \"",{"type":54,"tag":109,"props":510,"children":511},{"style":122},[512],{"type":60,"value":513},"@microsoft\u002Fagents-hosting",{"type":54,"tag":109,"props":515,"children":516},{"style":182},[517],{"type":60,"value":518},"\"",{"type":54,"tag":109,"props":520,"children":521},{"style":182},[522],{"type":60,"value":523},";\n",{"type":54,"tag":109,"props":525,"children":526},{"class":111,"line":266},[527,531,536,541,546,550,554,559,563],{"type":54,"tag":109,"props":528,"children":529},{"style":445},[530],{"type":60,"value":448},{"type":54,"tag":109,"props":532,"children":533},{"style":182},[534],{"type":60,"value":535}," {",{"type":54,"tag":109,"props":537,"children":538},{"style":176},[539],{"type":60,"value":540}," startServer",{"type":54,"tag":109,"props":542,"children":543},{"style":182},[544],{"type":60,"value":545}," }",{"type":54,"tag":109,"props":547,"children":548},{"style":445},[549],{"type":60,"value":503},{"type":54,"tag":109,"props":551,"children":552},{"style":182},[553],{"type":60,"value":508},{"type":54,"tag":109,"props":555,"children":556},{"style":122},[557],{"type":60,"value":558},"@microsoft\u002Fagents-hosting-express",{"type":54,"tag":109,"props":560,"children":561},{"style":182},[562],{"type":60,"value":518},{"type":54,"tag":109,"props":564,"children":565},{"style":182},[566],{"type":60,"value":523},{"type":54,"tag":109,"props":568,"children":569},{"class":111,"line":288},[570],{"type":54,"tag":109,"props":571,"children":572},{"emptyLinePlaceholder":260},[573],{"type":60,"value":263},{"type":54,"tag":109,"props":575,"children":576},{"class":111,"line":310},[577,583,588,592,597,603,608,613,618,623],{"type":54,"tag":109,"props":578,"children":580},{"style":579},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[581],{"type":60,"value":582},"const",{"type":54,"tag":109,"props":584,"children":585},{"style":176},[586],{"type":60,"value":587}," agent ",{"type":54,"tag":109,"props":589,"children":590},{"style":182},[591],{"type":60,"value":185},{"type":54,"tag":109,"props":593,"children":594},{"style":182},[595],{"type":60,"value":596}," new",{"type":54,"tag":109,"props":598,"children":600},{"style":599},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[601],{"type":60,"value":602}," AgentApplication",{"type":54,"tag":109,"props":604,"children":605},{"style":182},[606],{"type":60,"value":607},"\u003C",{"type":54,"tag":109,"props":609,"children":610},{"style":116},[611],{"type":60,"value":612},"TurnState",{"type":54,"tag":109,"props":614,"children":615},{"style":182},[616],{"type":60,"value":617},">",{"type":54,"tag":109,"props":619,"children":620},{"style":176},[621],{"type":60,"value":622},"()",{"type":54,"tag":109,"props":624,"children":625},{"style":182},[626],{"type":60,"value":523},{"type":54,"tag":109,"props":628,"children":629},{"class":111,"line":332},[630],{"type":54,"tag":109,"props":631,"children":632},{"emptyLinePlaceholder":260},[633],{"type":60,"value":263},{"type":54,"tag":109,"props":635,"children":636},{"class":111,"line":340},[637,642,647,652,657,661,666,670,675,680,685,691,696,701,706,711],{"type":54,"tag":109,"props":638,"children":639},{"style":176},[640],{"type":60,"value":641},"agent",{"type":54,"tag":109,"props":643,"children":644},{"style":182},[645],{"type":60,"value":646},".",{"type":54,"tag":109,"props":648,"children":649},{"style":599},[650],{"type":60,"value":651},"onConversationUpdate",{"type":54,"tag":109,"props":653,"children":654},{"style":176},[655],{"type":60,"value":656},"(",{"type":54,"tag":109,"props":658,"children":659},{"style":182},[660],{"type":60,"value":518},{"type":54,"tag":109,"props":662,"children":663},{"style":122},[664],{"type":60,"value":665},"membersAdded",{"type":54,"tag":109,"props":667,"children":668},{"style":182},[669],{"type":60,"value":518},{"type":54,"tag":109,"props":671,"children":672},{"style":182},[673],{"type":60,"value":674},",",{"type":54,"tag":109,"props":676,"children":677},{"style":579},[678],{"type":60,"value":679}," async",{"type":54,"tag":109,"props":681,"children":682},{"style":182},[683],{"type":60,"value":684}," (",{"type":54,"tag":109,"props":686,"children":688},{"style":687},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[689],{"type":60,"value":690},"context",{"type":54,"tag":109,"props":692,"children":693},{"style":182},[694],{"type":60,"value":695},":",{"type":54,"tag":109,"props":697,"children":698},{"style":116},[699],{"type":60,"value":700}," TurnContext",{"type":54,"tag":109,"props":702,"children":703},{"style":182},[704],{"type":60,"value":705},")",{"type":54,"tag":109,"props":707,"children":708},{"style":579},[709],{"type":60,"value":710}," =>",{"type":54,"tag":109,"props":712,"children":713},{"style":182},[714],{"type":60,"value":453},{"type":54,"tag":109,"props":716,"children":717},{"class":111,"line":362},[718,723,728,732,737,742,746,751,755,759],{"type":54,"tag":109,"props":719,"children":720},{"style":445},[721],{"type":60,"value":722},"  await",{"type":54,"tag":109,"props":724,"children":725},{"style":176},[726],{"type":60,"value":727}," context",{"type":54,"tag":109,"props":729,"children":730},{"style":182},[731],{"type":60,"value":646},{"type":54,"tag":109,"props":733,"children":734},{"style":599},[735],{"type":60,"value":736},"sendActivity",{"type":54,"tag":109,"props":738,"children":740},{"style":739},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[741],{"type":60,"value":656},{"type":54,"tag":109,"props":743,"children":744},{"style":182},[745],{"type":60,"value":518},{"type":54,"tag":109,"props":747,"children":748},{"style":122},[749],{"type":60,"value":750},"Welcome to the agent.",{"type":54,"tag":109,"props":752,"children":753},{"style":182},[754],{"type":60,"value":518},{"type":54,"tag":109,"props":756,"children":757},{"style":739},[758],{"type":60,"value":705},{"type":54,"tag":109,"props":760,"children":761},{"style":182},[762],{"type":60,"value":523},{"type":54,"tag":109,"props":764,"children":765},{"class":111,"line":384},[766,770,774],{"type":54,"tag":109,"props":767,"children":768},{"style":182},[769],{"type":60,"value":498},{"type":54,"tag":109,"props":771,"children":772},{"style":176},[773],{"type":60,"value":705},{"type":54,"tag":109,"props":775,"children":776},{"style":182},[777],{"type":60,"value":523},{"type":54,"tag":109,"props":779,"children":780},{"class":111,"line":406},[781],{"type":54,"tag":109,"props":782,"children":783},{"emptyLinePlaceholder":260},[784],{"type":60,"value":263},{"type":54,"tag":109,"props":786,"children":788},{"class":111,"line":787},14,[789,793,797,802,806,810,815,819,823,827,831,835,839,843,847,851],{"type":54,"tag":109,"props":790,"children":791},{"style":176},[792],{"type":60,"value":641},{"type":54,"tag":109,"props":794,"children":795},{"style":182},[796],{"type":60,"value":646},{"type":54,"tag":109,"props":798,"children":799},{"style":599},[800],{"type":60,"value":801},"onMessage",{"type":54,"tag":109,"props":803,"children":804},{"style":176},[805],{"type":60,"value":656},{"type":54,"tag":109,"props":807,"children":808},{"style":182},[809],{"type":60,"value":518},{"type":54,"tag":109,"props":811,"children":812},{"style":122},[813],{"type":60,"value":814},"hello",{"type":54,"tag":109,"props":816,"children":817},{"style":182},[818],{"type":60,"value":518},{"type":54,"tag":109,"props":820,"children":821},{"style":182},[822],{"type":60,"value":674},{"type":54,"tag":109,"props":824,"children":825},{"style":579},[826],{"type":60,"value":679},{"type":54,"tag":109,"props":828,"children":829},{"style":182},[830],{"type":60,"value":684},{"type":54,"tag":109,"props":832,"children":833},{"style":687},[834],{"type":60,"value":690},{"type":54,"tag":109,"props":836,"children":837},{"style":182},[838],{"type":60,"value":695},{"type":54,"tag":109,"props":840,"children":841},{"style":116},[842],{"type":60,"value":700},{"type":54,"tag":109,"props":844,"children":845},{"style":182},[846],{"type":60,"value":705},{"type":54,"tag":109,"props":848,"children":849},{"style":579},[850],{"type":60,"value":710},{"type":54,"tag":109,"props":852,"children":853},{"style":182},[854],{"type":60,"value":453},{"type":54,"tag":109,"props":856,"children":858},{"class":111,"line":857},15,[859,863,867,871,875,879,884,889,894,898,902,907,911,915,920,924],{"type":54,"tag":109,"props":860,"children":861},{"style":445},[862],{"type":60,"value":722},{"type":54,"tag":109,"props":864,"children":865},{"style":176},[866],{"type":60,"value":727},{"type":54,"tag":109,"props":868,"children":869},{"style":182},[870],{"type":60,"value":646},{"type":54,"tag":109,"props":872,"children":873},{"style":599},[874],{"type":60,"value":736},{"type":54,"tag":109,"props":876,"children":877},{"style":739},[878],{"type":60,"value":656},{"type":54,"tag":109,"props":880,"children":881},{"style":182},[882],{"type":60,"value":883},"`",{"type":54,"tag":109,"props":885,"children":886},{"style":122},[887],{"type":60,"value":888},"Echo: ",{"type":54,"tag":109,"props":890,"children":891},{"style":182},[892],{"type":60,"value":893},"${",{"type":54,"tag":109,"props":895,"children":896},{"style":176},[897],{"type":60,"value":690},{"type":54,"tag":109,"props":899,"children":900},{"style":182},[901],{"type":60,"value":646},{"type":54,"tag":109,"props":903,"children":904},{"style":176},[905],{"type":60,"value":906},"activity",{"type":54,"tag":109,"props":908,"children":909},{"style":182},[910],{"type":60,"value":646},{"type":54,"tag":109,"props":912,"children":913},{"style":176},[914],{"type":60,"value":60},{"type":54,"tag":109,"props":916,"children":917},{"style":182},[918],{"type":60,"value":919},"}`",{"type":54,"tag":109,"props":921,"children":922},{"style":739},[923],{"type":60,"value":705},{"type":54,"tag":109,"props":925,"children":926},{"style":182},[927],{"type":60,"value":523},{"type":54,"tag":109,"props":929,"children":931},{"class":111,"line":930},16,[932,936,940],{"type":54,"tag":109,"props":933,"children":934},{"style":182},[935],{"type":60,"value":498},{"type":54,"tag":109,"props":937,"children":938},{"style":176},[939],{"type":60,"value":705},{"type":54,"tag":109,"props":941,"children":942},{"style":182},[943],{"type":60,"value":523},{"type":54,"tag":109,"props":945,"children":947},{"class":111,"line":946},17,[948],{"type":54,"tag":109,"props":949,"children":950},{"emptyLinePlaceholder":260},[951],{"type":60,"value":263},{"type":54,"tag":109,"props":953,"children":955},{"class":111,"line":954},18,[956,961,966],{"type":54,"tag":109,"props":957,"children":958},{"style":599},[959],{"type":60,"value":960},"startServer",{"type":54,"tag":109,"props":962,"children":963},{"style":176},[964],{"type":60,"value":965},"(agent)",{"type":54,"tag":109,"props":967,"children":968},{"style":182},[969],{"type":60,"value":523},{"type":54,"tag":69,"props":971,"children":973},{"id":972},"streaming-responses-with-azure-openai",[974],{"type":60,"value":975},"Streaming responses with Azure OpenAI",{"type":54,"tag":97,"props":977,"children":979},{"className":434,"code":978,"language":14,"meta":102,"style":102},"import { azure } from \"@ai-sdk\u002Fazure\";\nimport {\n  AgentApplication,\n  TurnContext,\n  TurnState,\n} from \"@microsoft\u002Fagents-hosting\";\nimport { startServer } from \"@microsoft\u002Fagents-hosting-express\";\nimport { streamText } from \"ai\";\n\nconst agent = new AgentApplication\u003CTurnState>();\n\nagent.onMessage(\"poem\", async (context: TurnContext) => {\n  context.streamingResponse.setFeedbackLoop(true);\n  context.streamingResponse.setGeneratedByAILabel(true);\n  context.streamingResponse.setSensitivityLabel({\n    type: \"https:\u002F\u002Fschema.org\u002FMessage\",\n    \"@type\": \"CreativeWork\",\n    name: \"Internal\",\n  });\n\n  await context.streamingResponse.queueInformativeUpdate(\"starting a poem...\");\n\n  const { fullStream } = streamText({\n    model: azure(process.env.AZURE_OPENAI_DEPLOYMENT_NAME || \"gpt-4o-mini\"),\n    system: \"You are a creative assistant.\",\n    prompt: \"Write a poem about Apollo.\",\n  });\n\n  try {\n    for await (const part of fullStream) {\n      if (part.type === \"text-delta\" && part.text.length > 0) {\n        await context.streamingResponse.queueTextChunk(part.text);\n      }\n      if (part.type === \"error\") {\n        throw new Error(`Streaming error: ${part.error}`);\n      }\n    }\n  } finally {\n    await context.streamingResponse.endStream();\n  }\n});\n\nstartServer(agent);\n",[980],{"type":54,"tag":105,"props":981,"children":982},{"__ignoreMap":102},[983,1024,1035,1046,1057,1068,1095,1134,1175,1182,1225,1232,1300,1344,1384,1417,1446,1484,1513,1530,1538,1592,1600,1639,1708,1738,1768,1784,1792,1805,1850,1940,1994,2003,2052,2111,2119,2128,2145,2183,2192,2208,2216],{"type":54,"tag":109,"props":984,"children":985},{"class":111,"line":112},[986,990,994,999,1003,1007,1011,1016,1020],{"type":54,"tag":109,"props":987,"children":988},{"style":445},[989],{"type":60,"value":448},{"type":54,"tag":109,"props":991,"children":992},{"style":182},[993],{"type":60,"value":535},{"type":54,"tag":109,"props":995,"children":996},{"style":176},[997],{"type":60,"value":998}," azure",{"type":54,"tag":109,"props":1000,"children":1001},{"style":182},[1002],{"type":60,"value":545},{"type":54,"tag":109,"props":1004,"children":1005},{"style":445},[1006],{"type":60,"value":503},{"type":54,"tag":109,"props":1008,"children":1009},{"style":182},[1010],{"type":60,"value":508},{"type":54,"tag":109,"props":1012,"children":1013},{"style":122},[1014],{"type":60,"value":1015},"@ai-sdk\u002Fazure",{"type":54,"tag":109,"props":1017,"children":1018},{"style":182},[1019],{"type":60,"value":518},{"type":54,"tag":109,"props":1021,"children":1022},{"style":182},[1023],{"type":60,"value":523},{"type":54,"tag":109,"props":1025,"children":1026},{"class":111,"line":143},[1027,1031],{"type":54,"tag":109,"props":1028,"children":1029},{"style":445},[1030],{"type":60,"value":448},{"type":54,"tag":109,"props":1032,"children":1033},{"style":182},[1034],{"type":60,"value":453},{"type":54,"tag":109,"props":1036,"children":1037},{"class":111,"line":216},[1038,1042],{"type":54,"tag":109,"props":1039,"children":1040},{"style":176},[1041],{"type":60,"value":461},{"type":54,"tag":109,"props":1043,"children":1044},{"style":182},[1045],{"type":60,"value":466},{"type":54,"tag":109,"props":1047,"children":1048},{"class":111,"line":238},[1049,1053],{"type":54,"tag":109,"props":1050,"children":1051},{"style":176},[1052],{"type":60,"value":474},{"type":54,"tag":109,"props":1054,"children":1055},{"style":182},[1056],{"type":60,"value":466},{"type":54,"tag":109,"props":1058,"children":1059},{"class":111,"line":256},[1060,1064],{"type":54,"tag":109,"props":1061,"children":1062},{"style":176},[1063],{"type":60,"value":486},{"type":54,"tag":109,"props":1065,"children":1066},{"style":182},[1067],{"type":60,"value":466},{"type":54,"tag":109,"props":1069,"children":1070},{"class":111,"line":266},[1071,1075,1079,1083,1087,1091],{"type":54,"tag":109,"props":1072,"children":1073},{"style":182},[1074],{"type":60,"value":498},{"type":54,"tag":109,"props":1076,"children":1077},{"style":445},[1078],{"type":60,"value":503},{"type":54,"tag":109,"props":1080,"children":1081},{"style":182},[1082],{"type":60,"value":508},{"type":54,"tag":109,"props":1084,"children":1085},{"style":122},[1086],{"type":60,"value":513},{"type":54,"tag":109,"props":1088,"children":1089},{"style":182},[1090],{"type":60,"value":518},{"type":54,"tag":109,"props":1092,"children":1093},{"style":182},[1094],{"type":60,"value":523},{"type":54,"tag":109,"props":1096,"children":1097},{"class":111,"line":288},[1098,1102,1106,1110,1114,1118,1122,1126,1130],{"type":54,"tag":109,"props":1099,"children":1100},{"style":445},[1101],{"type":60,"value":448},{"type":54,"tag":109,"props":1103,"children":1104},{"style":182},[1105],{"type":60,"value":535},{"type":54,"tag":109,"props":1107,"children":1108},{"style":176},[1109],{"type":60,"value":540},{"type":54,"tag":109,"props":1111,"children":1112},{"style":182},[1113],{"type":60,"value":545},{"type":54,"tag":109,"props":1115,"children":1116},{"style":445},[1117],{"type":60,"value":503},{"type":54,"tag":109,"props":1119,"children":1120},{"style":182},[1121],{"type":60,"value":508},{"type":54,"tag":109,"props":1123,"children":1124},{"style":122},[1125],{"type":60,"value":558},{"type":54,"tag":109,"props":1127,"children":1128},{"style":182},[1129],{"type":60,"value":518},{"type":54,"tag":109,"props":1131,"children":1132},{"style":182},[1133],{"type":60,"value":523},{"type":54,"tag":109,"props":1135,"children":1136},{"class":111,"line":310},[1137,1141,1145,1150,1154,1158,1162,1167,1171],{"type":54,"tag":109,"props":1138,"children":1139},{"style":445},[1140],{"type":60,"value":448},{"type":54,"tag":109,"props":1142,"children":1143},{"style":182},[1144],{"type":60,"value":535},{"type":54,"tag":109,"props":1146,"children":1147},{"style":176},[1148],{"type":60,"value":1149}," streamText",{"type":54,"tag":109,"props":1151,"children":1152},{"style":182},[1153],{"type":60,"value":545},{"type":54,"tag":109,"props":1155,"children":1156},{"style":445},[1157],{"type":60,"value":503},{"type":54,"tag":109,"props":1159,"children":1160},{"style":182},[1161],{"type":60,"value":508},{"type":54,"tag":109,"props":1163,"children":1164},{"style":122},[1165],{"type":60,"value":1166},"ai",{"type":54,"tag":109,"props":1168,"children":1169},{"style":182},[1170],{"type":60,"value":518},{"type":54,"tag":109,"props":1172,"children":1173},{"style":182},[1174],{"type":60,"value":523},{"type":54,"tag":109,"props":1176,"children":1177},{"class":111,"line":332},[1178],{"type":54,"tag":109,"props":1179,"children":1180},{"emptyLinePlaceholder":260},[1181],{"type":60,"value":263},{"type":54,"tag":109,"props":1183,"children":1184},{"class":111,"line":340},[1185,1189,1193,1197,1201,1205,1209,1213,1217,1221],{"type":54,"tag":109,"props":1186,"children":1187},{"style":579},[1188],{"type":60,"value":582},{"type":54,"tag":109,"props":1190,"children":1191},{"style":176},[1192],{"type":60,"value":587},{"type":54,"tag":109,"props":1194,"children":1195},{"style":182},[1196],{"type":60,"value":185},{"type":54,"tag":109,"props":1198,"children":1199},{"style":182},[1200],{"type":60,"value":596},{"type":54,"tag":109,"props":1202,"children":1203},{"style":599},[1204],{"type":60,"value":602},{"type":54,"tag":109,"props":1206,"children":1207},{"style":182},[1208],{"type":60,"value":607},{"type":54,"tag":109,"props":1210,"children":1211},{"style":116},[1212],{"type":60,"value":612},{"type":54,"tag":109,"props":1214,"children":1215},{"style":182},[1216],{"type":60,"value":617},{"type":54,"tag":109,"props":1218,"children":1219},{"style":176},[1220],{"type":60,"value":622},{"type":54,"tag":109,"props":1222,"children":1223},{"style":182},[1224],{"type":60,"value":523},{"type":54,"tag":109,"props":1226,"children":1227},{"class":111,"line":362},[1228],{"type":54,"tag":109,"props":1229,"children":1230},{"emptyLinePlaceholder":260},[1231],{"type":60,"value":263},{"type":54,"tag":109,"props":1233,"children":1234},{"class":111,"line":384},[1235,1239,1243,1247,1251,1255,1260,1264,1268,1272,1276,1280,1284,1288,1292,1296],{"type":54,"tag":109,"props":1236,"children":1237},{"style":176},[1238],{"type":60,"value":641},{"type":54,"tag":109,"props":1240,"children":1241},{"style":182},[1242],{"type":60,"value":646},{"type":54,"tag":109,"props":1244,"children":1245},{"style":599},[1246],{"type":60,"value":801},{"type":54,"tag":109,"props":1248,"children":1249},{"style":176},[1250],{"type":60,"value":656},{"type":54,"tag":109,"props":1252,"children":1253},{"style":182},[1254],{"type":60,"value":518},{"type":54,"tag":109,"props":1256,"children":1257},{"style":122},[1258],{"type":60,"value":1259},"poem",{"type":54,"tag":109,"props":1261,"children":1262},{"style":182},[1263],{"type":60,"value":518},{"type":54,"tag":109,"props":1265,"children":1266},{"style":182},[1267],{"type":60,"value":674},{"type":54,"tag":109,"props":1269,"children":1270},{"style":579},[1271],{"type":60,"value":679},{"type":54,"tag":109,"props":1273,"children":1274},{"style":182},[1275],{"type":60,"value":684},{"type":54,"tag":109,"props":1277,"children":1278},{"style":687},[1279],{"type":60,"value":690},{"type":54,"tag":109,"props":1281,"children":1282},{"style":182},[1283],{"type":60,"value":695},{"type":54,"tag":109,"props":1285,"children":1286},{"style":116},[1287],{"type":60,"value":700},{"type":54,"tag":109,"props":1289,"children":1290},{"style":182},[1291],{"type":60,"value":705},{"type":54,"tag":109,"props":1293,"children":1294},{"style":579},[1295],{"type":60,"value":710},{"type":54,"tag":109,"props":1297,"children":1298},{"style":182},[1299],{"type":60,"value":453},{"type":54,"tag":109,"props":1301,"children":1302},{"class":111,"line":406},[1303,1308,1312,1317,1321,1326,1330,1336,1340],{"type":54,"tag":109,"props":1304,"children":1305},{"style":176},[1306],{"type":60,"value":1307},"  context",{"type":54,"tag":109,"props":1309,"children":1310},{"style":182},[1311],{"type":60,"value":646},{"type":54,"tag":109,"props":1313,"children":1314},{"style":176},[1315],{"type":60,"value":1316},"streamingResponse",{"type":54,"tag":109,"props":1318,"children":1319},{"style":182},[1320],{"type":60,"value":646},{"type":54,"tag":109,"props":1322,"children":1323},{"style":599},[1324],{"type":60,"value":1325},"setFeedbackLoop",{"type":54,"tag":109,"props":1327,"children":1328},{"style":739},[1329],{"type":60,"value":656},{"type":54,"tag":109,"props":1331,"children":1333},{"style":1332},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1334],{"type":60,"value":1335},"true",{"type":54,"tag":109,"props":1337,"children":1338},{"style":739},[1339],{"type":60,"value":705},{"type":54,"tag":109,"props":1341,"children":1342},{"style":182},[1343],{"type":60,"value":523},{"type":54,"tag":109,"props":1345,"children":1346},{"class":111,"line":787},[1347,1351,1355,1359,1363,1368,1372,1376,1380],{"type":54,"tag":109,"props":1348,"children":1349},{"style":176},[1350],{"type":60,"value":1307},{"type":54,"tag":109,"props":1352,"children":1353},{"style":182},[1354],{"type":60,"value":646},{"type":54,"tag":109,"props":1356,"children":1357},{"style":176},[1358],{"type":60,"value":1316},{"type":54,"tag":109,"props":1360,"children":1361},{"style":182},[1362],{"type":60,"value":646},{"type":54,"tag":109,"props":1364,"children":1365},{"style":599},[1366],{"type":60,"value":1367},"setGeneratedByAILabel",{"type":54,"tag":109,"props":1369,"children":1370},{"style":739},[1371],{"type":60,"value":656},{"type":54,"tag":109,"props":1373,"children":1374},{"style":1332},[1375],{"type":60,"value":1335},{"type":54,"tag":109,"props":1377,"children":1378},{"style":739},[1379],{"type":60,"value":705},{"type":54,"tag":109,"props":1381,"children":1382},{"style":182},[1383],{"type":60,"value":523},{"type":54,"tag":109,"props":1385,"children":1386},{"class":111,"line":857},[1387,1391,1395,1399,1403,1408,1412],{"type":54,"tag":109,"props":1388,"children":1389},{"style":176},[1390],{"type":60,"value":1307},{"type":54,"tag":109,"props":1392,"children":1393},{"style":182},[1394],{"type":60,"value":646},{"type":54,"tag":109,"props":1396,"children":1397},{"style":176},[1398],{"type":60,"value":1316},{"type":54,"tag":109,"props":1400,"children":1401},{"style":182},[1402],{"type":60,"value":646},{"type":54,"tag":109,"props":1404,"children":1405},{"style":599},[1406],{"type":60,"value":1407},"setSensitivityLabel",{"type":54,"tag":109,"props":1409,"children":1410},{"style":739},[1411],{"type":60,"value":656},{"type":54,"tag":109,"props":1413,"children":1414},{"style":182},[1415],{"type":60,"value":1416},"{\n",{"type":54,"tag":109,"props":1418,"children":1419},{"class":111,"line":930},[1420,1425,1429,1433,1438,1442],{"type":54,"tag":109,"props":1421,"children":1422},{"style":739},[1423],{"type":60,"value":1424},"    type",{"type":54,"tag":109,"props":1426,"children":1427},{"style":182},[1428],{"type":60,"value":695},{"type":54,"tag":109,"props":1430,"children":1431},{"style":182},[1432],{"type":60,"value":508},{"type":54,"tag":109,"props":1434,"children":1435},{"style":122},[1436],{"type":60,"value":1437},"https:\u002F\u002Fschema.org\u002FMessage",{"type":54,"tag":109,"props":1439,"children":1440},{"style":182},[1441],{"type":60,"value":518},{"type":54,"tag":109,"props":1443,"children":1444},{"style":182},[1445],{"type":60,"value":466},{"type":54,"tag":109,"props":1447,"children":1448},{"class":111,"line":946},[1449,1454,1459,1463,1467,1471,1476,1480],{"type":54,"tag":109,"props":1450,"children":1451},{"style":182},[1452],{"type":60,"value":1453},"    \"",{"type":54,"tag":109,"props":1455,"children":1456},{"style":739},[1457],{"type":60,"value":1458},"@type",{"type":54,"tag":109,"props":1460,"children":1461},{"style":182},[1462],{"type":60,"value":518},{"type":54,"tag":109,"props":1464,"children":1465},{"style":182},[1466],{"type":60,"value":695},{"type":54,"tag":109,"props":1468,"children":1469},{"style":182},[1470],{"type":60,"value":508},{"type":54,"tag":109,"props":1472,"children":1473},{"style":122},[1474],{"type":60,"value":1475},"CreativeWork",{"type":54,"tag":109,"props":1477,"children":1478},{"style":182},[1479],{"type":60,"value":518},{"type":54,"tag":109,"props":1481,"children":1482},{"style":182},[1483],{"type":60,"value":466},{"type":54,"tag":109,"props":1485,"children":1486},{"class":111,"line":954},[1487,1492,1496,1500,1505,1509],{"type":54,"tag":109,"props":1488,"children":1489},{"style":739},[1490],{"type":60,"value":1491},"    name",{"type":54,"tag":109,"props":1493,"children":1494},{"style":182},[1495],{"type":60,"value":695},{"type":54,"tag":109,"props":1497,"children":1498},{"style":182},[1499],{"type":60,"value":508},{"type":54,"tag":109,"props":1501,"children":1502},{"style":122},[1503],{"type":60,"value":1504},"Internal",{"type":54,"tag":109,"props":1506,"children":1507},{"style":182},[1508],{"type":60,"value":518},{"type":54,"tag":109,"props":1510,"children":1511},{"style":182},[1512],{"type":60,"value":466},{"type":54,"tag":109,"props":1514,"children":1516},{"class":111,"line":1515},19,[1517,1522,1526],{"type":54,"tag":109,"props":1518,"children":1519},{"style":182},[1520],{"type":60,"value":1521},"  }",{"type":54,"tag":109,"props":1523,"children":1524},{"style":739},[1525],{"type":60,"value":705},{"type":54,"tag":109,"props":1527,"children":1528},{"style":182},[1529],{"type":60,"value":523},{"type":54,"tag":109,"props":1531,"children":1533},{"class":111,"line":1532},20,[1534],{"type":54,"tag":109,"props":1535,"children":1536},{"emptyLinePlaceholder":260},[1537],{"type":60,"value":263},{"type":54,"tag":109,"props":1539,"children":1541},{"class":111,"line":1540},21,[1542,1546,1550,1554,1558,1562,1567,1571,1575,1580,1584,1588],{"type":54,"tag":109,"props":1543,"children":1544},{"style":445},[1545],{"type":60,"value":722},{"type":54,"tag":109,"props":1547,"children":1548},{"style":176},[1549],{"type":60,"value":727},{"type":54,"tag":109,"props":1551,"children":1552},{"style":182},[1553],{"type":60,"value":646},{"type":54,"tag":109,"props":1555,"children":1556},{"style":176},[1557],{"type":60,"value":1316},{"type":54,"tag":109,"props":1559,"children":1560},{"style":182},[1561],{"type":60,"value":646},{"type":54,"tag":109,"props":1563,"children":1564},{"style":599},[1565],{"type":60,"value":1566},"queueInformativeUpdate",{"type":54,"tag":109,"props":1568,"children":1569},{"style":739},[1570],{"type":60,"value":656},{"type":54,"tag":109,"props":1572,"children":1573},{"style":182},[1574],{"type":60,"value":518},{"type":54,"tag":109,"props":1576,"children":1577},{"style":122},[1578],{"type":60,"value":1579},"starting a poem...",{"type":54,"tag":109,"props":1581,"children":1582},{"style":182},[1583],{"type":60,"value":518},{"type":54,"tag":109,"props":1585,"children":1586},{"style":739},[1587],{"type":60,"value":705},{"type":54,"tag":109,"props":1589,"children":1590},{"style":182},[1591],{"type":60,"value":523},{"type":54,"tag":109,"props":1593,"children":1595},{"class":111,"line":1594},22,[1596],{"type":54,"tag":109,"props":1597,"children":1598},{"emptyLinePlaceholder":260},[1599],{"type":60,"value":263},{"type":54,"tag":109,"props":1601,"children":1603},{"class":111,"line":1602},23,[1604,1609,1613,1618,1622,1627,1631,1635],{"type":54,"tag":109,"props":1605,"children":1606},{"style":579},[1607],{"type":60,"value":1608},"  const",{"type":54,"tag":109,"props":1610,"children":1611},{"style":182},[1612],{"type":60,"value":535},{"type":54,"tag":109,"props":1614,"children":1615},{"style":176},[1616],{"type":60,"value":1617}," fullStream",{"type":54,"tag":109,"props":1619,"children":1620},{"style":182},[1621],{"type":60,"value":545},{"type":54,"tag":109,"props":1623,"children":1624},{"style":182},[1625],{"type":60,"value":1626}," =",{"type":54,"tag":109,"props":1628,"children":1629},{"style":599},[1630],{"type":60,"value":1149},{"type":54,"tag":109,"props":1632,"children":1633},{"style":739},[1634],{"type":60,"value":656},{"type":54,"tag":109,"props":1636,"children":1637},{"style":182},[1638],{"type":60,"value":1416},{"type":54,"tag":109,"props":1640,"children":1642},{"class":111,"line":1641},24,[1643,1648,1652,1656,1660,1665,1669,1674,1678,1682,1687,1691,1696,1700,1704],{"type":54,"tag":109,"props":1644,"children":1645},{"style":739},[1646],{"type":60,"value":1647},"    model",{"type":54,"tag":109,"props":1649,"children":1650},{"style":182},[1651],{"type":60,"value":695},{"type":54,"tag":109,"props":1653,"children":1654},{"style":599},[1655],{"type":60,"value":998},{"type":54,"tag":109,"props":1657,"children":1658},{"style":739},[1659],{"type":60,"value":656},{"type":54,"tag":109,"props":1661,"children":1662},{"style":176},[1663],{"type":60,"value":1664},"process",{"type":54,"tag":109,"props":1666,"children":1667},{"style":182},[1668],{"type":60,"value":646},{"type":54,"tag":109,"props":1670,"children":1671},{"style":176},[1672],{"type":60,"value":1673},"env",{"type":54,"tag":109,"props":1675,"children":1676},{"style":182},[1677],{"type":60,"value":646},{"type":54,"tag":109,"props":1679,"children":1680},{"style":176},[1681],{"type":60,"value":244},{"type":54,"tag":109,"props":1683,"children":1684},{"style":182},[1685],{"type":60,"value":1686}," ||",{"type":54,"tag":109,"props":1688,"children":1689},{"style":182},[1690],{"type":60,"value":508},{"type":54,"tag":109,"props":1692,"children":1693},{"style":122},[1694],{"type":60,"value":1695},"gpt-4o-mini",{"type":54,"tag":109,"props":1697,"children":1698},{"style":182},[1699],{"type":60,"value":518},{"type":54,"tag":109,"props":1701,"children":1702},{"style":739},[1703],{"type":60,"value":705},{"type":54,"tag":109,"props":1705,"children":1706},{"style":182},[1707],{"type":60,"value":466},{"type":54,"tag":109,"props":1709,"children":1711},{"class":111,"line":1710},25,[1712,1717,1721,1725,1730,1734],{"type":54,"tag":109,"props":1713,"children":1714},{"style":739},[1715],{"type":60,"value":1716},"    system",{"type":54,"tag":109,"props":1718,"children":1719},{"style":182},[1720],{"type":60,"value":695},{"type":54,"tag":109,"props":1722,"children":1723},{"style":182},[1724],{"type":60,"value":508},{"type":54,"tag":109,"props":1726,"children":1727},{"style":122},[1728],{"type":60,"value":1729},"You are a creative assistant.",{"type":54,"tag":109,"props":1731,"children":1732},{"style":182},[1733],{"type":60,"value":518},{"type":54,"tag":109,"props":1735,"children":1736},{"style":182},[1737],{"type":60,"value":466},{"type":54,"tag":109,"props":1739,"children":1741},{"class":111,"line":1740},26,[1742,1747,1751,1755,1760,1764],{"type":54,"tag":109,"props":1743,"children":1744},{"style":739},[1745],{"type":60,"value":1746},"    prompt",{"type":54,"tag":109,"props":1748,"children":1749},{"style":182},[1750],{"type":60,"value":695},{"type":54,"tag":109,"props":1752,"children":1753},{"style":182},[1754],{"type":60,"value":508},{"type":54,"tag":109,"props":1756,"children":1757},{"style":122},[1758],{"type":60,"value":1759},"Write a poem about Apollo.",{"type":54,"tag":109,"props":1761,"children":1762},{"style":182},[1763],{"type":60,"value":518},{"type":54,"tag":109,"props":1765,"children":1766},{"style":182},[1767],{"type":60,"value":466},{"type":54,"tag":109,"props":1769,"children":1771},{"class":111,"line":1770},27,[1772,1776,1780],{"type":54,"tag":109,"props":1773,"children":1774},{"style":182},[1775],{"type":60,"value":1521},{"type":54,"tag":109,"props":1777,"children":1778},{"style":739},[1779],{"type":60,"value":705},{"type":54,"tag":109,"props":1781,"children":1782},{"style":182},[1783],{"type":60,"value":523},{"type":54,"tag":109,"props":1785,"children":1787},{"class":111,"line":1786},28,[1788],{"type":54,"tag":109,"props":1789,"children":1790},{"emptyLinePlaceholder":260},[1791],{"type":60,"value":263},{"type":54,"tag":109,"props":1793,"children":1795},{"class":111,"line":1794},29,[1796,1801],{"type":54,"tag":109,"props":1797,"children":1798},{"style":445},[1799],{"type":60,"value":1800},"  try",{"type":54,"tag":109,"props":1802,"children":1803},{"style":182},[1804],{"type":60,"value":453},{"type":54,"tag":109,"props":1806,"children":1808},{"class":111,"line":1807},30,[1809,1814,1819,1823,1827,1832,1837,1841,1846],{"type":54,"tag":109,"props":1810,"children":1811},{"style":445},[1812],{"type":60,"value":1813},"    for",{"type":54,"tag":109,"props":1815,"children":1816},{"style":445},[1817],{"type":60,"value":1818}," await",{"type":54,"tag":109,"props":1820,"children":1821},{"style":739},[1822],{"type":60,"value":684},{"type":54,"tag":109,"props":1824,"children":1825},{"style":579},[1826],{"type":60,"value":582},{"type":54,"tag":109,"props":1828,"children":1829},{"style":176},[1830],{"type":60,"value":1831}," part",{"type":54,"tag":109,"props":1833,"children":1834},{"style":182},[1835],{"type":60,"value":1836}," of",{"type":54,"tag":109,"props":1838,"children":1839},{"style":176},[1840],{"type":60,"value":1617},{"type":54,"tag":109,"props":1842,"children":1843},{"style":739},[1844],{"type":60,"value":1845},") ",{"type":54,"tag":109,"props":1847,"children":1848},{"style":182},[1849],{"type":60,"value":1416},{"type":54,"tag":109,"props":1851,"children":1853},{"class":111,"line":1852},31,[1854,1859,1863,1868,1872,1877,1882,1886,1891,1895,1900,1904,1908,1912,1916,1921,1926,1932,1936],{"type":54,"tag":109,"props":1855,"children":1856},{"style":445},[1857],{"type":60,"value":1858},"      if",{"type":54,"tag":109,"props":1860,"children":1861},{"style":739},[1862],{"type":60,"value":684},{"type":54,"tag":109,"props":1864,"children":1865},{"style":176},[1866],{"type":60,"value":1867},"part",{"type":54,"tag":109,"props":1869,"children":1870},{"style":182},[1871],{"type":60,"value":646},{"type":54,"tag":109,"props":1873,"children":1874},{"style":176},[1875],{"type":60,"value":1876},"type",{"type":54,"tag":109,"props":1878,"children":1879},{"style":182},[1880],{"type":60,"value":1881}," ===",{"type":54,"tag":109,"props":1883,"children":1884},{"style":182},[1885],{"type":60,"value":508},{"type":54,"tag":109,"props":1887,"children":1888},{"style":122},[1889],{"type":60,"value":1890},"text-delta",{"type":54,"tag":109,"props":1892,"children":1893},{"style":182},[1894],{"type":60,"value":518},{"type":54,"tag":109,"props":1896,"children":1897},{"style":182},[1898],{"type":60,"value":1899}," &&",{"type":54,"tag":109,"props":1901,"children":1902},{"style":176},[1903],{"type":60,"value":1831},{"type":54,"tag":109,"props":1905,"children":1906},{"style":182},[1907],{"type":60,"value":646},{"type":54,"tag":109,"props":1909,"children":1910},{"style":176},[1911],{"type":60,"value":60},{"type":54,"tag":109,"props":1913,"children":1914},{"style":182},[1915],{"type":60,"value":646},{"type":54,"tag":109,"props":1917,"children":1918},{"style":176},[1919],{"type":60,"value":1920},"length",{"type":54,"tag":109,"props":1922,"children":1923},{"style":182},[1924],{"type":60,"value":1925}," >",{"type":54,"tag":109,"props":1927,"children":1929},{"style":1928},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1930],{"type":60,"value":1931}," 0",{"type":54,"tag":109,"props":1933,"children":1934},{"style":739},[1935],{"type":60,"value":1845},{"type":54,"tag":109,"props":1937,"children":1938},{"style":182},[1939],{"type":60,"value":1416},{"type":54,"tag":109,"props":1941,"children":1943},{"class":111,"line":1942},32,[1944,1949,1953,1957,1961,1965,1970,1974,1978,1982,1986,1990],{"type":54,"tag":109,"props":1945,"children":1946},{"style":445},[1947],{"type":60,"value":1948},"        await",{"type":54,"tag":109,"props":1950,"children":1951},{"style":176},[1952],{"type":60,"value":727},{"type":54,"tag":109,"props":1954,"children":1955},{"style":182},[1956],{"type":60,"value":646},{"type":54,"tag":109,"props":1958,"children":1959},{"style":176},[1960],{"type":60,"value":1316},{"type":54,"tag":109,"props":1962,"children":1963},{"style":182},[1964],{"type":60,"value":646},{"type":54,"tag":109,"props":1966,"children":1967},{"style":599},[1968],{"type":60,"value":1969},"queueTextChunk",{"type":54,"tag":109,"props":1971,"children":1972},{"style":739},[1973],{"type":60,"value":656},{"type":54,"tag":109,"props":1975,"children":1976},{"style":176},[1977],{"type":60,"value":1867},{"type":54,"tag":109,"props":1979,"children":1980},{"style":182},[1981],{"type":60,"value":646},{"type":54,"tag":109,"props":1983,"children":1984},{"style":176},[1985],{"type":60,"value":60},{"type":54,"tag":109,"props":1987,"children":1988},{"style":739},[1989],{"type":60,"value":705},{"type":54,"tag":109,"props":1991,"children":1992},{"style":182},[1993],{"type":60,"value":523},{"type":54,"tag":109,"props":1995,"children":1997},{"class":111,"line":1996},33,[1998],{"type":54,"tag":109,"props":1999,"children":2000},{"style":182},[2001],{"type":60,"value":2002},"      }\n",{"type":54,"tag":109,"props":2004,"children":2006},{"class":111,"line":2005},34,[2007,2011,2015,2019,2023,2027,2031,2035,2040,2044,2048],{"type":54,"tag":109,"props":2008,"children":2009},{"style":445},[2010],{"type":60,"value":1858},{"type":54,"tag":109,"props":2012,"children":2013},{"style":739},[2014],{"type":60,"value":684},{"type":54,"tag":109,"props":2016,"children":2017},{"style":176},[2018],{"type":60,"value":1867},{"type":54,"tag":109,"props":2020,"children":2021},{"style":182},[2022],{"type":60,"value":646},{"type":54,"tag":109,"props":2024,"children":2025},{"style":176},[2026],{"type":60,"value":1876},{"type":54,"tag":109,"props":2028,"children":2029},{"style":182},[2030],{"type":60,"value":1881},{"type":54,"tag":109,"props":2032,"children":2033},{"style":182},[2034],{"type":60,"value":508},{"type":54,"tag":109,"props":2036,"children":2037},{"style":122},[2038],{"type":60,"value":2039},"error",{"type":54,"tag":109,"props":2041,"children":2042},{"style":182},[2043],{"type":60,"value":518},{"type":54,"tag":109,"props":2045,"children":2046},{"style":739},[2047],{"type":60,"value":1845},{"type":54,"tag":109,"props":2049,"children":2050},{"style":182},[2051],{"type":60,"value":1416},{"type":54,"tag":109,"props":2053,"children":2055},{"class":111,"line":2054},35,[2056,2061,2065,2070,2074,2078,2083,2087,2091,2095,2099,2103,2107],{"type":54,"tag":109,"props":2057,"children":2058},{"style":445},[2059],{"type":60,"value":2060},"        throw",{"type":54,"tag":109,"props":2062,"children":2063},{"style":182},[2064],{"type":60,"value":596},{"type":54,"tag":109,"props":2066,"children":2067},{"style":599},[2068],{"type":60,"value":2069}," Error",{"type":54,"tag":109,"props":2071,"children":2072},{"style":739},[2073],{"type":60,"value":656},{"type":54,"tag":109,"props":2075,"children":2076},{"style":182},[2077],{"type":60,"value":883},{"type":54,"tag":109,"props":2079,"children":2080},{"style":122},[2081],{"type":60,"value":2082},"Streaming error: ",{"type":54,"tag":109,"props":2084,"children":2085},{"style":182},[2086],{"type":60,"value":893},{"type":54,"tag":109,"props":2088,"children":2089},{"style":176},[2090],{"type":60,"value":1867},{"type":54,"tag":109,"props":2092,"children":2093},{"style":182},[2094],{"type":60,"value":646},{"type":54,"tag":109,"props":2096,"children":2097},{"style":176},[2098],{"type":60,"value":2039},{"type":54,"tag":109,"props":2100,"children":2101},{"style":182},[2102],{"type":60,"value":919},{"type":54,"tag":109,"props":2104,"children":2105},{"style":739},[2106],{"type":60,"value":705},{"type":54,"tag":109,"props":2108,"children":2109},{"style":182},[2110],{"type":60,"value":523},{"type":54,"tag":109,"props":2112,"children":2114},{"class":111,"line":2113},36,[2115],{"type":54,"tag":109,"props":2116,"children":2117},{"style":182},[2118],{"type":60,"value":2002},{"type":54,"tag":109,"props":2120,"children":2122},{"class":111,"line":2121},37,[2123],{"type":54,"tag":109,"props":2124,"children":2125},{"style":182},[2126],{"type":60,"value":2127},"    }\n",{"type":54,"tag":109,"props":2129,"children":2131},{"class":111,"line":2130},38,[2132,2136,2141],{"type":54,"tag":109,"props":2133,"children":2134},{"style":182},[2135],{"type":60,"value":1521},{"type":54,"tag":109,"props":2137,"children":2138},{"style":445},[2139],{"type":60,"value":2140}," finally",{"type":54,"tag":109,"props":2142,"children":2143},{"style":182},[2144],{"type":60,"value":453},{"type":54,"tag":109,"props":2146,"children":2148},{"class":111,"line":2147},39,[2149,2154,2158,2162,2166,2170,2175,2179],{"type":54,"tag":109,"props":2150,"children":2151},{"style":445},[2152],{"type":60,"value":2153},"    await",{"type":54,"tag":109,"props":2155,"children":2156},{"style":176},[2157],{"type":60,"value":727},{"type":54,"tag":109,"props":2159,"children":2160},{"style":182},[2161],{"type":60,"value":646},{"type":54,"tag":109,"props":2163,"children":2164},{"style":176},[2165],{"type":60,"value":1316},{"type":54,"tag":109,"props":2167,"children":2168},{"style":182},[2169],{"type":60,"value":646},{"type":54,"tag":109,"props":2171,"children":2172},{"style":599},[2173],{"type":60,"value":2174},"endStream",{"type":54,"tag":109,"props":2176,"children":2177},{"style":739},[2178],{"type":60,"value":622},{"type":54,"tag":109,"props":2180,"children":2181},{"style":182},[2182],{"type":60,"value":523},{"type":54,"tag":109,"props":2184,"children":2186},{"class":111,"line":2185},40,[2187],{"type":54,"tag":109,"props":2188,"children":2189},{"style":182},[2190],{"type":60,"value":2191},"  }\n",{"type":54,"tag":109,"props":2193,"children":2195},{"class":111,"line":2194},41,[2196,2200,2204],{"type":54,"tag":109,"props":2197,"children":2198},{"style":182},[2199],{"type":60,"value":498},{"type":54,"tag":109,"props":2201,"children":2202},{"style":176},[2203],{"type":60,"value":705},{"type":54,"tag":109,"props":2205,"children":2206},{"style":182},[2207],{"type":60,"value":523},{"type":54,"tag":109,"props":2209,"children":2211},{"class":111,"line":2210},42,[2212],{"type":54,"tag":109,"props":2213,"children":2214},{"emptyLinePlaceholder":260},[2215],{"type":60,"value":263},{"type":54,"tag":109,"props":2217,"children":2219},{"class":111,"line":2218},43,[2220,2224,2228],{"type":54,"tag":109,"props":2221,"children":2222},{"style":599},[2223],{"type":60,"value":960},{"type":54,"tag":109,"props":2225,"children":2226},{"style":176},[2227],{"type":60,"value":965},{"type":54,"tag":109,"props":2229,"children":2230},{"style":182},[2231],{"type":60,"value":523},{"type":54,"tag":69,"props":2233,"children":2235},{"id":2234},"invoke-activity-handling",[2236],{"type":60,"value":2237},"Invoke activity handling",{"type":54,"tag":97,"props":2239,"children":2241},{"className":434,"code":2240,"language":14,"meta":102,"style":102},"import { Activity, ActivityTypes } from \"@microsoft\u002Fagents-activity\";\nimport {\n  AgentApplication,\n  TurnContext,\n  TurnState,\n} from \"@microsoft\u002Fagents-hosting\";\n\nconst agent = new AgentApplication\u003CTurnState>();\n\nagent.onActivity(\"invoke\", async (context: TurnContext) => {\n  const invokeResponse = Activity.fromObject({\n    type: ActivityTypes.InvokeResponse,\n    value: { status: 200 },\n  });\n\n  await context.sendActivity(invokeResponse);\n  await context.sendActivity(\"Thanks for submitting your feedback.\");\n});\n",[2242],{"type":54,"tag":105,"props":2243,"children":2244},{"__ignoreMap":102},[2245,2295,2306,2317,2328,2339,2366,2373,2416,2423,2492,2529,2557,2592,2607,2614,2650,2694],{"type":54,"tag":109,"props":2246,"children":2247},{"class":111,"line":112},[2248,2252,2256,2261,2265,2270,2274,2278,2282,2287,2291],{"type":54,"tag":109,"props":2249,"children":2250},{"style":445},[2251],{"type":60,"value":448},{"type":54,"tag":109,"props":2253,"children":2254},{"style":182},[2255],{"type":60,"value":535},{"type":54,"tag":109,"props":2257,"children":2258},{"style":176},[2259],{"type":60,"value":2260}," Activity",{"type":54,"tag":109,"props":2262,"children":2263},{"style":182},[2264],{"type":60,"value":674},{"type":54,"tag":109,"props":2266,"children":2267},{"style":176},[2268],{"type":60,"value":2269}," ActivityTypes",{"type":54,"tag":109,"props":2271,"children":2272},{"style":182},[2273],{"type":60,"value":545},{"type":54,"tag":109,"props":2275,"children":2276},{"style":445},[2277],{"type":60,"value":503},{"type":54,"tag":109,"props":2279,"children":2280},{"style":182},[2281],{"type":60,"value":508},{"type":54,"tag":109,"props":2283,"children":2284},{"style":122},[2285],{"type":60,"value":2286},"@microsoft\u002Fagents-activity",{"type":54,"tag":109,"props":2288,"children":2289},{"style":182},[2290],{"type":60,"value":518},{"type":54,"tag":109,"props":2292,"children":2293},{"style":182},[2294],{"type":60,"value":523},{"type":54,"tag":109,"props":2296,"children":2297},{"class":111,"line":143},[2298,2302],{"type":54,"tag":109,"props":2299,"children":2300},{"style":445},[2301],{"type":60,"value":448},{"type":54,"tag":109,"props":2303,"children":2304},{"style":182},[2305],{"type":60,"value":453},{"type":54,"tag":109,"props":2307,"children":2308},{"class":111,"line":216},[2309,2313],{"type":54,"tag":109,"props":2310,"children":2311},{"style":176},[2312],{"type":60,"value":461},{"type":54,"tag":109,"props":2314,"children":2315},{"style":182},[2316],{"type":60,"value":466},{"type":54,"tag":109,"props":2318,"children":2319},{"class":111,"line":238},[2320,2324],{"type":54,"tag":109,"props":2321,"children":2322},{"style":176},[2323],{"type":60,"value":474},{"type":54,"tag":109,"props":2325,"children":2326},{"style":182},[2327],{"type":60,"value":466},{"type":54,"tag":109,"props":2329,"children":2330},{"class":111,"line":256},[2331,2335],{"type":54,"tag":109,"props":2332,"children":2333},{"style":176},[2334],{"type":60,"value":486},{"type":54,"tag":109,"props":2336,"children":2337},{"style":182},[2338],{"type":60,"value":466},{"type":54,"tag":109,"props":2340,"children":2341},{"class":111,"line":266},[2342,2346,2350,2354,2358,2362],{"type":54,"tag":109,"props":2343,"children":2344},{"style":182},[2345],{"type":60,"value":498},{"type":54,"tag":109,"props":2347,"children":2348},{"style":445},[2349],{"type":60,"value":503},{"type":54,"tag":109,"props":2351,"children":2352},{"style":182},[2353],{"type":60,"value":508},{"type":54,"tag":109,"props":2355,"children":2356},{"style":122},[2357],{"type":60,"value":513},{"type":54,"tag":109,"props":2359,"children":2360},{"style":182},[2361],{"type":60,"value":518},{"type":54,"tag":109,"props":2363,"children":2364},{"style":182},[2365],{"type":60,"value":523},{"type":54,"tag":109,"props":2367,"children":2368},{"class":111,"line":288},[2369],{"type":54,"tag":109,"props":2370,"children":2371},{"emptyLinePlaceholder":260},[2372],{"type":60,"value":263},{"type":54,"tag":109,"props":2374,"children":2375},{"class":111,"line":310},[2376,2380,2384,2388,2392,2396,2400,2404,2408,2412],{"type":54,"tag":109,"props":2377,"children":2378},{"style":579},[2379],{"type":60,"value":582},{"type":54,"tag":109,"props":2381,"children":2382},{"style":176},[2383],{"type":60,"value":587},{"type":54,"tag":109,"props":2385,"children":2386},{"style":182},[2387],{"type":60,"value":185},{"type":54,"tag":109,"props":2389,"children":2390},{"style":182},[2391],{"type":60,"value":596},{"type":54,"tag":109,"props":2393,"children":2394},{"style":599},[2395],{"type":60,"value":602},{"type":54,"tag":109,"props":2397,"children":2398},{"style":182},[2399],{"type":60,"value":607},{"type":54,"tag":109,"props":2401,"children":2402},{"style":116},[2403],{"type":60,"value":612},{"type":54,"tag":109,"props":2405,"children":2406},{"style":182},[2407],{"type":60,"value":617},{"type":54,"tag":109,"props":2409,"children":2410},{"style":176},[2411],{"type":60,"value":622},{"type":54,"tag":109,"props":2413,"children":2414},{"style":182},[2415],{"type":60,"value":523},{"type":54,"tag":109,"props":2417,"children":2418},{"class":111,"line":332},[2419],{"type":54,"tag":109,"props":2420,"children":2421},{"emptyLinePlaceholder":260},[2422],{"type":60,"value":263},{"type":54,"tag":109,"props":2424,"children":2425},{"class":111,"line":340},[2426,2430,2434,2439,2443,2447,2452,2456,2460,2464,2468,2472,2476,2480,2484,2488],{"type":54,"tag":109,"props":2427,"children":2428},{"style":176},[2429],{"type":60,"value":641},{"type":54,"tag":109,"props":2431,"children":2432},{"style":182},[2433],{"type":60,"value":646},{"type":54,"tag":109,"props":2435,"children":2436},{"style":599},[2437],{"type":60,"value":2438},"onActivity",{"type":54,"tag":109,"props":2440,"children":2441},{"style":176},[2442],{"type":60,"value":656},{"type":54,"tag":109,"props":2444,"children":2445},{"style":182},[2446],{"type":60,"value":518},{"type":54,"tag":109,"props":2448,"children":2449},{"style":122},[2450],{"type":60,"value":2451},"invoke",{"type":54,"tag":109,"props":2453,"children":2454},{"style":182},[2455],{"type":60,"value":518},{"type":54,"tag":109,"props":2457,"children":2458},{"style":182},[2459],{"type":60,"value":674},{"type":54,"tag":109,"props":2461,"children":2462},{"style":579},[2463],{"type":60,"value":679},{"type":54,"tag":109,"props":2465,"children":2466},{"style":182},[2467],{"type":60,"value":684},{"type":54,"tag":109,"props":2469,"children":2470},{"style":687},[2471],{"type":60,"value":690},{"type":54,"tag":109,"props":2473,"children":2474},{"style":182},[2475],{"type":60,"value":695},{"type":54,"tag":109,"props":2477,"children":2478},{"style":116},[2479],{"type":60,"value":700},{"type":54,"tag":109,"props":2481,"children":2482},{"style":182},[2483],{"type":60,"value":705},{"type":54,"tag":109,"props":2485,"children":2486},{"style":579},[2487],{"type":60,"value":710},{"type":54,"tag":109,"props":2489,"children":2490},{"style":182},[2491],{"type":60,"value":453},{"type":54,"tag":109,"props":2493,"children":2494},{"class":111,"line":362},[2495,2499,2504,2508,2512,2516,2521,2525],{"type":54,"tag":109,"props":2496,"children":2497},{"style":579},[2498],{"type":60,"value":1608},{"type":54,"tag":109,"props":2500,"children":2501},{"style":176},[2502],{"type":60,"value":2503}," invokeResponse",{"type":54,"tag":109,"props":2505,"children":2506},{"style":182},[2507],{"type":60,"value":1626},{"type":54,"tag":109,"props":2509,"children":2510},{"style":176},[2511],{"type":60,"value":2260},{"type":54,"tag":109,"props":2513,"children":2514},{"style":182},[2515],{"type":60,"value":646},{"type":54,"tag":109,"props":2517,"children":2518},{"style":599},[2519],{"type":60,"value":2520},"fromObject",{"type":54,"tag":109,"props":2522,"children":2523},{"style":739},[2524],{"type":60,"value":656},{"type":54,"tag":109,"props":2526,"children":2527},{"style":182},[2528],{"type":60,"value":1416},{"type":54,"tag":109,"props":2530,"children":2531},{"class":111,"line":384},[2532,2536,2540,2544,2548,2553],{"type":54,"tag":109,"props":2533,"children":2534},{"style":739},[2535],{"type":60,"value":1424},{"type":54,"tag":109,"props":2537,"children":2538},{"style":182},[2539],{"type":60,"value":695},{"type":54,"tag":109,"props":2541,"children":2542},{"style":176},[2543],{"type":60,"value":2269},{"type":54,"tag":109,"props":2545,"children":2546},{"style":182},[2547],{"type":60,"value":646},{"type":54,"tag":109,"props":2549,"children":2550},{"style":176},[2551],{"type":60,"value":2552},"InvokeResponse",{"type":54,"tag":109,"props":2554,"children":2555},{"style":182},[2556],{"type":60,"value":466},{"type":54,"tag":109,"props":2558,"children":2559},{"class":111,"line":406},[2560,2565,2569,2573,2578,2582,2587],{"type":54,"tag":109,"props":2561,"children":2562},{"style":739},[2563],{"type":60,"value":2564},"    value",{"type":54,"tag":109,"props":2566,"children":2567},{"style":182},[2568],{"type":60,"value":695},{"type":54,"tag":109,"props":2570,"children":2571},{"style":182},[2572],{"type":60,"value":535},{"type":54,"tag":109,"props":2574,"children":2575},{"style":739},[2576],{"type":60,"value":2577}," status",{"type":54,"tag":109,"props":2579,"children":2580},{"style":182},[2581],{"type":60,"value":695},{"type":54,"tag":109,"props":2583,"children":2584},{"style":1928},[2585],{"type":60,"value":2586}," 200",{"type":54,"tag":109,"props":2588,"children":2589},{"style":182},[2590],{"type":60,"value":2591}," },\n",{"type":54,"tag":109,"props":2593,"children":2594},{"class":111,"line":787},[2595,2599,2603],{"type":54,"tag":109,"props":2596,"children":2597},{"style":182},[2598],{"type":60,"value":1521},{"type":54,"tag":109,"props":2600,"children":2601},{"style":739},[2602],{"type":60,"value":705},{"type":54,"tag":109,"props":2604,"children":2605},{"style":182},[2606],{"type":60,"value":523},{"type":54,"tag":109,"props":2608,"children":2609},{"class":111,"line":857},[2610],{"type":54,"tag":109,"props":2611,"children":2612},{"emptyLinePlaceholder":260},[2613],{"type":60,"value":263},{"type":54,"tag":109,"props":2615,"children":2616},{"class":111,"line":930},[2617,2621,2625,2629,2633,2637,2642,2646],{"type":54,"tag":109,"props":2618,"children":2619},{"style":445},[2620],{"type":60,"value":722},{"type":54,"tag":109,"props":2622,"children":2623},{"style":176},[2624],{"type":60,"value":727},{"type":54,"tag":109,"props":2626,"children":2627},{"style":182},[2628],{"type":60,"value":646},{"type":54,"tag":109,"props":2630,"children":2631},{"style":599},[2632],{"type":60,"value":736},{"type":54,"tag":109,"props":2634,"children":2635},{"style":739},[2636],{"type":60,"value":656},{"type":54,"tag":109,"props":2638,"children":2639},{"style":176},[2640],{"type":60,"value":2641},"invokeResponse",{"type":54,"tag":109,"props":2643,"children":2644},{"style":739},[2645],{"type":60,"value":705},{"type":54,"tag":109,"props":2647,"children":2648},{"style":182},[2649],{"type":60,"value":523},{"type":54,"tag":109,"props":2651,"children":2652},{"class":111,"line":946},[2653,2657,2661,2665,2669,2673,2677,2682,2686,2690],{"type":54,"tag":109,"props":2654,"children":2655},{"style":445},[2656],{"type":60,"value":722},{"type":54,"tag":109,"props":2658,"children":2659},{"style":176},[2660],{"type":60,"value":727},{"type":54,"tag":109,"props":2662,"children":2663},{"style":182},[2664],{"type":60,"value":646},{"type":54,"tag":109,"props":2666,"children":2667},{"style":599},[2668],{"type":60,"value":736},{"type":54,"tag":109,"props":2670,"children":2671},{"style":739},[2672],{"type":60,"value":656},{"type":54,"tag":109,"props":2674,"children":2675},{"style":182},[2676],{"type":60,"value":518},{"type":54,"tag":109,"props":2678,"children":2679},{"style":122},[2680],{"type":60,"value":2681},"Thanks for submitting your feedback.",{"type":54,"tag":109,"props":2683,"children":2684},{"style":182},[2685],{"type":60,"value":518},{"type":54,"tag":109,"props":2687,"children":2688},{"style":739},[2689],{"type":60,"value":705},{"type":54,"tag":109,"props":2691,"children":2692},{"style":182},[2693],{"type":60,"value":523},{"type":54,"tag":109,"props":2695,"children":2696},{"class":111,"line":954},[2697,2701,2705],{"type":54,"tag":109,"props":2698,"children":2699},{"style":182},[2700],{"type":60,"value":498},{"type":54,"tag":109,"props":2702,"children":2703},{"style":176},[2704],{"type":60,"value":705},{"type":54,"tag":109,"props":2706,"children":2707},{"style":182},[2708],{"type":60,"value":523},{"type":54,"tag":69,"props":2710,"children":2712},{"id":2711},"copilot-studio-client-direct-to-engine",[2713],{"type":60,"value":2714},"Copilot Studio client (Direct to Engine)",{"type":54,"tag":97,"props":2716,"children":2718},{"className":434,"code":2717,"language":14,"meta":102,"style":102},"import { CopilotStudioClient } from \"@microsoft\u002Fagents-copilotstudio-client\";\n\nconst settings = {\n  environmentId: process.env.COPILOT_ENVIRONMENT_ID!,\n  schemaName: process.env.COPILOT_SCHEMA_NAME!,\n  clientId: process.env.COPILOT_CLIENT_ID!,\n};\n\nconst tokenProvider = async (): Promise\u003Cstring> => {\n  return process.env.COPILOT_BEARER_TOKEN!;\n};\n\nconst client = new CopilotStudioClient(settings, tokenProvider);\n\nconst conversation = await client.startConversationAsync();\nconst reply = await client.askQuestionAsync(\"Hello!\", conversation.id);\nconsole.log(reply);\n",[2719],{"type":54,"tag":105,"props":2720,"children":2721},{"__ignoreMap":102},[2722,2763,2770,2790,2828,2864,2900,2908,2915,2966,2999,3006,3013,3055,3062,3104,3176],{"type":54,"tag":109,"props":2723,"children":2724},{"class":111,"line":112},[2725,2729,2733,2738,2742,2746,2750,2755,2759],{"type":54,"tag":109,"props":2726,"children":2727},{"style":445},[2728],{"type":60,"value":448},{"type":54,"tag":109,"props":2730,"children":2731},{"style":182},[2732],{"type":60,"value":535},{"type":54,"tag":109,"props":2734,"children":2735},{"style":176},[2736],{"type":60,"value":2737}," CopilotStudioClient",{"type":54,"tag":109,"props":2739,"children":2740},{"style":182},[2741],{"type":60,"value":545},{"type":54,"tag":109,"props":2743,"children":2744},{"style":445},[2745],{"type":60,"value":503},{"type":54,"tag":109,"props":2747,"children":2748},{"style":182},[2749],{"type":60,"value":508},{"type":54,"tag":109,"props":2751,"children":2752},{"style":122},[2753],{"type":60,"value":2754},"@microsoft\u002Fagents-copilotstudio-client",{"type":54,"tag":109,"props":2756,"children":2757},{"style":182},[2758],{"type":60,"value":518},{"type":54,"tag":109,"props":2760,"children":2761},{"style":182},[2762],{"type":60,"value":523},{"type":54,"tag":109,"props":2764,"children":2765},{"class":111,"line":143},[2766],{"type":54,"tag":109,"props":2767,"children":2768},{"emptyLinePlaceholder":260},[2769],{"type":60,"value":263},{"type":54,"tag":109,"props":2771,"children":2772},{"class":111,"line":216},[2773,2777,2782,2786],{"type":54,"tag":109,"props":2774,"children":2775},{"style":579},[2776],{"type":60,"value":582},{"type":54,"tag":109,"props":2778,"children":2779},{"style":176},[2780],{"type":60,"value":2781}," settings ",{"type":54,"tag":109,"props":2783,"children":2784},{"style":182},[2785],{"type":60,"value":185},{"type":54,"tag":109,"props":2787,"children":2788},{"style":182},[2789],{"type":60,"value":453},{"type":54,"tag":109,"props":2791,"children":2792},{"class":111,"line":238},[2793,2798,2802,2807,2811,2815,2819,2823],{"type":54,"tag":109,"props":2794,"children":2795},{"style":739},[2796],{"type":60,"value":2797},"  environmentId",{"type":54,"tag":109,"props":2799,"children":2800},{"style":182},[2801],{"type":60,"value":695},{"type":54,"tag":109,"props":2803,"children":2804},{"style":176},[2805],{"type":60,"value":2806}," process",{"type":54,"tag":109,"props":2808,"children":2809},{"style":182},[2810],{"type":60,"value":646},{"type":54,"tag":109,"props":2812,"children":2813},{"style":176},[2814],{"type":60,"value":1673},{"type":54,"tag":109,"props":2816,"children":2817},{"style":182},[2818],{"type":60,"value":646},{"type":54,"tag":109,"props":2820,"children":2821},{"style":176},[2822],{"type":60,"value":346},{"type":54,"tag":109,"props":2824,"children":2825},{"style":182},[2826],{"type":60,"value":2827},"!,\n",{"type":54,"tag":109,"props":2829,"children":2830},{"class":111,"line":256},[2831,2836,2840,2844,2848,2852,2856,2860],{"type":54,"tag":109,"props":2832,"children":2833},{"style":739},[2834],{"type":60,"value":2835},"  schemaName",{"type":54,"tag":109,"props":2837,"children":2838},{"style":182},[2839],{"type":60,"value":695},{"type":54,"tag":109,"props":2841,"children":2842},{"style":176},[2843],{"type":60,"value":2806},{"type":54,"tag":109,"props":2845,"children":2846},{"style":182},[2847],{"type":60,"value":646},{"type":54,"tag":109,"props":2849,"children":2850},{"style":176},[2851],{"type":60,"value":1673},{"type":54,"tag":109,"props":2853,"children":2854},{"style":182},[2855],{"type":60,"value":646},{"type":54,"tag":109,"props":2857,"children":2858},{"style":176},[2859],{"type":60,"value":368},{"type":54,"tag":109,"props":2861,"children":2862},{"style":182},[2863],{"type":60,"value":2827},{"type":54,"tag":109,"props":2865,"children":2866},{"class":111,"line":266},[2867,2872,2876,2880,2884,2888,2892,2896],{"type":54,"tag":109,"props":2868,"children":2869},{"style":739},[2870],{"type":60,"value":2871},"  clientId",{"type":54,"tag":109,"props":2873,"children":2874},{"style":182},[2875],{"type":60,"value":695},{"type":54,"tag":109,"props":2877,"children":2878},{"style":176},[2879],{"type":60,"value":2806},{"type":54,"tag":109,"props":2881,"children":2882},{"style":182},[2883],{"type":60,"value":646},{"type":54,"tag":109,"props":2885,"children":2886},{"style":176},[2887],{"type":60,"value":1673},{"type":54,"tag":109,"props":2889,"children":2890},{"style":182},[2891],{"type":60,"value":646},{"type":54,"tag":109,"props":2893,"children":2894},{"style":176},[2895],{"type":60,"value":390},{"type":54,"tag":109,"props":2897,"children":2898},{"style":182},[2899],{"type":60,"value":2827},{"type":54,"tag":109,"props":2901,"children":2902},{"class":111,"line":288},[2903],{"type":54,"tag":109,"props":2904,"children":2905},{"style":182},[2906],{"type":60,"value":2907},"};\n",{"type":54,"tag":109,"props":2909,"children":2910},{"class":111,"line":310},[2911],{"type":54,"tag":109,"props":2912,"children":2913},{"emptyLinePlaceholder":260},[2914],{"type":60,"value":263},{"type":54,"tag":109,"props":2916,"children":2917},{"class":111,"line":332},[2918,2922,2927,2931,2935,2940,2945,2949,2954,2958,2962],{"type":54,"tag":109,"props":2919,"children":2920},{"style":579},[2921],{"type":60,"value":582},{"type":54,"tag":109,"props":2923,"children":2924},{"style":176},[2925],{"type":60,"value":2926}," tokenProvider ",{"type":54,"tag":109,"props":2928,"children":2929},{"style":182},[2930],{"type":60,"value":185},{"type":54,"tag":109,"props":2932,"children":2933},{"style":579},[2934],{"type":60,"value":679},{"type":54,"tag":109,"props":2936,"children":2937},{"style":182},[2938],{"type":60,"value":2939}," ():",{"type":54,"tag":109,"props":2941,"children":2942},{"style":116},[2943],{"type":60,"value":2944}," Promise",{"type":54,"tag":109,"props":2946,"children":2947},{"style":182},[2948],{"type":60,"value":607},{"type":54,"tag":109,"props":2950,"children":2951},{"style":116},[2952],{"type":60,"value":2953},"string",{"type":54,"tag":109,"props":2955,"children":2956},{"style":182},[2957],{"type":60,"value":617},{"type":54,"tag":109,"props":2959,"children":2960},{"style":579},[2961],{"type":60,"value":710},{"type":54,"tag":109,"props":2963,"children":2964},{"style":182},[2965],{"type":60,"value":453},{"type":54,"tag":109,"props":2967,"children":2968},{"class":111,"line":340},[2969,2974,2978,2982,2986,2990,2994],{"type":54,"tag":109,"props":2970,"children":2971},{"style":445},[2972],{"type":60,"value":2973},"  return",{"type":54,"tag":109,"props":2975,"children":2976},{"style":176},[2977],{"type":60,"value":2806},{"type":54,"tag":109,"props":2979,"children":2980},{"style":182},[2981],{"type":60,"value":646},{"type":54,"tag":109,"props":2983,"children":2984},{"style":176},[2985],{"type":60,"value":1673},{"type":54,"tag":109,"props":2987,"children":2988},{"style":182},[2989],{"type":60,"value":646},{"type":54,"tag":109,"props":2991,"children":2992},{"style":176},[2993],{"type":60,"value":412},{"type":54,"tag":109,"props":2995,"children":2996},{"style":182},[2997],{"type":60,"value":2998},"!;\n",{"type":54,"tag":109,"props":3000,"children":3001},{"class":111,"line":362},[3002],{"type":54,"tag":109,"props":3003,"children":3004},{"style":182},[3005],{"type":60,"value":2907},{"type":54,"tag":109,"props":3007,"children":3008},{"class":111,"line":384},[3009],{"type":54,"tag":109,"props":3010,"children":3011},{"emptyLinePlaceholder":260},[3012],{"type":60,"value":263},{"type":54,"tag":109,"props":3014,"children":3015},{"class":111,"line":406},[3016,3020,3025,3029,3033,3037,3042,3046,3051],{"type":54,"tag":109,"props":3017,"children":3018},{"style":579},[3019],{"type":60,"value":582},{"type":54,"tag":109,"props":3021,"children":3022},{"style":176},[3023],{"type":60,"value":3024}," client ",{"type":54,"tag":109,"props":3026,"children":3027},{"style":182},[3028],{"type":60,"value":185},{"type":54,"tag":109,"props":3030,"children":3031},{"style":182},[3032],{"type":60,"value":596},{"type":54,"tag":109,"props":3034,"children":3035},{"style":599},[3036],{"type":60,"value":2737},{"type":54,"tag":109,"props":3038,"children":3039},{"style":176},[3040],{"type":60,"value":3041},"(settings",{"type":54,"tag":109,"props":3043,"children":3044},{"style":182},[3045],{"type":60,"value":674},{"type":54,"tag":109,"props":3047,"children":3048},{"style":176},[3049],{"type":60,"value":3050}," tokenProvider)",{"type":54,"tag":109,"props":3052,"children":3053},{"style":182},[3054],{"type":60,"value":523},{"type":54,"tag":109,"props":3056,"children":3057},{"class":111,"line":787},[3058],{"type":54,"tag":109,"props":3059,"children":3060},{"emptyLinePlaceholder":260},[3061],{"type":60,"value":263},{"type":54,"tag":109,"props":3063,"children":3064},{"class":111,"line":857},[3065,3069,3074,3078,3082,3087,3091,3096,3100],{"type":54,"tag":109,"props":3066,"children":3067},{"style":579},[3068],{"type":60,"value":582},{"type":54,"tag":109,"props":3070,"children":3071},{"style":176},[3072],{"type":60,"value":3073}," conversation ",{"type":54,"tag":109,"props":3075,"children":3076},{"style":182},[3077],{"type":60,"value":185},{"type":54,"tag":109,"props":3079,"children":3080},{"style":445},[3081],{"type":60,"value":1818},{"type":54,"tag":109,"props":3083,"children":3084},{"style":176},[3085],{"type":60,"value":3086}," client",{"type":54,"tag":109,"props":3088,"children":3089},{"style":182},[3090],{"type":60,"value":646},{"type":54,"tag":109,"props":3092,"children":3093},{"style":599},[3094],{"type":60,"value":3095},"startConversationAsync",{"type":54,"tag":109,"props":3097,"children":3098},{"style":176},[3099],{"type":60,"value":622},{"type":54,"tag":109,"props":3101,"children":3102},{"style":182},[3103],{"type":60,"value":523},{"type":54,"tag":109,"props":3105,"children":3106},{"class":111,"line":930},[3107,3111,3116,3120,3124,3128,3132,3137,3141,3145,3150,3154,3158,3163,3167,3172],{"type":54,"tag":109,"props":3108,"children":3109},{"style":579},[3110],{"type":60,"value":582},{"type":54,"tag":109,"props":3112,"children":3113},{"style":176},[3114],{"type":60,"value":3115}," reply ",{"type":54,"tag":109,"props":3117,"children":3118},{"style":182},[3119],{"type":60,"value":185},{"type":54,"tag":109,"props":3121,"children":3122},{"style":445},[3123],{"type":60,"value":1818},{"type":54,"tag":109,"props":3125,"children":3126},{"style":176},[3127],{"type":60,"value":3086},{"type":54,"tag":109,"props":3129,"children":3130},{"style":182},[3131],{"type":60,"value":646},{"type":54,"tag":109,"props":3133,"children":3134},{"style":599},[3135],{"type":60,"value":3136},"askQuestionAsync",{"type":54,"tag":109,"props":3138,"children":3139},{"style":176},[3140],{"type":60,"value":656},{"type":54,"tag":109,"props":3142,"children":3143},{"style":182},[3144],{"type":60,"value":518},{"type":54,"tag":109,"props":3146,"children":3147},{"style":122},[3148],{"type":60,"value":3149},"Hello!",{"type":54,"tag":109,"props":3151,"children":3152},{"style":182},[3153],{"type":60,"value":518},{"type":54,"tag":109,"props":3155,"children":3156},{"style":182},[3157],{"type":60,"value":674},{"type":54,"tag":109,"props":3159,"children":3160},{"style":176},[3161],{"type":60,"value":3162}," conversation",{"type":54,"tag":109,"props":3164,"children":3165},{"style":182},[3166],{"type":60,"value":646},{"type":54,"tag":109,"props":3168,"children":3169},{"style":176},[3170],{"type":60,"value":3171},"id)",{"type":54,"tag":109,"props":3173,"children":3174},{"style":182},[3175],{"type":60,"value":523},{"type":54,"tag":109,"props":3177,"children":3178},{"class":111,"line":946},[3179,3184,3188,3193,3198],{"type":54,"tag":109,"props":3180,"children":3181},{"style":176},[3182],{"type":60,"value":3183},"console",{"type":54,"tag":109,"props":3185,"children":3186},{"style":182},[3187],{"type":60,"value":646},{"type":54,"tag":109,"props":3189,"children":3190},{"style":599},[3191],{"type":60,"value":3192},"log",{"type":54,"tag":109,"props":3194,"children":3195},{"style":176},[3196],{"type":60,"value":3197},"(reply)",{"type":54,"tag":109,"props":3199,"children":3200},{"style":182},[3201],{"type":60,"value":523},{"type":54,"tag":69,"props":3203,"children":3205},{"id":3204},"copilot-studio-webchat-integration",[3206],{"type":60,"value":3207},"Copilot Studio WebChat integration",{"type":54,"tag":97,"props":3209,"children":3211},{"className":434,"code":3210,"language":14,"meta":102,"style":102},"import { CopilotStudioWebChat } from \"@microsoft\u002Fagents-copilotstudio-client\";\n\nconst directLine = CopilotStudioWebChat.createConnection(client, {\n  showTyping: true,\n});\n\nwindow.WebChat.renderWebChat(\n  {\n    directLine,\n  },\n  document.getElementById(\"webchat\")!,\n);\n",[3212],{"type":54,"tag":105,"props":3213,"children":3214},{"__ignoreMap":102},[3215,3255,3262,3304,3325,3340,3347,3378,3386,3398,3406,3448],{"type":54,"tag":109,"props":3216,"children":3217},{"class":111,"line":112},[3218,3222,3226,3231,3235,3239,3243,3247,3251],{"type":54,"tag":109,"props":3219,"children":3220},{"style":445},[3221],{"type":60,"value":448},{"type":54,"tag":109,"props":3223,"children":3224},{"style":182},[3225],{"type":60,"value":535},{"type":54,"tag":109,"props":3227,"children":3228},{"style":176},[3229],{"type":60,"value":3230}," CopilotStudioWebChat",{"type":54,"tag":109,"props":3232,"children":3233},{"style":182},[3234],{"type":60,"value":545},{"type":54,"tag":109,"props":3236,"children":3237},{"style":445},[3238],{"type":60,"value":503},{"type":54,"tag":109,"props":3240,"children":3241},{"style":182},[3242],{"type":60,"value":508},{"type":54,"tag":109,"props":3244,"children":3245},{"style":122},[3246],{"type":60,"value":2754},{"type":54,"tag":109,"props":3248,"children":3249},{"style":182},[3250],{"type":60,"value":518},{"type":54,"tag":109,"props":3252,"children":3253},{"style":182},[3254],{"type":60,"value":523},{"type":54,"tag":109,"props":3256,"children":3257},{"class":111,"line":143},[3258],{"type":54,"tag":109,"props":3259,"children":3260},{"emptyLinePlaceholder":260},[3261],{"type":60,"value":263},{"type":54,"tag":109,"props":3263,"children":3264},{"class":111,"line":216},[3265,3269,3274,3278,3282,3286,3291,3296,3300],{"type":54,"tag":109,"props":3266,"children":3267},{"style":579},[3268],{"type":60,"value":582},{"type":54,"tag":109,"props":3270,"children":3271},{"style":176},[3272],{"type":60,"value":3273}," directLine ",{"type":54,"tag":109,"props":3275,"children":3276},{"style":182},[3277],{"type":60,"value":185},{"type":54,"tag":109,"props":3279,"children":3280},{"style":176},[3281],{"type":60,"value":3230},{"type":54,"tag":109,"props":3283,"children":3284},{"style":182},[3285],{"type":60,"value":646},{"type":54,"tag":109,"props":3287,"children":3288},{"style":599},[3289],{"type":60,"value":3290},"createConnection",{"type":54,"tag":109,"props":3292,"children":3293},{"style":176},[3294],{"type":60,"value":3295},"(client",{"type":54,"tag":109,"props":3297,"children":3298},{"style":182},[3299],{"type":60,"value":674},{"type":54,"tag":109,"props":3301,"children":3302},{"style":182},[3303],{"type":60,"value":453},{"type":54,"tag":109,"props":3305,"children":3306},{"class":111,"line":238},[3307,3312,3316,3321],{"type":54,"tag":109,"props":3308,"children":3309},{"style":739},[3310],{"type":60,"value":3311},"  showTyping",{"type":54,"tag":109,"props":3313,"children":3314},{"style":182},[3315],{"type":60,"value":695},{"type":54,"tag":109,"props":3317,"children":3318},{"style":1332},[3319],{"type":60,"value":3320}," true",{"type":54,"tag":109,"props":3322,"children":3323},{"style":182},[3324],{"type":60,"value":466},{"type":54,"tag":109,"props":3326,"children":3327},{"class":111,"line":256},[3328,3332,3336],{"type":54,"tag":109,"props":3329,"children":3330},{"style":182},[3331],{"type":60,"value":498},{"type":54,"tag":109,"props":3333,"children":3334},{"style":176},[3335],{"type":60,"value":705},{"type":54,"tag":109,"props":3337,"children":3338},{"style":182},[3339],{"type":60,"value":523},{"type":54,"tag":109,"props":3341,"children":3342},{"class":111,"line":266},[3343],{"type":54,"tag":109,"props":3344,"children":3345},{"emptyLinePlaceholder":260},[3346],{"type":60,"value":263},{"type":54,"tag":109,"props":3348,"children":3349},{"class":111,"line":288},[3350,3355,3359,3364,3368,3373],{"type":54,"tag":109,"props":3351,"children":3352},{"style":176},[3353],{"type":60,"value":3354},"window",{"type":54,"tag":109,"props":3356,"children":3357},{"style":182},[3358],{"type":60,"value":646},{"type":54,"tag":109,"props":3360,"children":3361},{"style":176},[3362],{"type":60,"value":3363},"WebChat",{"type":54,"tag":109,"props":3365,"children":3366},{"style":182},[3367],{"type":60,"value":646},{"type":54,"tag":109,"props":3369,"children":3370},{"style":599},[3371],{"type":60,"value":3372},"renderWebChat",{"type":54,"tag":109,"props":3374,"children":3375},{"style":176},[3376],{"type":60,"value":3377},"(\n",{"type":54,"tag":109,"props":3379,"children":3380},{"class":111,"line":310},[3381],{"type":54,"tag":109,"props":3382,"children":3383},{"style":182},[3384],{"type":60,"value":3385},"  {\n",{"type":54,"tag":109,"props":3387,"children":3388},{"class":111,"line":332},[3389,3394],{"type":54,"tag":109,"props":3390,"children":3391},{"style":176},[3392],{"type":60,"value":3393},"    directLine",{"type":54,"tag":109,"props":3395,"children":3396},{"style":182},[3397],{"type":60,"value":466},{"type":54,"tag":109,"props":3399,"children":3400},{"class":111,"line":340},[3401],{"type":54,"tag":109,"props":3402,"children":3403},{"style":182},[3404],{"type":60,"value":3405},"  },\n",{"type":54,"tag":109,"props":3407,"children":3408},{"class":111,"line":362},[3409,3414,3418,3423,3427,3431,3436,3440,3444],{"type":54,"tag":109,"props":3410,"children":3411},{"style":176},[3412],{"type":60,"value":3413},"  document",{"type":54,"tag":109,"props":3415,"children":3416},{"style":182},[3417],{"type":60,"value":646},{"type":54,"tag":109,"props":3419,"children":3420},{"style":599},[3421],{"type":60,"value":3422},"getElementById",{"type":54,"tag":109,"props":3424,"children":3425},{"style":176},[3426],{"type":60,"value":656},{"type":54,"tag":109,"props":3428,"children":3429},{"style":182},[3430],{"type":60,"value":518},{"type":54,"tag":109,"props":3432,"children":3433},{"style":122},[3434],{"type":60,"value":3435},"webchat",{"type":54,"tag":109,"props":3437,"children":3438},{"style":182},[3439],{"type":60,"value":518},{"type":54,"tag":109,"props":3441,"children":3442},{"style":176},[3443],{"type":60,"value":705},{"type":54,"tag":109,"props":3445,"children":3446},{"style":182},[3447],{"type":60,"value":2827},{"type":54,"tag":109,"props":3449,"children":3450},{"class":111,"line":384},[3451,3455],{"type":54,"tag":109,"props":3452,"children":3453},{"style":176},[3454],{"type":60,"value":705},{"type":54,"tag":109,"props":3456,"children":3457},{"style":182},[3458],{"type":60,"value":523},{"type":54,"tag":69,"props":3460,"children":3462},{"id":3461},"best-practices",[3463],{"type":60,"value":3464},"Best Practices",{"type":54,"tag":3466,"props":3467,"children":3468},"ol",{},[3469,3474,3479,3484,3489],{"type":54,"tag":80,"props":3470,"children":3471},{},[3472],{"type":60,"value":3473},"Use AgentApplication for routing and keep handlers focused on one responsibility.",{"type":54,"tag":80,"props":3475,"children":3476},{},[3477],{"type":60,"value":3478},"Prefer streamingResponse for long-running completions and call endStream in finally blocks.",{"type":54,"tag":80,"props":3480,"children":3481},{},[3482],{"type":60,"value":3483},"Keep secrets out of source code; load tokens from environment variables or secure stores.",{"type":54,"tag":80,"props":3485,"children":3486},{},[3487],{"type":60,"value":3488},"Reuse CopilotStudioClient instances and cache tokens in your token provider.",{"type":54,"tag":80,"props":3490,"children":3491},{},[3492],{"type":60,"value":3493},"Validate invoke payloads before logging or persisting feedback.",{"type":54,"tag":69,"props":3495,"children":3497},{"id":3496},"reference-links",[3498],{"type":60,"value":3499},"Reference Links",{"type":54,"tag":3501,"props":3502,"children":3503},"table",{},[3504,3523],{"type":54,"tag":3505,"props":3506,"children":3507},"thead",{},[3508],{"type":54,"tag":3509,"props":3510,"children":3511},"tr",{},[3512,3518],{"type":54,"tag":3513,"props":3514,"children":3515},"th",{},[3516],{"type":60,"value":3517},"Resource",{"type":54,"tag":3513,"props":3519,"children":3520},{},[3521],{"type":60,"value":3522},"URL",{"type":54,"tag":3524,"props":3525,"children":3526},"tbody",{},[3527,3547,3564,3580,3596,3613],{"type":54,"tag":3509,"props":3528,"children":3529},{},[3530,3536],{"type":54,"tag":3531,"props":3532,"children":3533},"td",{},[3534],{"type":60,"value":3535},"Microsoft 365 Agents SDK",{"type":54,"tag":3531,"props":3537,"children":3538},{},[3539],{"type":54,"tag":3540,"props":3541,"children":3545},"a",{"href":3542,"rel":3543},"https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fmicrosoft-365\u002Fagents-sdk\u002F",[3544],"nofollow",[3546],{"type":60,"value":3542},{"type":54,"tag":3509,"props":3548,"children":3549},{},[3550,3555],{"type":54,"tag":3531,"props":3551,"children":3552},{},[3553],{"type":60,"value":3554},"JavaScript SDK overview",{"type":54,"tag":3531,"props":3556,"children":3557},{},[3558],{"type":54,"tag":3540,"props":3559,"children":3562},{"href":3560,"rel":3561},"https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fjavascript\u002Fapi\u002Foverview\u002Fagents-overview?view=agents-sdk-js-latest",[3544],[3563],{"type":60,"value":3560},{"type":54,"tag":3509,"props":3565,"children":3566},{},[3567,3571],{"type":54,"tag":3531,"props":3568,"children":3569},{},[3570],{"type":60,"value":558},{"type":54,"tag":3531,"props":3572,"children":3573},{},[3574],{"type":54,"tag":3540,"props":3575,"children":3578},{"href":3576,"rel":3577},"https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fjavascript\u002Fapi\u002F%40microsoft\u002Fagents-hosting-express?view=agents-sdk-js-latest",[3544],[3579],{"type":60,"value":3576},{"type":54,"tag":3509,"props":3581,"children":3582},{},[3583,3587],{"type":54,"tag":3531,"props":3584,"children":3585},{},[3586],{"type":60,"value":2754},{"type":54,"tag":3531,"props":3588,"children":3589},{},[3590],{"type":54,"tag":3540,"props":3591,"children":3594},{"href":3592,"rel":3593},"https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fjavascript\u002Fapi\u002F%40microsoft\u002Fagents-copilotstudio-client?view=agents-sdk-js-latest",[3544],[3595],{"type":60,"value":3592},{"type":54,"tag":3509,"props":3597,"children":3598},{},[3599,3604],{"type":54,"tag":3531,"props":3600,"children":3601},{},[3602],{"type":60,"value":3603},"Integrate with Copilot Studio",{"type":54,"tag":3531,"props":3605,"children":3606},{},[3607],{"type":54,"tag":3540,"props":3608,"children":3611},{"href":3609,"rel":3610},"https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fmicrosoft-365\u002Fagents-sdk\u002Fintegrate-with-mcs",[3544],[3612],{"type":60,"value":3609},{"type":54,"tag":3509,"props":3614,"children":3615},{},[3616,3621],{"type":54,"tag":3531,"props":3617,"children":3618},{},[3619],{"type":60,"value":3620},"GitHub samples",{"type":54,"tag":3531,"props":3622,"children":3623},{},[3624],{"type":54,"tag":3540,"props":3625,"children":3628},{"href":3626,"rel":3627},"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgents\u002Ftree\u002Fmain\u002Fsamples\u002Fnodejs",[3544],[3629],{"type":60,"value":3626},{"type":54,"tag":3631,"props":3632,"children":3633},"style",{},[3634],{"type":60,"value":3635},"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":3637,"total":2130},[3638,3654,3675,3690,3707,3718,3731],{"slug":3639,"name":3639,"fn":3640,"description":3641,"org":3642,"tags":3643,"stars":28,"repoUrl":29,"updatedAt":3653},"azure-ai-agents-persistent-dotnet","build AI agents with Azure .NET SDK","Azure AI Agents Persistent SDK for .NET. Low-level SDK for creating and managing AI agents with threads, messages, runs, and tools. Use for agent CRUD, conversation threads, streaming responses, function calling, file search, and code interpreter. Triggers: \"PersistentAgentsClient\", \"persistent agents\", \"agent threads\", \"agent runs\", \"streaming agents\", \"function calling agents .NET\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3644,3647,3648,3650],{"name":3645,"slug":3646,"type":15},".NET","net",{"name":26,"slug":27,"type":15},{"name":3649,"slug":35,"type":15},"Azure",{"name":3651,"slug":3652,"type":15},"LLM","llm","2026-07-03T16:32:10.297433",{"slug":3655,"name":3655,"fn":3656,"description":3657,"org":3658,"tags":3659,"stars":28,"repoUrl":29,"updatedAt":3674},"azure-ai-anomalydetector-java","build anomaly detection applications with Java","Build anomaly detection applications with Azure AI Anomaly Detector SDK for Java. Use when implementing univariate\u002Fmultivariate anomaly detection, time-series analysis, or AI-powered monitoring.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3660,3663,3664,3667,3670,3671],{"name":3661,"slug":3662,"type":15},"Analytics","analytics",{"name":3649,"slug":35,"type":15},{"name":3665,"slug":3666,"type":15},"Data Analysis","data-analysis",{"name":3668,"slug":3669,"type":15},"Java","java",{"name":9,"slug":8,"type":15},{"name":3672,"slug":3673,"type":15},"Monitoring","monitoring","2026-05-13T06:14:16.261754",{"slug":3676,"name":3676,"fn":3677,"description":3678,"org":3679,"tags":3680,"stars":28,"repoUrl":29,"updatedAt":3689},"azure-ai-contentsafety-java","build content moderation applications with Azure AI","Build content moderation applications with Azure AI Content Safety SDK for Java. Use when implementing text\u002Fimage analysis, blocklist management, or harm detection for hate, violence, sexual content, and self-harm.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3681,3684,3685,3686],{"name":3682,"slug":3683,"type":15},"AI Infrastructure","ai-infrastructure",{"name":3649,"slug":35,"type":15},{"name":3668,"slug":3669,"type":15},{"name":3687,"slug":3688,"type":15},"Security","security","2026-07-07T06:53:31.293235",{"slug":3691,"name":3691,"fn":3692,"description":3693,"org":3694,"tags":3695,"stars":28,"repoUrl":29,"updatedAt":3706},"azure-ai-contentsafety-py","detect harmful content with Azure AI Content Safety","Azure AI Content Safety SDK for Python. Use for detecting harmful content in text and images with multi-severity classification.\nTriggers: \"azure-ai-contentsafety\", \"ContentSafetyClient\", \"content moderation\", \"harmful content\", \"text analysis\", \"image analysis\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3696,3697,3700,3701,3702,3705],{"name":3649,"slug":35,"type":15},{"name":3698,"slug":3699,"type":15},"Compliance","compliance",{"name":3651,"slug":3652,"type":15},{"name":9,"slug":8,"type":15},{"name":3703,"slug":3704,"type":15},"Python","python",{"name":3687,"slug":3688,"type":15},"2026-07-18T05:14:23.017504",{"slug":3708,"name":3708,"fn":3709,"description":3710,"org":3711,"tags":3712,"stars":28,"repoUrl":29,"updatedAt":3717},"azure-ai-language-conversations-py","implement conversational language understanding with Python","Implement Conversational Language Understanding (CLU) using the azure-ai-language-conversations Python SDK. Use when working with ConversationAnalysisClient to analyze conversation intent and entities, building NLP features, or integrating language understanding into applications.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3713,3714,3715,3716],{"name":3661,"slug":3662,"type":15},{"name":3649,"slug":35,"type":15},{"name":3651,"slug":3652,"type":15},{"name":3703,"slug":3704,"type":15},"2026-07-31T05:54:29.068751",{"slug":3719,"name":3719,"fn":3720,"description":3721,"org":3722,"tags":3723,"stars":28,"repoUrl":29,"updatedAt":3730},"azure-ai-translation-text-py","translate text using Azure AI services","Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications.\nTriggers: \"text translation\", \"translator\", \"translate text\", \"transliterate\", \"TextTranslationClient\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3724,3727,3728,3729],{"name":3725,"slug":3726,"type":15},"API Development","api-development",{"name":3649,"slug":35,"type":15},{"name":9,"slug":8,"type":15},{"name":3703,"slug":3704,"type":15},"2026-07-18T05:14:16.988376",{"slug":3732,"name":3732,"fn":3733,"description":3734,"org":3735,"tags":3736,"stars":28,"repoUrl":29,"updatedAt":3745},"azure-ai-vision-imageanalysis-py","analyze images with Azure AI Vision","Azure AI Vision Image Analysis SDK for captions, tags, objects, OCR, people detection, and smart cropping. Use for computer vision and image understanding tasks.\nTriggers: \"image analysis\", \"computer vision\", \"OCR\", \"object detection\", \"ImageAnalysisClient\", \"image caption\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3737,3738,3741,3744],{"name":3649,"slug":35,"type":15},{"name":3739,"slug":3740,"type":15},"Computer Vision","computer-vision",{"name":3742,"slug":3743,"type":15},"Images","images",{"name":3703,"slug":3704,"type":15},"2026-07-18T05:14:18.007737",{"items":3747,"total":3880},[3748,3770,3777,3786,3793,3802,3809,3816,3823,3838,3857,3868],{"slug":3749,"name":3749,"fn":3750,"description":3751,"org":3752,"tags":3753,"stars":3767,"repoUrl":3768,"updatedAt":3769},"rushstack-best-practices","manage Rush monorepos with best practices","Provides best practices and guidance for working with Rush monorepos. Use when the user is working in a Rush-based repository, asks about Rush commands (install, update, build, rebuild), needs help with project selection, dependency management, build caching, subspace configuration, or troubleshooting Rush-specific issues.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3754,3757,3760,3761,3764],{"name":3755,"slug":3756,"type":15},"Engineering","engineering",{"name":3758,"slug":3759,"type":15},"Local Development","local-development",{"name":9,"slug":8,"type":15},{"name":3762,"slug":3763,"type":15},"Project Management","project-management",{"name":3765,"slug":3766,"type":15},"Rush","rush",6484,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Frushstack","2026-04-06T18:34:44.965032",{"slug":3639,"name":3639,"fn":3640,"description":3641,"org":3771,"tags":3772,"stars":28,"repoUrl":29,"updatedAt":3653},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3773,3774,3775,3776],{"name":3645,"slug":3646,"type":15},{"name":26,"slug":27,"type":15},{"name":3649,"slug":35,"type":15},{"name":3651,"slug":3652,"type":15},{"slug":3655,"name":3655,"fn":3656,"description":3657,"org":3778,"tags":3779,"stars":28,"repoUrl":29,"updatedAt":3674},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3780,3781,3782,3783,3784,3785],{"name":3661,"slug":3662,"type":15},{"name":3649,"slug":35,"type":15},{"name":3665,"slug":3666,"type":15},{"name":3668,"slug":3669,"type":15},{"name":9,"slug":8,"type":15},{"name":3672,"slug":3673,"type":15},{"slug":3676,"name":3676,"fn":3677,"description":3678,"org":3787,"tags":3788,"stars":28,"repoUrl":29,"updatedAt":3689},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3789,3790,3791,3792],{"name":3682,"slug":3683,"type":15},{"name":3649,"slug":35,"type":15},{"name":3668,"slug":3669,"type":15},{"name":3687,"slug":3688,"type":15},{"slug":3691,"name":3691,"fn":3692,"description":3693,"org":3794,"tags":3795,"stars":28,"repoUrl":29,"updatedAt":3706},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3796,3797,3798,3799,3800,3801],{"name":3649,"slug":35,"type":15},{"name":3698,"slug":3699,"type":15},{"name":3651,"slug":3652,"type":15},{"name":9,"slug":8,"type":15},{"name":3703,"slug":3704,"type":15},{"name":3687,"slug":3688,"type":15},{"slug":3708,"name":3708,"fn":3709,"description":3710,"org":3803,"tags":3804,"stars":28,"repoUrl":29,"updatedAt":3717},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3805,3806,3807,3808],{"name":3661,"slug":3662,"type":15},{"name":3649,"slug":35,"type":15},{"name":3651,"slug":3652,"type":15},{"name":3703,"slug":3704,"type":15},{"slug":3719,"name":3719,"fn":3720,"description":3721,"org":3810,"tags":3811,"stars":28,"repoUrl":29,"updatedAt":3730},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3812,3813,3814,3815],{"name":3725,"slug":3726,"type":15},{"name":3649,"slug":35,"type":15},{"name":9,"slug":8,"type":15},{"name":3703,"slug":3704,"type":15},{"slug":3732,"name":3732,"fn":3733,"description":3734,"org":3817,"tags":3818,"stars":28,"repoUrl":29,"updatedAt":3745},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3819,3820,3821,3822],{"name":3649,"slug":35,"type":15},{"name":3739,"slug":3740,"type":15},{"name":3742,"slug":3743,"type":15},{"name":3703,"slug":3704,"type":15},{"slug":3824,"name":3824,"fn":3825,"description":3826,"org":3827,"tags":3828,"stars":28,"repoUrl":29,"updatedAt":3837},"azure-appconfiguration-java","manage configuration with Azure App Configuration","Azure App Configuration SDK for Java. Centralized application configuration management with key-value settings, feature flags, and snapshots.\nTriggers: \"ConfigurationClient java\", \"app configuration java\", \"feature flag java\", \"configuration setting java\", \"azure config java\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3829,3830,3833,3836],{"name":3649,"slug":35,"type":15},{"name":3831,"slug":3832,"type":15},"Configuration","configuration",{"name":3834,"slug":3835,"type":15},"Feature Flags","feature-flags",{"name":3668,"slug":3669,"type":15},"2026-07-03T16:32:01.278468",{"slug":3839,"name":3839,"fn":3840,"description":3841,"org":3842,"tags":3843,"stars":28,"repoUrl":29,"updatedAt":3856},"azure-cosmos-rust","build applications with Azure Cosmos DB","Azure Cosmos DB library for Rust (NoSQL API). Document CRUD, containers, and globally distributed data.\nTriggers: \"cosmos db rust\", \"CosmosClient rust\", \"document crud rust\", \"NoSQL rust\", \"partition key rust\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3844,3847,3850,3853],{"name":3845,"slug":3846,"type":15},"Cosmos DB","cosmos-db",{"name":3848,"slug":3849,"type":15},"Database","database",{"name":3851,"slug":3852,"type":15},"NoSQL","nosql",{"name":3854,"slug":3855,"type":15},"Rust","rust","2026-07-31T05:54:27.021432",{"slug":3858,"name":3858,"fn":3840,"description":3859,"org":3860,"tags":3861,"stars":28,"repoUrl":29,"updatedAt":3867},"azure-cosmos-ts","Azure Cosmos DB JavaScript\u002FTypeScript SDK (@azure\u002Fcosmos) for data plane operations. Use for CRUD operations on documents, queries, bulk operations, and container management. Triggers: \"Cosmos DB\", \"@azure\u002Fcosmos\", \"CosmosClient\", \"document CRUD\", \"NoSQL queries\", \"bulk operations\", \"partition key\", \"container.items\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3862,3863,3864,3865,3866],{"name":3845,"slug":3846,"type":15},{"name":3848,"slug":3849,"type":15},{"name":9,"slug":8,"type":15},{"name":3851,"slug":3852,"type":15},{"name":13,"slug":14,"type":15},"2026-07-03T16:31:19.368382",{"slug":3869,"name":3869,"fn":3870,"description":3871,"org":3872,"tags":3873,"stars":28,"repoUrl":29,"updatedAt":3879},"azure-data-tables-java","build table storage applications with Java","Build table storage applications with Azure Tables SDK for Java. Use when working with Azure Table Storage or Cosmos DB Table API for NoSQL key-value data, schemaless storage, or structured data at scale.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3874,3875,3876,3877,3878],{"name":3649,"slug":35,"type":15},{"name":3845,"slug":3846,"type":15},{"name":3848,"slug":3849,"type":15},{"name":3668,"slug":3669,"type":15},{"name":3851,"slug":3852,"type":15},"2026-05-13T06:14:17.582229",267]