139f033b05
.Net: Add Structured output ChatClientAgent samples ( #250 )
...
* WIP
* Structured Output sample
* Update dotnet/samples/GettingStarted/Steps/Step06_ChatClientAgent_StructuredOutputs.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address xml and comment targeting the Structured Output context
* Update with proposed fix for Persistent ChatClient
* Address PR feedback
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Chris <66376200+crickman@users.noreply.github.com >
2025-07-31 11:35:29 +00:00
e877ffbca1
.NET: Move external MEAI classes to releasable packages ( #279 )
...
* Move external MEAI classes to releaseable packages
* Update dotnet/src/Microsoft.Extensions.AI.Agents.Abstractions/MEAI/NewHostedFileSearchTool.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/src/Microsoft.Extensions.AI.Agents.Abstractions/MEAI/NewHostedCodeInterpreterTool.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/src/Microsoft.Extensions.AI.Agents.AzureAI/NewPersistentAgentsChatClient.cs
Co-authored-by: westey <164392973+westey-m@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: westey <164392973+westey-m@users.noreply.github.com >
2025-07-30 14:40:04 +00:00
02814a4fc0
.Net: FileSearch Tool Sample + API Proposal Updates for MEAI.Abstractions/Azure.AI.Agents ( #210 )
...
* Wip, bringing persistent chat client back
* Bring back code interpreter resource logic
* Add file search samples and proposal for new OpenAIAssistantChatClient and AgentPersistantChatCLient
* Update dotnet/samples/GettingStarted/External/MEAI.Abstractions/NewHostedFileSearchTool.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/samples/GettingStarted/Steps/Step04_ChatClientAgent_UsingFileSearchTools.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/samples/GettingStarted/External/Azure.AI.Agents.Persistent/NewPersistentAgentsChatClient.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update MEAI abstractions to reflect latest discussions, updated underlying chatclients
* Remove unneeded comments
* Address PR feedback
* Address PR feedback
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-29 10:41:35 +00:00
Stephen Toub and GitHub
233c557173
Clean up handoff orchestration creation ( #235 )
...
- Remove Dictionary-derived types
- Add an optional name to orchestrations
- Make Handoffs based purely on AIAgent instances rather than separately provided names
2025-07-24 16:38:23 +00:00
Roger Barreto and GitHub
62be887947
.Net: Add missing providers to tool samples ( #211 )
...
* Add missing providers to tool samples
* Add Options ctor and simplify samples a bit
* Remove basic
2025-07-24 09:31:24 +00:00
Stephen Toub and GitHub
5472d6e996
Overhaul orchestration library with new approach ( #199 )
2025-07-23 16:29:37 +00:00
Reuben Bond and GitHub
41d441420e
Initial draft of actor runtime abstractions ( #197 )
...
* Initial draft of actor runtime abstractions
2025-07-22 16:05:58 -04:00
Stephen Toub and GitHub
6c12b2c0f8
Round 3 of cleanup ( #186 )
...
- Enable warnings as errors
- Make the remaining src projects NativeAOT compatible
- Use Throw helpers
2025-07-20 23:07:50 -04:00
westey and GitHub
fc999e2be8
Rename Agent to AIAgent and instroduce DisplayName ( #201 )
2025-07-18 15:43:38 +00:00
6e57489a44
.Net: Add OpenTelemetry Support and Samples ( #182 )
...
* Adding sample and implementation similar to MEAI approach
* Add Telemetry UnitTests
* Fix Async suffix
* Add ADR with the proposal
* Address merge changes
* Fixing const visibility + coverage
* Increase test coverage, add metrics collection code paths
* Fix warnings
* WIp
* Convention adeherence
* Add gen-ai.system logic + UT
* Add convetion reference
* Address PR comments
* Addressing PR comments, Agent name optional
* Remove constant
* Update dotnet/src/Microsoft.Extensions.AI.Agents/ChatCompletion/ChatClientAgent.cs
Co-authored-by: westey <164392973+westey-m@users.noreply.github.com >
* GetLoggingName
---------
Co-authored-by: westey <164392973+westey-m@users.noreply.github.com >
2025-07-16 17:00:24 +00:00
westey and GitHub
dd32a6d399
Add extension methods to get an AF agent from a Foundry Client ( #191 )
...
* Add helpers to go from foundry client to agent more easily.
* Fix xml docs.
2025-07-16 14:45:31 +00:00
westey and GitHub
95a3264c8b
Add ChatClientAgent constructor overload ( #188 )
...
* Add ChatClientAgent constructor overload
* Add unit tests for new constructor
* Up code coverage with extra tests
* Address PR comments.
* Address PR comment
* Add additional test to increase code coverage.
2025-07-16 13:36:17 +00:00
Dmytro Struk and GitHub
fa96f74ee9
Removed Persistent SDK IChatClient implementation ( #190 )
2025-07-15 17:37:42 +00:00
Stephen Toub and GitHub
59bf7343af
Update {Azure.AI.}OpenAI package versions ( #187 )
2025-07-14 18:04:52 -04:00
westey and GitHub
55045b5c1e
Basic agent invocation sample ( #175 )
...
* Basic agent invocation sample
* Simplify sample further.
* Add additional comment.
* Address code review comments.
* Suppress CA2000 and remove using from most basic sample, since the IChatClient instances involved do not do any disposal.
2025-07-14 15:15:46 +00:00
Stephen Toub and GitHub
456e7d1b65
Round 2 of cleanup for agent runtime and orchestrations ( #164 )
...
- Moved InProcessRuntime type into abstractions package and deleted InProcess package.
- Moved several members of IAgentRuntime to be extension methods instead, e.g. multiple GetActorAsync overloads.
- Added synchronous RegisterMessageHandler overloads and used them to avoid unnecessary async usage at call sites.
- Removed unnecessary surface area from InProcessRuntime, e.g. StopAsync, RunUntilIdleAsync, etc.
- Fixed spin loop in InProcessRuntime that would consume an entire core for the duration of the orchestration's operation.
- Removed a bunch of allocation from InProcessRuntime.
- Made a runtime optional for orchestrations, defaulting to using a temporary InProcessRuntime if none is provided.
- Removed custom delegate types from orchestrations.
- Consolidated namespaces.
- Used records to simplify message classes.
- Tweaked naming on AgentActor to make purpose of protected methods more clear.
- Removed invocation in AgentActor.InvokeAsync of empty update / isFinal parameter.
- Changed OrchestrationHandoffs to avoid needing to pass in agents duplicatively.
- Made various extension methods, such as those on OrchestrationHandoffsExtensions, into instance methods.
2025-07-11 11:12:18 -04:00
eca0eb9cd0
.Net: Introduce Dependency Injection Samples ( #165 )
...
* DI WIP
* Update dependency injection examples and Agent Creation update
* Rollback override for GettingStarted as Azure.AI.OpenAI package currentl does not support OpenAI 2.2.0 GA version
* Dropping ct
* Update dotnet/samples/GettingStarted/AgentSample.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-11 13:27:07 +00:00
fef4fd2c18
.Net: Update Code Interpreter Sample as a Step. ( #148 )
...
* Updating code interpreter samples
* Small adjustments to ensure it works as expected
* Update dotnet/samples/GettingStarted/Steps/Step03_ChatClientAgent_UsingCodeInterpreterTools.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address xmldoc
* Addressing PR coment, external implementaions + ChatClients update, removing RawRepresentationFactory requirement
* Address warnings
* Update Fix warnings
* Proposed changes for the OpenAIAssistantChatClient
* Address PR comments
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com >
2025-07-10 15:26:41 +00:00
Stephen Toub and GitHub
4a0f8dcbe0
Port Agent Runtime abstractions / inprocess runtime ( #149 )
2025-07-09 09:08:45 -04:00
7c8ec5ec19
.NET Port Agent Orchestration ( #107 )
...
* Checkpoint
* Checkpoint
* Namespaces
* Namespace
* Cleanup
* Namespace order
* Fix sync
* Formatting
* Formatting
* Namespace
* Namespace order
* Code convention
* Naming
* Naming
* Text handling
* Text handling
* Namespace
* Namespace order
* Namespace ordering
* Test
* ValueTask
* net472
* Test fix
* Fix namespace (net472)
* Namespace
* Fix conditional namespace
* Fix type expression
* Compatibility and cleanup
* Sample compatibility
* Sample compat
* Test compat
* modifier order
* Simply http-stub
* Formating fix for unit-test
* Fix test
* Real fix
* Test clean-up
* Update dotnet/src/Microsoft.Agents.Orchestration/Handoff/HandoffOrchestration.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Fix build errors after merging
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Stephen Toub <stoub@microsoft.com >
2025-07-08 13:04:34 -04:00
Dmytro Struk and GitHub
fbb0fdfe0d
.Net: Code interpreter tool abstraction and implementation examples ( #110 )
...
* Added code interpreter abstraction updates for OpenAI Assistants
* Updated Persistent Agents implementation based on latest changes in SDK
* Added code interpreter abstraction updates for Azure AI Persistent Agents
* Small note for OpenAI responses code interpreter
* Small update
* Fixes after merge
* Addressed PR feedback
* Small update
* Small fix
* Fix after merge
2025-07-01 14:59:51 +00:00
Mark Wallace and GitHub
95738b0ac2
Renaming to use Microsoft.Extensions prefix ( #120 )
...
* Rename the folders
* Rename the .csproj files
* Some build file updates
* Update namespaces
* Fix order of imports
* Fix order of imports
* Fix order of imports
2025-07-01 08:15:28 +00:00
Roger Barreto and GitHub
b46ee00468
.Net: Agent Samples - Adding AzureAIAgentsPersistent to Steps ( #105 )
...
* Adding Persistent Agent to Steps
* Add comments
* Ensure changes
* Fix format
* Fix formatting
* Adding cancellation token good practice
2025-06-26 22:17:59 +00:00
Roger Barreto and GitHub
2cd77596c3
.Net: Add OpenAI Responses Agent Samples ( #83 )
...
* Improved Merge logic
* Add modularization for Model Samples and Azure OpenAI
* Address PR feedback
* Warning fix
* Address PR comments
* Adding OpenAI Response Samples
* Clean up
* Revert to provider specific chat options
* Fix warnings
* Revert slnx changes
2025-06-19 18:06:08 +00:00
Dmytro Struk and GitHub
47dcad6b49
.Net: Added Azure AI Persistent Agents ( #81 )
...
* Added PersistentAgentsChatClient
* Added integration tests
* Small fixes
* Added sample
* Added TODO for tools
* Small rename
* Removed user-secrets id
* Renamed project
* Fixed warning
* Fixed warning
* More fixes
* More fixes
2025-06-19 14:01:26 +00:00
Roger Barreto and GitHub
14f3811648
.Net: Add Azure OpenAI Agent Model Samples ( #80 )
...
* Improved Merge logic
* Add modularization for Model Samples and Azure OpenAI
* Address PR feedback
* Warning fix
* Address PR comments
2025-06-18 12:00:38 +00:00
16cbc44611
.Net: Adding ChatOptions configuration to the Agent level ( #75 )
...
* Adding ChatOptions configuration to the Agent level
* fix warnings
* Address Copilot Feedback
* Add UT for new AgentExtensions
* Add UnitTests for ChatOptions merging behavior
* Fix warning
* Address PR Feedback
* Update dotnet/src/Microsoft.Agents/ChatCompletion/ChatClientAgent.cs
Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com >
---------
Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com >
2025-06-17 09:08:11 +00:00
westey and GitHub
293cdb1846
Add test infrastructure for agent conformance tests ( #77 )
...
* Add test infrastructure for agent conformance tests
* Address PR comments.
* Switch TargetFrameworks to have inline condition
2025-06-16 11:32:20 +01:00
westey and GitHub
4d3b17eb27
Add sample for OpenAIAssistant ChatClientAgent ( #74 )
...
* Add sample for OpenAIAssistant
* Fix warning
* Add tools sample and simplify running samples.
* Restructure samples to show common features separate from each type of underlying IChatClient implementation.
* Remove unecessary suppression.
* Renaming namespaces based on suggestion from PR.
2025-06-13 17:11:56 +01:00
2c75f13337
.Net: Add ChatClientAgent Samples - OpenAI Model Client ( #72 )
...
* Add Streaming API
* Removing InstructionsRole
* Updating thread notification strategy
* Fix net472 failing
* Small fixes
* Adding Samples for OpenAI
* WIP samples
* default runsettings for unit tests
* Adding first samples with OpenAIModelChatClientAgents
* Removing OpenAI dependency on the sample utility
* Release -> Debug update for GettingStarted project
* Fix GettingStarted.csproj failing to build in Release
* Update dotnet/src/Shared/Samples/BaseSample.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address PR feedback
* Fix Step 1 samples
* Simplify code
* Address PR feedback
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-06-12 12:22:07 +00:00