Overview of the 'Bring Your Own' Responses Protocol Sample
mainThis sample demonstrates a minimal 'hello world' hosted agent using the Bring Your Own (BYO) approach with the Responses protocol. It uses the azure-ai-agentserver-responses SDK to host a custom agent that calls a Foundry model via the Responses API and returns replies through a standard Responses protocol contract.
Key Components
- Model Integration: Uses the Foundry SDK (
azure-ai-projects) to create an OpenAI-compatible Responses client. The handler extracts user input, calls the model, and returns aTextResponse. The SDK automatically manages the SSE (Server-Sent Events) lifecycle (response.created→response.in_progress→ content events →response.completed). - Agent Hosting: Hosted via the Azure AI AgentServer Responses SDK, which provides a REST API endpoint compatible with the OpenAI Responses protocol.
- Agent Deployment: Can be deployed to Microsoft Foundry using the Azure Developer CLI (
azd).