This sample demonstrates a coordinator + specialists pattern using Foundry Local’s OpenAI-compatible endpoint.
cd Module08
.\.venv\Scripts\activate
foundry model run phi-4-mini
python -m samples.05.agents.coordinatorcurl http://localhost:8000/v1/models- If VS Code flags
import specialistsunresolved incoordinator.py, ensure you run as a module and the interpreter points toModule08/.venv:- Run:
python -m samples.05.agents.coordinator - Select interpreter:
Module08/.venv/Scripts/python.exe(Ctrl+Shift+P → Python: Select Interpreter)
- Run:
- Foundry Local (Learn): https://learn.microsoft.com/azure/ai-foundry/foundry-local/
- Azure AI Agents overview: https://learn.microsoft.com/azure/ai-services/agents/overview
- Function calling sample (Foundry Local): https://github.com/microsoft/Foundry-Local/tree/main/samples/python/functioncalling