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
-**`AddAGUI`**: Registers AG-UI services with the dependency injection container
108
108
-**`MapAGUI`**: Extension method that registers the AG-UI endpoint with automatic request/response handling and SSE streaming
109
109
-**`ChatClient` and `AsIChatClient()`**: `AzureOpenAIClient.GetChatClient()` returns OpenAI's `ChatClient` type. The `AsIChatClient()` extension method (from `Microsoft.Extensions.AI.OpenAI`) converts it to the `IChatClient` interface required by Agent Framework
110
-
-**`CreateAIAgent`**: Creates an Agent Framework agent from an `IChatClient`
110
+
-**`AsAIAgent`**: Creates an Agent Framework agent from an `IChatClient`
111
111
-**ASP.NET Core Integration**: Uses ASP.NET Core's native async support for streaming responses
112
112
-**Instructions**: The agent is created with default instructions, which can be overridden by client messages
113
113
-**Configuration**: `AzureOpenAIClient` with `DefaultAzureCredential` provides secure authentication
Copy file name to clipboardExpand all lines: agent-framework/integrations/ag-ui/testing-with-dojo.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.service: agent-framework
11
11
12
12
# Testing with AG-UI Dojo
13
13
14
-
The [AG-UI Dojo application](https://github.com/ag-oss/ag-ui/tree/main/apps/dojo) provides an interactive environment to test and explore Microsoft Agent Framework agents that implement the AG-UI protocol. Dojo offers a visual interface to connect to your agents and interact with all 7 AG-UI features.
14
+
The [AG-UI Dojo application](https://dojo.ag-ui.com/) provides an interactive environment to test and explore Microsoft Agent Framework agents that implement the AG-UI protocol. Dojo offers a visual interface to connect to your agents and interact with all 7 AG-UI features.
15
15
16
16
:::zone pivot="programming-language-python"
17
17
@@ -226,18 +226,18 @@ If you see authentication errors:
226
226
227
227
## Next Steps
228
228
229
-
- Explore the [example agents](https://github.com/ag-oss/ag-ui/tree/main/integrations/microsoft-agent-framework/python/examples/agents) to see implementation patterns
229
+
- Explore the [example agents](https://github.com/ag-ui-protocol/ag-ui/tree/main/integrations/microsoft-agent-framework/python/examples/agents) to see implementation patterns
230
230
- Learn about [Backend Tool Rendering](backend-tool-rendering.md) to customize tool UIs
231
231
<!-- - Implement [Human-in-the-Loop](human-in-the-loop.md) workflows for approval flows -->
232
232
<!-- - Add [State Management](state-management.md) for complex interactive experiences -->
Copy file name to clipboardExpand all lines: agent-framework/migration-guide/from-autogen/index.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,7 +234,7 @@ async def example():
234
234
)
235
235
236
236
# Factory method (more convenient)
237
-
agent = client.create_agent(
237
+
agent = client.as_agent(
238
238
name="assistant",
239
239
instructions="You are a helpful assistant.",
240
240
tools=[get_weather],
@@ -489,7 +489,7 @@ agent = ChatAgent(
489
489
For detailed examples, see:
490
490
491
491
-[Azure AI with Code Interpreter](https://github.com/microsoft/agent-framework/blob/main/python/samples/getting_started/agents/azure_ai/azure_ai_with_code_interpreter.py) - Code execution tool
492
-
-[Azure AI with Multiple Tools](https://github.com/microsoft/agent-framework/blob/main/python/samples/getting_started/agents/azure_ai/azure_ai_with_multiple_tools.py) - Multiple hosted tools
492
+
-[Azure AI with Multiple Tools](https://github.com/microsoft/agent-framework/blob/main/python/samples/getting_started/agents/azure_ai_agent/azure_ai_with_multiple_tools.py) - Multiple hosted tools
493
493
-[OpenAI with Web Search](https://github.com/microsoft/agent-framework/blob/main/python/samples/getting_started/agents/openai/openai_chat_client_with_web_search.py) - Web search integration
-[Concurrent with Custom Aggregator](https://github.com/microsoft/agent-framework/blob/main/python/samples/getting_started/workflows/orchestration/concurrent_custom_aggregator.py) - Result aggregation patterns
@@ -381,7 +381,7 @@ Or, with the convenience methods provided by chat clients:
381
381
```python
382
382
from agent_framework.azure import AzureOpenAIChatClient
383
383
from azure.identity import AzureCliCredential
384
-
agent = AzureOpenAIChatClient(credential=AzureCliCredential()).create_agent(instructions="You are a helpful assistant")
384
+
agent = AzureOpenAIChatClient(credential=AzureCliCredential()).as_agent(instructions="You are a helpful assistant")
385
385
```
386
386
387
387
The direct method exposes all possible parameters you can set for your agent. While the convenience method has a subset, you can still pass in the same set of parameters, because it calls the direct method internally.
> **Note:** For **Agents**, the `instructions` and `tools` parameters remain available as direct keyword arguments on `ChatAgent.__init__()` and `client.create_agent()`. For `agent.run()`, only `tools` is available as a keyword argument:
57
+
> **Note:** For **Agents**, the `instructions` and `tools` parameters remain available as direct keyword arguments on `ChatAgent.__init__()` and `client.as_agent()`. For `agent.run()`, only `tools` is available as a keyword argument:
58
58
>
59
59
> ```python
60
60
># Agent creation accepts both tools and instructions as keyword arguments
0 commit comments