westey and GitHub
fb7086b2e0
.NET: [BREAKING] Fix issue where AIContextProvider messages were not added to MessageStores ( #1788 )
...
* Fix issue where AIContextProvider messages were not added to MessageStores
* Fix typos
* Update XML docs to reduce ambiguity.
* Update AIContext XML docs
* Fix merge issue
2025-10-30 11:55:48 +00:00
1bf520a7c2
.NET: Add support for background responses ( #1501 )
...
* add support for background responses
* Update dotnet/src/Microsoft.Agents.AI.Abstractions/AgentRunResponseUpdate.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix broken link
* fix xml comments and background responses properties override funcitonity
* change ai model provider
* use Run{Streaming}Async overloads that don't require messages
* stop using m: prefix in cref attribute of <see/> element.
* reject input messages provided with continuation token + don't extract messages from message store and context provide if continuation token is provided
* use agent thread for background-responses sample
* require agent thread for background responses
* Update dotnet/src/Microsoft.Agents.AI/ChatClient/ChatClientAgent.cs
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com >
* Update dotnet/src/Microsoft.Agents.AI/ChatClient/ChatClientAgent.cs
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com >
* remove CA1200
* Update dotnet/src/Microsoft.Agents.AI.Abstractions/AgentRunOptions.cs
Co-authored-by: westey <164392973+westey-m@users.noreply.github.com >
* Update dotnet/src/Microsoft.Agents.AI.Abstractions/AgentRunResponse.cs
Co-authored-by: westey <164392973+westey-m@users.noreply.github.com >
* Update dotnet/src/Microsoft.Agents.AI.Abstractions/AgentRunResponse.cs
Co-authored-by: westey <164392973+westey-m@users.noreply.github.com >
* address pr review comments
* Update dotnet/samples/GettingStarted/Agents/Agent_Step17_BackgroundResponses/Program.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: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com >
Co-authored-by: westey <164392973+westey-m@users.noreply.github.com >
2025-10-22 17:43:57 +00:00
westey and GitHub
54c3eb726a
.NET: Add support for getting and creating Assistant and Foundry agents with ChatClientAgentOptions ( #1304 )
...
* Add support for getting and creating Assistant and Foundry agents with ChatClientAgentOptions
* Fix options cloning and agent creation
* Fix inconsistency
* Add support for mapping more tools and integration tests for ensuring CreateAIAgent works with those tools.
* Add support for additional openai tools with tests.
* Remove special casing for function tools, since it's either not supported yet, or requires a lot of code duplication.
* Removed unused using.
* Fix broken unit tests
* Change integration test to reduce flakiness.
2025-10-16 15:39:48 +00:00
Trung Hieu and GitHub
9677899600
.NET: Duplicate System Instruction when creating a ChatClientAgentOptions instance with the constructor ( #1382 )
...
* unit test for using create agent option by constructor
* remove this for prevent duplicate when ChatClientAgentOption and ChatOption has same Instruction
* update unit test for ChatClientAgentOptions
2025-10-16 09:24:00 +00:00
Mark Wallace and GitHub
d7094d5432
.NET: ChatClientBuilderExtensions should be in the M.E.AI namespace ( #1484 )
...
* ChatClientBuilderExtensions should be in the M.E.AI namespace
* ChatClientBuilderExtensions should be in the M.E.AI namespace
2025-10-15 14:58:41 +00:00
westey and GitHub
127bf68748
Reference the correct JsonUtilities class ( #1270 )
2025-10-07 22:02:19 +00:00
d10b44d6bb
.NET: Enable access to hosted AIAgents via OpenAI Responses ( #947 )
...
* init
* wip
* wip wip wip
* wip wip
* open up API
* enable for multiple agents
* more wip
* make frontend respond.
* wip
* not sure if proper setup
* define type
* cleanup
* frontend streaming wip
* use System.Net.ServerSentEvents
* usings
* reformat via ichatclient
* merge main renaming + refactor
* fix main merge + fix sample (a2a change)
* fix sample
* some rebase (not working yet)
* make it at least build somehow
* make non-stream work without internal types
* Input without custom models
* implement streaming
* test frontend
* enable alerts and fix
* build fixes & rereview
* Update dotnet/src/Microsoft.Agents.AI.Hosting.OpenAI.Responses/Microsoft.Agents.AI.Hosting.OpenAI.Responses.csproj
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/src/Microsoft.Agents.AI.Hosting.OpenAI.Responses/Utils/ResponseItemJsonConverter.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix agent discovery
* rename
* rename project into Microsoft.Agents.AI.Hosting.OpenAI (no responses in name)
* PR address comments x1
* address PR comments x2
* correctly instantiate OpenAIResponse
* address PR comments x3
* reconfigure JSON serialization & handle AOT warnings
* fix build
* proper ref
* check update differently
* correct check
* exclude dotnet format diagnostics for IL2026 and IL3050
* space :)
* re-review
* add comments
* remove unnecessary using
* always take last openai response item
* set responseItem Id explicitly
* add agent.name validation for uri
* cleanup
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
2025-10-07 12:39:08 +00:00
SergeyMenshykh and GitHub
3fd5768b34
.NET: Improve structured output for chat client agent ( #1172 )
...
* improve structured output for chat client agent
* add comment to the result property
* remove code duplication and add tests
* refactor the CreateAIAgent extension methods to return specific types, so consumers can avoid unnecessary downcasting.
* fix type and remove unused using.
* add ChatClientAgentRunResponse and move AgentRunResponse to the abstractions package to reuse later.
* seal ChatClientAgentRunResponse
* update xml comment
* remove funcitons from sample
* rename agent for streaming
2025-10-07 12:04:26 +00:00
westey and GitHub
3dc14dac79
.NET: Add a CreateAIAgent extension method to IChatClient ( #1223 )
...
* Add a CreateAIAgent extension method to IChatClient
* Fix unit tests
* Add tests with null chat clients to ensure appropriate failure
* Switch to similar constructor
* Add ChatClientBuilder BuildAgent extensions
* Address code review comments.
2025-10-07 09:47:33 +00:00
74905af778
.NET: Fix bug where ChatClientAgent throws when providing a ChatMessageStore with a service that requries service storage ( #1229 )
...
* Fix bug where ChatClientAgent throws when providing a ChatMessageStore with a service that requries service storage
* Update dotnet/tests/Microsoft.Agents.AI.UnitTests/ChatClient/ChatClientAgentTests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-07 08:31:34 +00:00
Stephen Toub and GitHub
4daeeb0f07
Add some DebuggerDisplays / DebuggerTypeProxys to abstraction types ( #1144 )
2025-10-03 08:51:49 +00:00
56beb52124
.NET: Fix lists in XML comments so they render properly in the documentation. ( #1113 )
...
* fix lists in XML comments so they render properly in documentation.
* Update dotnet/src/Microsoft.Agents.AI.A2A/A2AHostAgent.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/src/Microsoft.Agents.AI.A2A/A2AHostAgent.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/src/Microsoft.Agents.AI.A2A/A2AHostAgent.cs
Co-authored-by: Stephen Toub <stoub@microsoft.com >
* Update dotnet/src/Microsoft.Agents.AI.A2A/A2AHostAgent.cs
Co-authored-by: Stephen Toub <stoub@microsoft.com >
* Update dotnet/src/Microsoft.Agents.AI.A2A/A2AHostAgent.cs
Co-authored-by: Stephen Toub <stoub@microsoft.com >
* Update dotnet/src/Microsoft.Agents.AI.A2A/Extensions/A2ACardResolverExtensions.cs
Co-authored-by: Stephen Toub <stoub@microsoft.com >
* Update dotnet/src/Microsoft.Agents.AI.A2A/A2AHostAgent.cs
Co-authored-by: Stephen Toub <stoub@microsoft.com >
* Update dotnet/src/Microsoft.Agents.AI.A2A/A2AHostAgent.cs
Co-authored-by: Stephen Toub <stoub@microsoft.com >
* Update dotnet/src/Microsoft.Agents.AI.A2A/A2AHostAgent.cs
Co-authored-by: Stephen Toub <stoub@microsoft.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Stephen Toub <stoub@microsoft.com >
2025-10-02 13:58:11 +00:00
a414461570
.NET: Re-enable ImplicitUsings in samples and clean up NoWarns ( #1060 )
...
* Re-enable ImplicitUsings in samples and clean up NoWarns
* Fix dotnet format
* More dotnet format
* More dotnet format
---------
Co-authored-by: Chris <66376200+crickman@users.noreply.github.com >
2025-10-01 19:37:03 +00:00
f21b9d14f8
.NET: Use copilot to improve XML docs for M.Agents.AI{.Abstractions} ( #1042 )
...
* Use copilot to improve XML docs for M.Agents.AI{.Abstractions}
Asked copilot to help improve some of the docs, then I reviewed them.
I also cleaned up a few things along the way, like a couple of extension method types that should be combined.
* Update dotnet/src/Microsoft.Agents.AI.Abstractions/InMemoryChatMessageStore.cs
---------
Co-authored-by: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com >
2025-10-01 08:44:33 +00:00
westey and GitHub
0c2891f351
.NET: Remove automatic messageId assignment to fix integration test ( #1006 )
...
* Remove automatic messageid asssignment to fix integration test
* Remove other overrides from ChatClientAgent as well.
2025-09-30 15:54:36 +00:00
bd167ee476
.NET: AI Agent with plugin ( #1009 )
...
* add sample to demonstrate plugins for ai agent
* Update dotnet/samples/GettingStarted/Agents/Agent_Step15_Plugins/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/samples/GettingStarted/Agents/Agent_Step15_Plugins/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/samples/GettingStarted/Agents/Agent_Step15_Plugins/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* remove lang version property
* address review comments
* rename functionInvocationServices to services
* restore the solution file corrupted during the merge with lates main
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-30 15:10:03 +00:00
Stephen Toub and GitHub
4fd61924fc
.NET: Clean up some CancellationToken usage ( #996 )
...
* Clean up some CancellationToken usage
* Unused usings
2025-09-30 13:44:53 +00:00
SergeyMenshykh and GitHub
3dc8e1e025
.NET: Fix DI for ChatClientAgent ( #973 )
...
* fix di for chat client agent so ai funcitons dependencies can be resolved from di container
* merge with latest main
2025-09-30 08:40:03 +00:00
7a8b456294
.NET: Add Agent Filtering Middleware ( #478 )
...
* WIP
* Wip
* Updated ADR
* Updated ADR
* Update files
* Address copilot comments
* Update filters from Task<T> to Task only
* Project endpoint
* Add agent ctor filter
* Other Agent Framework investigation
* Remove SK Java, no support
* Update LlamaIndex info
* Removing unrelated files
* Implementation with specialization
* Remove the specialization option as extra unecessary complexity
* Move middleware responsibility to a decorator
* Update readme
* Function invocation wip
* Add Agent Builder
* Adding comparison samples
* Reorganize Samples and Processor vs Decorator
* Remove merge files
* Address formating warnigs
* Update ADR
* Step13 README's update
* Address PR feedback
* Address PR feedback
* Remove configure await from ADR samples
* Update variables
* Address feedback
* Address Agent level tool invocation with Options.ToolsTransformer strategy
* Removing the Processor approach
* Proposal design for Middleware in CreateAIAgent extensions
* Examples clean up and consolitation
* Update middlewares to work with ApprovalREquiredFunction
* Clean-up sample
* Update override function call sample
* Drop configuration from the extensions, looks overkill
* Builder interface ..
* Revert IAIBuilder interface approach
* Cleanup sample
* Adding unit tests
* Fix UT
* Cleanup sample
* Remove unneeded dependency
* Address PR comment + Readme Samples
* Add missing comments for Program.cs Middleware
* Address mor PR comments + add client factory for OpenAI extensions
* Add OpenAI UnitTests for extensions
* Add AzureAI PersistentChatClient UT
* Addess feedback
* Add function invoking UT
* Add builder extension UT
* Address feedback + Rearange abstractions + UT fixes
* Drop context based middleware for full decorating impl
* Update unit tests
* Update UT coverage
* Removing Middelware namespace
* Add missing UT
* Remove internal ToolTransformation Property
* Adjust xmldoc
* Remove transient file
* Address merge conflict
* Add xmldoc remark for clarity
* Address comment
* Address feedback
* Update UT
---------
Co-authored-by: Chris <66376200+crickman@users.noreply.github.com >
2025-09-29 17:58:04 +00:00
westey and GitHub
bf5931932e
.NET: Make serialize methods sync and rename one to match others. ( #946 )
...
* Make serialize methods sync and rename one to match others.
* Remove unnecessary async postfixes.
* Remove nullability of ChatMessageStore.Serialize return type, since the default JsonElement already represents an undefined json element.
* Fix unit test
2025-09-29 09:32:01 +00:00
32e054f1fe
Rename AI Agent packages to use Microsoft.Agents.AI ( #913 )
...
* Rename AI Agent packages to use Microsoft.Agents.AI
* Fix for build
* Fix formatting
* Fix formatting
* Ignore in VSTHRD200 in migration samples
* Ignore in VSTHRD200 in migration samples
* Add some missing projects and run format
* Fix build errors
* Address code review feedback
* Fix merge issues
---------
Co-authored-by: Mark Wallace <markwallace@microsoft.com >
2025-09-25 19:31:25 +00:00