An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Because the Foundry Agent is already created and working in Playground, the application should call the Agent endpoint, rather than continue calling the model deployment directly.
Do not simply replace the model endpoint URL if the existing code expects a direct model deployment. The request must target the Foundry agent/Responses interface appropriately.
For a hosted/persisted agent, use the Azure AI Projects SDK. Microsoft recommends the Projects library for working with existing agents, conversations, and responses.
Create/use a conversation/session when multi-turn conversation history is required. The current TypeScript samples demonstrate reusing an existing agent endpoint, creating a conversation, and generating responses.
If only an ephemeral agent is required, the application can call the project Responses endpoint at {project_endpoint}/openai/v1/responses; Microsoft identifies this as the recommended Foundry project-scoped Responses API.