The Azure AI Agents Client Library for Python provides tools for building AI agents that can interact with users and other services on the Azure platform. It allows developers to create, configure, and manage conversational AI experiences. The current version is 1.1.0, and it follows the Azure SDK release cadence, with frequent beta updates and less frequent, but regular, stable releases.
pip install azure-ai-agentsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `AgentClient` using an API key and send a basic chat message. It expects the `AZURE_AGENT_ENDPOINT` and `AZURE_AGENT_API_KEY` environment variables to be set for authentication. For more advanced scenarios, including agent creation, thread management, and different authentication methods like `DefaultAzureCredential`, consult the official Azure AI Agents documentation.
Review the official documentation and migration guides for `1.1.0` and update your code to reflect the stable API patterns for `AgentClient`, agent creation, and chat interactions.
Set environment variables like `AZURE_AGENT_ENDPOINT` and `AZURE_AGENT_API_KEY` or `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET` for `DefaultAzureCredential`. Refer to `azure-identity` documentation for detailed authentication setup.
Implement logic to generate and persist `thread_id` values, passing them in the `context` dictionary for `client.chat()` to maintain conversational continuity for your agents.