Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds agentic React apps where a CopilotKit frontend talks over AG-UI to a Microsoft Foundry hosted Agent Framework agent.
50% 95%+45 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 11 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Package names below are current as of late 2026. Always install the latest releases and verify names against the installed packages: Python via python -c "import agent_framework_ag_ui as m; print(m.__all__)", TypeScript via the .d.ts files.
Scaffold the agent non-interactively against an existing Foundry project, in a fresh directory with a new environment:
azd ai agent init --no-prompt -e <env> -p <project-arm-id> -d <model-deployment> \
--agent-name my-agent --protocol responses --deploy-mode code \
--runtime python_3_13 --entry-point main.py --src src/my-agent
azd env get-values -e <env> # FOUNDRY_PROJECT_ENDPOINT, AZURE_AI_MODEL_DEPLOYMENT_NAME and
# AZURE_LOCATION (= the project's region) must all be set
init in a directory that already has azure.yaml or another azd env can leave FOUNDRY_PROJECT_ENDPOINT empty, so azd deploy fails with Foundry dependencies are not ready: ... FOUNDRY_PROJECT_ENDPOINT is not set. Start over in a clean directory rather than patching the env.azd provision and no --infra. init then azd deploy is the whole flow.Everything is declared in azure.yaml (camelCase). The old separate agent.yaml/agent.manifest.yaml files are obsolete. The agent service looks like this:
services:
my-agent:
project: src/my-agent
host: azure.ai.agent
language: python
uses: [ai-project]
env:
AZURE_AI_MODEL_DEPLOYMENT_NAME: ${AZURE_AI_MODEL_DEPLOYMENT_NAME}
codeConfiguration: { runtime: python_3_13, entryPoint: main.py }
protocols:
- protocol: responses
version: 2.0.0
main.py must use a Responses-based chat client. FoundryChatClient is required for approval resume; a Chat Completions client fails with No tool output found for function call.
import asyncio, os
Next to this one in the catalogue, plus more from the same author.