You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agent-framework/user-guide/agents/agent-types/azure-ai-foundry-agent.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,13 @@ ms.service: agent-framework
11
11
12
12
# Azure AI Foundry Agents
13
13
14
-
The Microsoft Agent Framework supports creating agents that use the [Azure AI Foundry Agents](/azure/ai-foundry/agents/overview) service.
14
+
The Microsoft Agent Framework supports creating agents that use the [Azure AI Foundry Agents](/azure/ai-foundry/agents/overview) service, you can create persistent service-based agent instances with service-managed conversation threads.
15
15
16
16
::: zone pivot="programming-language-csharp"
17
17
18
18
## Getting Started
19
19
20
-
Add the Agents Azure AI NuGet package to your project.
20
+
Add the required NuGet packages to your project.
21
21
22
22
```powershell
23
23
dotnet add package Azure.Identity
@@ -55,6 +55,9 @@ var agentMetadata = await persistentAgentsClient.Administration.CreateAgentAsync
55
55
56
56
// Retrieve the agent that was just created as an AIAgent using its ID
description: Learn how to use the Microsoft Agent Framework with Azure AI Foundry Models service.
2
+
title: Azure AI Foundry Models ChatCompletion Agents
3
+
description: Learn how to use the Microsoft Agent Framework with Azure AI Foundry Models service via OpenAI ChatCompletion API.
4
4
zone_pivot_groups: programming-languages
5
5
author: westey-m
6
6
ms.topic: tutorial
@@ -11,8 +11,9 @@ ms.service: agent-framework
11
11
12
12
# Azure AI Foundry Models Agents
13
13
14
+
The Microsoft Agent Framework supports creating agents using models deployed with Azure AI Foundry Models via an OpenAI Chat Completion compatible API, and therefore the OpenAI client libraries can be used to access Foundry models.
15
+
14
16
[Azure AI Foundry supports deploying](/azure/ai-foundry/foundry-models/how-to/create-model-deployments?pivots=ai-foundry-portal) a wide range of models, including open source models.
15
-
Microsoft Agent Framework can create agents that use these models.
16
17
17
18
> [!NOTE]
18
19
> The capabilities of these models may limit the functionality of the agents. For example, many open source models do not support function calling and therefore any agent based on such models will not be able to use function tools.
@@ -21,11 +22,10 @@ Microsoft Agent Framework can create agents that use these models.
21
22
22
23
## Getting Started
23
24
24
-
Foundry supports accessing models via an OpenAI Chat Completion compatible API, and therefore the OpenAI client libraries can be used to access Foundry models.
description: Learn how to use the Microsoft Agent Framework with Azure AI Foundry Models service via OpenAI Responses API.
4
+
zone_pivot_groups: programming-languages
5
+
author: jozkee
6
+
ms.topic: tutorial
7
+
ms.author: dacantu
8
+
ms.date: 10/22/2025
9
+
ms.service: agent-framework
10
+
---
11
+
12
+
# Azure AI Foundry Models Responses Agents
13
+
14
+
The Microsoft Agent Framework supports creating agents using models deployed with Azure AI Foundry Models via an OpenAI Responses compatible API, and therefore the OpenAI client libraries can be used to access Foundry models.
## Creating an OpenAI Responses Agent with Foundry Models
28
+
29
+
As a first step you need to create a client to connect to the OpenAI service.
30
+
31
+
Since the code is not using the default OpenAI service, the URI of the OpenAI compatible Foundry service, needs to be provided via `OpenAIClientOptions`.
Copy file name to clipboardExpand all lines: agent-framework/user-guide/agents/agent-types/index.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ These agents support a wide range of functionality out of the box:
34
34
1. Custom service provided tools (e.g. MCP, Code Execution)
35
35
1. Structured output
36
36
37
-
To create one of these agents, simply construct a `ChatClientAgent` using the ChatClient implementation of your choice.
37
+
To create one of these agents, simply construct a `ChatClientAgent` using the `IChatClient` implementation of your choice.
38
38
39
39
```csharp
40
40
usingMicrosoft.Agents.AI;
@@ -48,17 +48,18 @@ See the documentation for each service, for more information:
48
48
|Underlying Inference Service|Description|Service Chat History storage supported|Custom Chat History storage supported|
49
49
|---|---|---|---|
50
50
|[Azure AI Foundry Agent](./azure-ai-foundry-agent.md)|An agent that uses the Azure AI Foundry Agents Service as its backend.|Yes|No|
51
-
|[Azure AI Foundry Models](./azure-ai-foundry-models.md)|An agent that uses any of the models deployed in the Azure AI Foundry Service as its backend.|No|Yes|
51
+
|[Azure AI Foundry Models ChatCompletion](./azure-ai-foundry-models-chat-completion-agent.md)|An agent that uses any of the models deployed in the Azure AI Foundry Service as its backend via ChatCompletion.|No|Yes|
52
+
|[Azure AI Foundry Models Responses](./azure-ai-foundry-models-responses-agent.md)|An agent that uses any of the models deployed in the Azure AI Foundry Service as its backend via Responses.|No|Yes|
52
53
|[Azure OpenAI ChatCompletion](./azure-openai-chat-completion-agent.md)|An agent that uses the Azure OpenAI ChatCompletion service.|No|Yes|
53
54
|[Azure OpenAI Responses](./azure-openai-responses-agent.md)|An agent that uses the Azure OpenAI Responses service.|Yes|Yes|
54
55
|[OpenAI ChatCompletion](./openai-chat-completion-agent.md)|An agent that uses the OpenAI ChatCompletion service.|No|Yes|
55
56
|[OpenAI Responses](./openai-responses-agent.md)|An agent that uses the OpenAI Responses service.|Yes|Yes|
56
57
|[OpenAI Assistants](./openai-assistants-agent.md)|An agent that uses the OpenAI Assistants service.|Yes|No|
57
-
|[Any other ChatClient](./chat-client-agent.md)|You can also use any other [`Microsoft.Extensions.AI.IChatClient`](/dotnet/ai/microsoft-extensions-ai#the-ichatclient-interface) implementation to create an agent.|Varies|Varies|
58
+
|[Any other `IChatClient`](./chat-client-agent.md)|You can also use any other [`Microsoft.Extensions.AI.IChatClient`](/dotnet/ai/microsoft-extensions-ai#the-ichatclient-interface) implementation to create an agent.|Varies|Varies|
58
59
59
60
## Complex custom agents
60
61
61
-
It is also possible to create fully custom agents, that are not just wrappers around a ChatClient.
62
+
It is also possible to create fully custom agents, that are not just wrappers around an `IChatClient`.
62
63
The agent framework provides the `AIAgent` base type.
63
64
This base type is the core abstraction for all agents, which when subclassed allows for complete control over the agent's behavior and capabilities.
0 commit comments