Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ Welcome to Microsoft's comprehensive multi-language framework for building, orch
Python

```bash
# This will install all sub-packages, see `python/packages` for individual packages
pip install agent-framework
pip install agent-framework --prerelease=allow
# This will install all sub-packages, see `python/packages` for individual packages.
# It may take a minute on first install on Windows.
```

.NET
Expand Down Expand Up @@ -87,20 +88,27 @@ dotnet add package Microsoft.Agents.AI
Create a simple Azure Responses Agent that writes a haiku about the Microsoft Agent Framework

```python
# pip install agent-framework
# pip install agent-framework --prerelease=allow
# Use `az login` to authenticate with Azure CLI
import asyncio
from agent_framework.azure import AzureOpenAIResponsesClient
from azure.identity import AzureCliCredential


async def main():
# Initialize a chat agent with basic instructions
agent = AzureOpenAIResponsesClient(credential=AzureCliCredential()).create_agent(
name="HaikuBot",
instructions="You are an upbeat assistant that writes beautifully.",
)
# Initialize a chat agent with Azure OpenAI Responses
agent = AzureOpenAIResponsesClient(
endpoint="https://your-custom-endpoint.openai.azure.com/",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are automatically picked up from env vars or a .env file, which is why they aren’t explicitly included.

deployment_name="gpt-5",
api_version="2025-03-01-preview",
credential=AzureCliCredential(),
).create_agent(
name="HaikuBot",
instructions="You are an upbeat assistant that writes beautifully.",
)

print(await agent.run("Write a haiku about Microsoft Agent Framework."))

print(await agent.run("Write a haiku about Microsoft Agent Framework."))

asyncio.run(main())
```
Expand Down