Skip to content

Commit 3cfcbaf

Browse files
authored
Add fixes for overview page (#949)
* Add fixes for overview page * Add missing import statements for python sample code
1 parent cd9b6a2 commit 3cfcbaf

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

agent-framework/overview/index.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Agent Framework offers two primary categories of capabilities:
1616

1717
| | Description |
1818
|---|---|
19-
| **[Agents](../agents/index.md)** | Individual agents that use LLMs to process inputs, call [tools](../agents/tools/index.md) and [MCP servers](../agents/tools/hosted-mcp-tools.md), and generate responses. Supports Azure OpenAI, OpenAI, Anthropic, Ollama, and [more](../agents/providers/index.md). |
19+
| **[Agents](../agents/index.md)** | Individual agents that use LLMs to process inputs, call [tools](../agents/tools/index.md) and [MCP servers](../agents/tools/hosted-mcp-tools.md), and generate responses. Supports Microsoft Foundry, Anthropic, Azure OpenAI, OpenAI, Ollama, and [more](../agents/providers/index.md). |
2020
| **[Workflows](../workflows/index.md)** | Graph-based workflows that connect agents and functions for multi-step tasks with type-safe routing, checkpointing, and human-in-the-loop support. |
2121

2222
The framework also provides foundational building
@@ -31,22 +31,21 @@ interactive, robust, and safe AI applications.
3131
:::zone pivot="programming-language-csharp"
3232

3333
```dotnetcli
34-
dotnet add package Azure.AI.OpenAI --prerelease
35-
dotnet add package Azure.Identity
36-
dotnet add package Microsoft.Agents.AI.OpenAI --prerelease
34+
dotnet add package Microsoft.Agents.AI.AzureAI --prerelease
3735
```
3836

3937
```csharp
4038
using System;
41-
using Azure.AI.OpenAI;
39+
using Azure.AI.Projects;
4240
using Azure.Identity;
4341
using Microsoft.Agents.AI;
4442

45-
AIAgent agent = new AzureOpenAIClient(
46-
new Uri(Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT")!),
43+
AIAgent agent = new AIProjectClient(
44+
new Uri("https://your-foundry-service.services.ai.azure.com/api/projects/your-foundry-project"),
4745
new AzureCliCredential())
48-
.GetChatClient("gpt-4o-mini")
49-
.AsAIAgent(instructions: "You are a friendly assistant. Keep your answers brief.");
46+
.AsAIAgent(
47+
model: "gpt-5.4-mini",
48+
instructions: "You are a friendly assistant. Keep your answers brief.");
5049

5150
Console.WriteLine(await agent.RunAsync("What is the largest city in France?"));
5251
```
@@ -60,10 +59,13 @@ pip install agent-framework --pre
6059
```
6160

6261
```python
62+
from agent_framework.foundry import FoundryChatClient
63+
from azure.identity import AzureCliCredential
64+
6365
credential = AzureCliCredential()
6466
client = FoundryChatClient(
65-
project_endpoint=os.environ["AZURE_AI_PROJECT_ENDPOINT"],
66-
model=os.environ["AZURE_AI_MODEL_DEPLOYMENT_NAME"],
67+
project_endpoint="https://your-foundry-service.services.ai.azure.com/api/projects/your-foundry-project",
68+
model="gpt-5.4-mini",
6769
credential=credential,
6870
)
6971

0 commit comments

Comments
 (0)