Skip to content

Conversation

@SergeyMenshykh
Copy link
Member

This PR adds samples demonstrating how to create AI agent that uses the OpenAI SDK primitives instead of the ones from Microsoft.Extensions.AI and Microsoft.Agents.AI abstractions.

@SergeyMenshykh SergeyMenshykh self-assigned this Dec 4, 2025
Copilot AI review requested due to automatic review settings December 4, 2025 17:32
@SergeyMenshykh SergeyMenshykh moved this to In Review in Agent Framework Dec 4, 2025
@markwallace-microsoft markwallace-microsoft added the documentation Improvements or additions to documentation label Dec 4, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds two new samples demonstrating how to create AI agents using native OpenAI SDK primitives (OpenAIChatClientAgent and OpenAIResponseClientAgent) instead of the Microsoft.Extensions.AI abstractions.

  • Adds Agent_OpenAI_Step03_CreateFromChatClient sample showing usage of OpenAIChatClientAgent
  • Adds Agent_OpenAI_Step04_CreateFromOpenAIResponseClient sample showing usage of OpenAIResponseClientAgent
  • Updates parent README with references to the new samples

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
dotnet/samples/GettingStarted/AgentWithOpenAI/README.md Updated table of samples to include new Step03 and Step04 samples with descriptions
dotnet/samples/GettingStarted/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/README.md Added README documenting how to use OpenAIChatClientAgent with ChatClient
dotnet/samples/GettingStarted/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/Program.cs Added sample code demonstrating OpenAIChatClientAgent with both regular and streaming invocation
dotnet/samples/GettingStarted/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/Agent_OpenAI_Step03_CreateFromChatClient.csproj Added project file for Step03 sample
dotnet/samples/GettingStarted/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/README.md Added README documenting how to use OpenAIResponseClientAgent with OpenAIResponseClient
dotnet/samples/GettingStarted/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Program.cs Added sample code demonstrating OpenAIResponseClientAgent with both regular and streaming invocation
dotnet/samples/GettingStarted/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient.csproj Added project file for Step04 sample
dotnet/agent-framework-dotnet.slnx Added references to the two new sample projects in the solution file

@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants