3168eb4870
.NET: [BREAKING] Add session StateBag for state storage and support multiple providers on the Agent ( #3806 )
...
* .NET: [BREAKING] Add session statebag to use for state storage instead of inside providers (#3737 )
* Add a StateBag to AgentSession and pass Agent and AgentSession to AIContextProvider and ChatHistoryProviders
* Convert all AIContextProviders to use the statebag
* Update InMemoryChatHistoryProvider to use StateBag
* Update Comsos and Workflow ChatHistoryProviders
* Update 3rd party chat history storage sample.
* Remove serialize method from providers
* Replacing provider factories with properties
* Remove Providers from Session and flatten state bag serialization
* Update samples to use getservice on agent
* Updated additional session types to serialize statebag
* Fix regression
* Address PR comments
* Address PR comments.
* Fix formatting
* Fix unit tests
* Remove InMemoryAgentSession since it is not required anymore.
* Address PR comments
* Convert sessions for A2AAgent, ChatClientAgent, CopilotStudioAgent and GithubCopilotAgent to use regular json serialization.
* Fix durable agent session jso usgae
* Add jso to InMemory and Workflow ChatHistoryProviders
* Update InMemoryChatHistoryProvider to use an options class for it's many optional settings.
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address PR feedback
* Fix verification bug.
* Improve state bag thread safety
* Address PR comments and fix unit tests
* Address PR comments
* Fix unit test
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Add a public StateKey property to providers (#3810 )
* .NET: [BREAKING] Update providers in such a way that they can participate in a pipeline (#3846 )
* Make providers pipeline capable
* Fix unit tests
* Move source stamping to providers from base class
* Also update samples.
* Address PR comments
* Rename AsAgentRequestMessageSourcedMessage to WithAgentRequestMessageSource
* .NET: [BREAKING] Add consistent message filtering to all providers. (#3851 )
* Add consistent message filtering to all providers.
* Remove old chat history filtering classes
* Fix merge issues
* Fix unit test
* Enforce non-nullable property
* Fix merging bug and make troubleshooting source info easier by adding tostring implementation
* .NET: [BREAKING] Add support for multiple AIContextProviders on a ChatClientAgent (#3863 )
* Add support for multiple AIContextProviders on a ChatClientAgent
* Address PR comments and fix tests
* Address PR comments.
* .NET: [BREAKING]Delay AIContext Materialization until the end of the pipeline is reached. (#3883 )
* Delay AIContext Materialization until the end of the pipeline is reached.
* Address PR comments.
* Address PR comments
* Modify InvokedContext to be immutable (#3888 )
* .NET: Address Feedback on StateBag feature branch PR (#3910 )
* Address Feedback on statebag feature branch PR
* Update dotnet/src/Microsoft.Agents.AI.DurableTask/CHANGELOG.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address PR comments
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-02-13 14:08:07 +00:00
SergeyMenshykh and GitHub
6000b737e9
use DefaultAzureCredential instead of AzureCliCredential ( #3860 )
2026-02-12 12:27:54 +00:00
westey and GitHub
6a88c7b1a1
.NET: [BREAKING] Change SerializeSession to be Async ( #3879 )
...
* Change SerializeSession to be Async
* Update Changelog
2026-02-12 11:56:42 +00:00
westey and GitHub
ad0dac3c86
.NET: [BREAKING] Add ability to mark the source of Agent request messages and use that for filtering ( #3540 )
...
* Add ability to mark the source of Agent request messages and use that for filtering
* Add support for source, in addition to source type, and add unit tests for automatic stamping
* Address PR comments.
* Add merge fixes
* Address PR comments
2026-02-09 16:53:01 +00:00
westey and GitHub
ac17adb595
.NET: Introduce Core implementation methods for session methods on AIAgent ( #3699 )
...
* Introduce Core implementation methods for session methods on AIAgent
* Update changelog
2026-02-06 13:25:20 +00:00
ec82ed15d2
.NET: [BREAKING] Provide agent and session to AIContextProvider & ChatHistoryProvider ( #3695 )
...
* Add a StateBag to AgentSession and pass Agent and AgentSession to AIContextProvider and ChatHistoryProviders
* Remove statebag code from this branch, to get the refactoring out of the way first
* Apply suggestion from @rogerbarreto
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com >
* Apply suggestion from @westey-m
* Apply suggestion from @westey-m
---------
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com >
2026-02-05 15:58:41 +00:00
westey and GitHub
a2d1e69652
.NET: [BREAKING] Rename session state json param ( #3681 )
...
* Rename session state json param to ensure consistency
* Fix merge failures and PR comments.
2026-02-04 18:54:10 +00:00
westey and GitHub
6255abd687
.NET: [BREAKING] Move AgentSession.Serialize to AIAgent ( #3650 )
...
* Move AgentSession.Serialize to AIAgent
* Address PR comments.
* Improve code and fix unit test
* Update test agents to return a default json element instead of throwing where the the result of the serialization is never used.
* Update further tests to actually serialize the session
2026-02-04 15:52:15 +00:00
westey and GitHub
6fdf6111e6
.NET: [BREAKING] Rename GetNewSession to CreateSession ( #3501 )
...
* Rename GetNewSession to CreateSession
* Address copilot feedback
* Suppress warning
* Suppress warning
* Fix further warnings.
2026-02-03 11:33:50 +00:00
924211a518
.Net: Update Anthropic and Anthropic.Foundry package versions ( #3517 )
...
* Initial plan
* Update Anthropic packages to v12.3.0 and Anthropic.Foundry to v0.4.1
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
* Fix AnthropicClient not being disposed in sample
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
2026-01-30 16:48:19 +00:00
Dmytro Struk and GitHub
45a020be43
.NET: Python: [BREAKING] Renamed Github to GitHub ( #3486 )
...
* Renamed Github to GitHub
* Small fix
* Updated package versions
2026-01-28 19:58:31 +00:00
e82d9f5e45
.NET: Add AIAgent implementation for GitHub Copilot SDK ( #3395 )
...
* Initial plan
* Add GitHub Copilot SDK AIAgent implementation with tests
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com >
* Add projects to solution and fix sample imports
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com >
* Improve pragma comment clarity in GithubCopilotAgentThread
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com >
* Address PR feedback: internal constructor/setter, remove CopilotClientOptions ctor, streaming improvements, better sample, container warning
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com >
* Add ownsClient parameter to allow caller control over client disposal
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com >
* Fix unit tests by removing await using to avoid StreamJsonRpc disposal issues
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com >
* Fix file encoding: add UTF-8 BOM to Program.cs
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com >
* Fix dotnet-format errors: UTF-8 BOM, remove unused logger, add this qualifier, remove unnecessary usings
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com >
* Fix test file encoding and remove redundant cast
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com >
* Add AsAIAgent extension methods for CopilotClient with tests
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com >
* Remove IL suppressions, use TryComplete for channel writer, remove TCS from streaming
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Keep session alive across calls, add tools overload, add tests
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Revert session persistence changes - sessions dispose after each call
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Add CreatedAt property mapping using DateTimeOffset.UtcNow
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Add DataContent handling via temp files and attachments
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Fix formatting: remove extra indentation, simplify Path references, remove unused using
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Refactor: extract helper methods to reduce duplication in DataContent handling
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Updated sample and session config mapping
* Added instructions parameter
* Updated README
* Address PR feedback: reorder params, optimize dictionary, update prefix, remove InternalsVisibleTo, update sample prompts, add defaults
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Remove StreamJsonRpc reference from sample project
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Fix parameter ordering: tools now after description, rename to s_mediaTypeExtensions, simplify extension logic, update prompts, fix test expectations
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Fix streaming prompt: change Python to C# for Fibonacci example
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Handle all SDK events, add UsageContent support, fix model name, remove AutoStart, add using for Channels
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Resolved build errors
* Addressed comments
* Small fix
* Addressed comment
* Small fix
* Addressed comments
* Added integration tests
* Small update
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com >
Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com >
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
2026-01-27 18:51:56 +00:00
westey and GitHub
a3a9147e61
.NET: [BREAKING] Rename AgentThread to AgentSession ( #3430 )
...
* Rename AgentThread to AgentSession
* Add more renames
* Update readme files
* Revert nullable variable change and further fixes.
* Revert change in header name
* Fix some comments and tests
* Update changelog.
* Address PR feedback.
* Fixing code review comments.
* Fix new errors after merging latest code.
2026-01-26 16:30:25 +00:00
westey and GitHub
21e00c054b
.NET: Rename ChatMessageStore to ChatHistoryProvider ( #3375 )
...
* Rename ChatMessageStore to ChatHistoryProvider
* Fix merge issue
* Fixed PR comments
* Fix tests after property rename
* Add unit tests and fix merge issues
* Fix encoding
2026-01-23 15:49:01 +00:00
westey and GitHub
3ec881509c
.NET: Delete sync extension methods for agent ( #3291 )
...
* Delete sync extension methods for agent
* Fix comments and obsolete attribute
* Remove more sync methods.
* Fix naming and comments.
* Fix unit tests
2026-01-20 11:24:58 +00:00
Dmytro Struk and GitHub
2ab859dd94
.NET: [BREAKING] Renamed CreateAIAgent/GetAIAgent to AsAIAgent ( #3222 )
...
* Renamed chat client extension method
* Additional renaming
* Updated documentation
* Fixed tests
* Small fix
* Small fix
2026-01-15 16:01:15 +00:00
e192af93a7
.NET: Update Google.GenAI to 0.11.0 and remove polyfill implementations ( #3232 )
...
* Initial plan
* Update Google.GenAI to 0.11.0 and remove polyfill files
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
2026-01-15 15:16:32 +00:00
SergeyMenshykh and GitHub
c70e594e6c
.NET: [Breaking] RenameAgentRunResponse and AgentRunResponseUpdate classes ( #3197 )
...
* rename AgentRunResponse and AgentRunResponseUpdate classes - part1
* rename varialbles, parameters, methods and tests
* rollback unnecessary changes
2026-01-14 10:27:41 +00:00
westey and GitHub
bb6ecd9c71
.NET: [BREAKING] Change GetNewThread and DeserializeThread to async ( #3152 )
...
* Change GetNewThread and DeserializeThread plus ChatMessageStore and AIContextProvider Factories to async
* Merge fixes
2026-01-12 11:25:51 +00:00
3ef67eff10
.NET: [BREAKING] Refactor ChatMessageStore methods to be similar to AIContextProvider and add filtering support ( #2604 )
...
* Refactor ChatMessageStore methods to be similar to AIContextProvider
* Fix file encoding
* Ensure that AIContextProvider messages area also persisted.
* Update formatting and seal context classes
* Improve formatting
* Remove optional messages from constructor and add unit test
* Add ChatMessageStore filtering via a decorator
* Update sample and cosmos message store to store AIContextProvider messages in right order. Fix unit tests.
* Update Workflowmessage store to use aicontext provider messages.
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* Improve xml docs messaging
* Address code review comments.
* Also notify message store on failure
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
2026-01-05 11:51:15 +00:00
8b4f7d5e29
.NET: [Breaking] Introduce RunCoreAsync/RunCoreStreamingAsync delegation pattern in AIAgent ( #2749 )
...
* Initial plan
* Refactor AIAgent: Make RunAsync and RunStreamingAsync non-abstract, add RunCoreAsync and RunCoreStreamingAsync
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* Fix infinite recursion in test implementations
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* Make RunAsync and RunStreamingAsync non-virtual as requested
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* Fix DelegatingAIAgent subclasses to use RunCoreAsync/RunCoreStreamingAsync
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* Fix XML documentation references in AnonymousDelegatingAIAgent
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* Restore <see cref> tags with proper qualified signatures in AnonymousDelegatingAIAgent
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* Rollback unnecessary XML documentation changes in AnonymousDelegatingAIAgent
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* Remove pragma and update crefs to RunCoreAsync/RunCoreStreamingAsync
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* Fix EntityAgentWrapper to call base.RunCoreAsync/RunCoreStreamingAsync
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* fix compilation issues
* fix compilatio issue
* fix tests
* fix unit tests
* fix unit test
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
Co-authored-by: SergeyMenshykh <sergemenshikh@gmail.com >
Co-authored-by: Chris <66376200+crickman@users.noreply.github.com >
2025-12-30 12:24:09 +00:00
a71f768331
.NET: [Breaking] Delete display name property ( #2758 )
...
* delete the AIAgent.DisplayName property
* use agent name as a first value for activity display name
* Update dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/HandoffAgentExecutor.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-18 09:22:45 +00:00
3c322c91e7
.NET: Update to latest Azure.AI.*, OpenAI, and M.E.AI* ( #2850 )
...
* Update to latest Azure.AI.*, OpenAI, and M.E.AI*
Absorb breaking changes in Responses surface area
* Update dotnet/samples/AgentWebChat/AgentWebChat.AgentHost/Utilities/ChatClientExtensions.cs
* Update dotnet/samples/AgentWebChat/AgentWebChat.AgentHost/Utilities/ChatClientExtensions.cs
* Update dotnet/samples/AgentWebChat/AgentWebChat.AgentHost/Utilities/ChatClientExtensions.cs
* Update dotnet/samples/GettingStarted/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Using patch to remove the model is necessary, updated the response client to actually use the the ForAgent
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com >
2025-12-16 12:41:20 +00:00
0d9ae1920d
.NET: use valid Gemini model ( #2695 )
...
* use proper Gemini model
* use named parameters
---------
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com >
2025-12-10 12:23:06 +00:00
Stephen Toub and GitHub
b01fd23cd2
Update analyzers for .NET 10 SDK ( #2611 )
2025-12-10 10:34:56 +00:00
2f0b2db12a
fix: Standardize OpenAI API key environment variable naming ( #1001 ) ( #2629 )
...
- Replace OPENAI_APIKEY with OPENAI_API_KEY across all samples
- Replace AZURE_FOUNDRY_OPENAI_APIKEY with AZURE_FOUNDRY_OPENAI_API_KEY
- Ensures consistency with OpenAI's standard naming convention
- Applies to .NET and Python samples
Fixes #1001
Co-authored-by: Alexander Zarei <alzarei@users.noreply.github.com >
2025-12-10 10:33:35 +00:00
SergeyMenshykh and GitHub
69225b4aa2
.NET: [BREAKING] Change namespaces of the Microsoft.Agents.AI.OpenAI classes ( #2627 )
...
* change namespaces for agents and extension methods of the Microsoft.Agents.AI.OpenAI package
* remove unnecessary namespace
* remove unused namespaces
* fix compilation issues and rrolled back removed run methods
* sort usings
* add extension methods for AIAgent to work with OpenAI Responses primitives
* Move OpenAIChatClientAgent and OpenAIResponseClientAgent to samples
* sort usings
* sort usings
2025-12-09 12:58:44 +00:00
9c1b2f9a3f
.NET: Annotate all public methods of OpenAIAssistantClientExtensions with Obsolete attribute ( #2640 )
...
* Initial plan
* Add Obsolete attribute to all public methods of OpenAIAssistantClientExtensions
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* Add pragma warning disable CS0618 to files using deprecated OpenAI Assistants API
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
* Update Obsolete attribute message to use requested text
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
2025-12-05 12:27:48 +00:00
Roger Barreto and GitHub
ee340bef1d
Address vulnerability ( #2631 )
2025-12-04 11:42:35 +00:00
ceaea46765
.NET: Change Anthropic Azure sample to use Athropic.Foundry package + cachi… ( #2578 )
...
* Change Anthropic Azure sample to use Athropic.Foundry package + caching token
* Fix apikey null
* Update dotnet/samples/GettingStarted/AgentProviders/Agent_With_Anthropic/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address copilot feedback
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-02 16:50:14 +00:00
Roger Barreto and GitHub
139c292807
.NET: Add Google ChatClientAgent provider sample using with Gemini model ( #2554 )
...
* Add Gemini model sample
* Update Readme
* Address Comments
* Address format
2025-12-01 18:51:15 +00:00
0723f1d183
.NET: Foundry V2 - Update Sample and Docs for clear distinction between Classic/New Foundry Agents. ( #2459 )
...
* Address potential confusion around agent version vs API version
* Address potential confusion around agent version vs API version
* Add extra documentation for clarity
* Remove V2 remainers
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: westey <164392973+westey-m@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@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-11-26 14:37:03 +00:00
westey and GitHub
b6c3b8d3f2
[BREAKING] Remove NotifyThreadOfNewMessagesAsync AIAgent helper ( #2450 )
...
* Remove NotifyThreadOfNewMessagesAsync helper from AIAgent
* Fix bug
* Update comment
2025-11-25 11:59:26 +00:00
1dde57981e
.NET: Add Anthropic Agent Package ( #2359 )
...
* WIP
* WIP
* Simple call working
* Update Thinking sample
* Non-Streaming Function calling working
* Update Anthropic Impl
* Public Preps
* UT + IT working
* Update documentation + samples
* Update variable
* Revert nuget.config
* Add IT for BetaService implementation
* Remove polyfill + enable IT to run for netstandard 2.0
* Skipping Anthropic IT's for manual execution and avoid pipeline execution
* Fix compilation error
* Address error in UT
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Fix warning
* Net 10 update
* Update for NET 10, remove Anthropic.Foundry due to vulnerability
* Final missing adjustments for NET 10
* Address PR comments
* Remove unused code
* Address feedback
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-25 11:53:18 +00:00
Stephen Toub and GitHub
dc2b109b50
.NET: Upgrade to .NET 10 ( #2128 )
...
* Upgrade to .NET 10
- Require .NET 10 SDK
- Include net10.0 assets in all assemblies
- Move net9.0-only targets to net10.0
- Update LangVersion to latest
- Remove complicated distinctions between debug target TFMs and release target TFMs
- Remove unnecessary package dependencies when built into netcoreapp
- Clean up some ifdefs
- Clean up some analyzer warnings
* Fix CI
2025-11-22 04:14:15 +00:00
+2
e706f07868
.NET: Add Microsoft.Agents.AI.AzureAI (Azure.AI.Project 1.2) Support ( #1662 )
...
* WIP
* Fixed build errors (#1638 )
Comment and nullable type alignment
* .NET: Azure.AI.Agents Package Split + Initial Extensions (#1657 )
* Move packages
* Update nuget.config
* Address Xmldoc
* Remove format from branches checks
* Address Xmldocs
* Add more details to the implementation
* Moving Agent logic to ChatClient
* Adding Name and Id overrides to AzureAIAgent
* Updating extensions
* Add GetAiAgent extensions
* Adding support for version as name can conflict 409 using the Agents API with same name
* Addressing more updates to the extensions
* More improvements
* Remove debugging code from sample
* Address copilot feedback
* Apply suggestions from co-pilot code review
* Update Directory.Packages.props
Fix package version rollback:
Azure.AI.Agents.Persistent (beta-6 => beta-7)
* .NET: Add comprehensive unit tests for Microsoft.Agents.AI.AzureAIAgents extension methods (#1786 )
* Initial plan
* Add comprehensive unit test project for Microsoft.Agents.AI.AzureAIAgents
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
* Add README documenting test project and package dependency requirements
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
* Fix documentation URL to use learn.microsoft.com
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
* Bump back AAAP 1.2.0-beta.7
* Address AI generated UT's
* Remove UT Readme
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* .NET: Change model to be required just for prompt agent definition specific extensions (#1812 )
* Remove unneeded model from extensions
* Add noop justification
* Update Package Nameing: V1 -> AzureAI.Persistent / V2 -> AzureAI (#1829 )
* .NET: Update Extensions for Strict Agent Definitions + Improvements (#1892 )
* Update Package Nameing: V1 -> AzureAI.Persistent / V2 -> AzureAI
* Update agents and extensions to comply with strict agent definitions
* More static updates
* Address UT, and ResponseTool support
* Improving reusability extensions
* Addressing ResponseTools Unit Tests and extension setup
* Adapted workaround on breaking AAA with OpenAI 2.6.0
* Small updates
* Remove strictness when retrieving agents, improved XmlDocs
* Improve sample comments
* Update dotnet/tests/Microsoft.Agents.AI.AzureAI.UnitTests/AgentsClientExtensionsTests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address PR comments
* Address UT failing
* Address Copilot feedback
* Address Copilot feedback
* Address comment typo
* Address PR feedback
* Address typo
* Add missing Extensions with ChatClientAgentOptions
* Address comments
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Version update (#1901 )
* Updated package version (#1906 )
* .NET: Allow Declarative AIAgents Extensions (#1931 )
* Improve reusability of extension code and additional option to losen the strictiness of in-proc tools
* Add missing UT scenarios
* Add missing UT test scenarios
* Normalize changes
* Updated (#1948 )
* .NET: AgentDefinition extensions method simplification (#1967 )
* Update extensions methods that accepts AgentDefinition type to not be restrictive
* Update Unit Tests
* Revert yarn/package-lock
* Revert yarn/package-lock
* Address copilot feedback
* Fix bad merge
* .NET Workflows - WIP Declarative action update (#1761 )
* WIP
* Fixed build errors (#1638 )
Comment and nullable type alignment
* Sync to SDK update
* Checkpoint
* Checkpoint: Tests passing
* Checkpoint: EndWorkflow
* Add trace
* .NET: Azure.AI.Agents Package Split + Initial Extensions (#1657 )
* Move packages
* Update nuget.config
* Address Xmldoc
* Remove format from branches checks
* Address Xmldocs
* Add more details to the implementation
* Moving Agent logic to ChatClient
* Adding Name and Id overrides to AzureAIAgent
* Updating extensions
* Add GetAiAgent extensions
* Adding support for version as name can conflict 409 using the Agents API with same name
* Addressing more updates to the extensions
* More improvements
* Remove debugging code from sample
* Address copilot feedback
* Apply suggestions from co-pilot code review
* Checkpoint
* Update Directory.Packages.props
Fix package version rollback:
Azure.AI.Agents.Persistent (beta-6 => beta-7)
* Add project reference
* .NET: Add comprehensive unit tests for Microsoft.Agents.AI.AzureAIAgents extension methods (#1786 )
* Initial plan
* Add comprehensive unit test project for Microsoft.Agents.AI.AzureAIAgents
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
* Add README documenting test project and package dependency requirements
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
* Fix documentation URL to use learn.microsoft.com
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
* Bump back AAAP 1.2.0-beta.7
* Address AI generated UT's
* Remove UT Readme
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* .NET: Change model to be required just for prompt agent definition specific extensions (#1812 )
* Remove unneeded model from extensions
* Add noop justification
* Update Package Nameing: V1 -> AzureAI.Persistent / V2 -> AzureAI (#1829 )
* Checkpoint for merge
* No build errors
* .NET: Update Extensions for Strict Agent Definitions + Improvements (#1892 )
* Update Package Nameing: V1 -> AzureAI.Persistent / V2 -> AzureAI
* Update agents and extensions to comply with strict agent definitions
* More static updates
* Address UT, and ResponseTool support
* Improving reusability extensions
* Addressing ResponseTools Unit Tests and extension setup
* Adapted workaround on breaking AAA with OpenAI 2.6.0
* Small updates
* Remove strictness when retrieving agents, improved XmlDocs
* Improve sample comments
* Update dotnet/tests/Microsoft.Agents.AI.AzureAI.UnitTests/AgentsClientExtensionsTests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address PR comments
* Address UT failing
* Address Copilot feedback
* Address Copilot feedback
* Address comment typo
* Address PR feedback
* Address typo
* Add missing Extensions with ChatClientAgentOptions
* Address comments
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Updated package version (#1897 )
* Version update (#1901 )
* Checkpoint
* Updated package version (#1906 )
* Checkpoint
* Checkpoint
* Checkpoint
* Align with azure ai agent
* Update dotnet/samples/GettingStarted/Workflows/Declarative/StudentTeacher/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/samples/GettingStarted/Workflows/Declarative/MCPToolApproval/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/samples/GettingStarted/Workflows/Declarative/DeepResearch/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Refactored external input
* Update dotnet/samples/GettingStarted/Workflows/Declarative/MCPToolApproval/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Agent tools patch
* Demos validated
* Checkpoint
* Hygiene
* Checkpoint - Samples
* Update dotnet/samples/GettingStarted/Workflows/Declarative/StudentTeacher/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/samples/GettingStarted/Workflows/Declarative/StudentTeacher/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Checkpoint
* Checkpoint - Deep Research
* Update baseline
* Update
* Typo
* Checkpoint
* Typos
* Sample cleanup
* Update dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/AzureAgentProvider.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/src/Microsoft.Agents.AI.AzureAI/AgentsClientExtensions.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/samples/GettingStarted/Workflows/Declarative/FunctionTools/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/samples/GettingStarted/Workflows/Declarative/StudentTeacher/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/samples/GettingStarted/Workflows/Declarative/ToolApproval/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/samples/GettingStarted/Workflows/Declarative/DeepResearch/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Typo
* Typo
* Fix input loop
* Sample - Function Calling / External Input
* Typo
* Finessed
* Checkpoint
* Fix feed
* Checkpoint - so close
* Ding dong!
* "there" ***
* Fixup comments
* Fix sample
* Code analysis
* Header
* Typo (variableName)
* Remove dead code
* Skip test (agent api ratchet)
* Comment
* Update dotnet/samples/GettingStarted/Workflows/Declarative/StudentTeacher/Program.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Typo
---------
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com >
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com >
* .NET: Latest updates Pre/Post V2 Bugbash Findings (#2040 )
* Improve V2 logic before/after bugbash prep
* Apply suggestions from code review
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 >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* .NET: Update Foundry Agents to latest 2.0.0 alpha.20251107.3 (#2050 )
* Update extensions for new CreateVersionOptions structure
* Update unit tests
* Addresss capitalized
* Update AgentsClientExtensionsTests.cs
Fix invalid cast format failure
* .NET: Feature foundry agent + user agent (#2058 )
* Update unit tests
* Add user-agent protocol calls
* Update unit tests
* Update unit tests with http handler confirmation
* UT fix
* Fix xmldoc
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address copilot feedback
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* .NET: Update Extensions to be less restrictive for GetAIAgents (#2091 )
* Update behavior / restrictiveness when retrieving agents
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address format
* Address copilot feedback
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Chris <66376200+crickman@users.noreply.github.com >
* .NET Workflows - Support "structured inputs" feature for declarative workflows (#2053 )
* Bump version for release
* .NET Workflows - Separate Foundry/AzureAI Provider into its own package (#2078 )
* Remove unused using directive in AzureAgentProvider
Removed unused using directive for Extensions.
* .NET: Updates to Foundry Agents Package (#2125 )
* Remove the conversation creation always
* Update unit tests + address IL + refactor
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Internalize unused methods
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Fix declarative workflows integration testcase
* .NET: Feature foundry agent/agent reference extension (Python Parity with Name + Version option) (#2147 )
* Add agent reference extensions
* Add UT covering AgentReference and ModelId
* .NET: Add GettingStarted Samples for Agents V2. (#2159 )
* Add gettingstarted samples for Foundry Agents
* Address structured outputs
* Net 10 -> Net 9 Temporary
* Net 10 -> Net 9 Temporary
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address missing docs + old
* Drop var for samples
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address copilot feedback
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* .NET: Foundry Agents V2 - Add CodeInterpreter Sample (#2180 )
* Adding Code Interpreter sample and AgentName naming validation
* Add agent name check UT
* Improve sample code
* Apply suggestion
* Apply suggestion
* Fixed (#2190 )
* .NET Workflows - Add "CustomerSupport" sample (#2102 )
* .NET Workflows - Add sample for hosted declarative workflow (#2199 )
* fwiw
* Less blank lines
* Fixed (#2204 )
* Update version (#2206 )
* .NET: Feature foundry agent/update breaking v2.0 to v1.2 (#2212 )
* Migration WIP Checkpoint 1
* Build + UT + Workflow passing
* Address latest commits after break
* Revert rename in unrelated files
* Address PR comments
* Class renames
* Allow dotnet-format workflow on feature branches
Revert unintentional edit
* .NET: Add Conformance Integration Tests for AzureAI Package (#2237 )
* Conformance tests added and passing
* Correct namespace
* Update Azure.AI.Project to latest public nuget version
* .NET: Added Computer use tool sample (#2235 )
* Initial computer use sample implementation.
* Added background thread to allow polling for long running requests.
* Removed unrequired try-catch block and added missing thread for agent call.
* Removed irrelevant chatOptions and updated code based on feedback.
* Updated image assets and fixed response issue.
* Updated based on PR comments.
* Update to Azure.AI.Project
---------
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com >
* Package descriptions
---------
Co-authored-by: Chris <66376200+crickman@users.noreply.github.com >
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com >
Co-authored-by: Chris Rickman <crickman@microsoft.com >
Co-authored-by: Stephen Toub <stoub@microsoft.com >
Co-authored-by: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com >
Co-authored-by: Peter Ibekwe <109177538+peibekwe@users.noreply.github.com >
2025-11-15 10:43:02 +00:00
Roger Barreto and GitHub
6ca907f23f
.NET: [Breaking Change] Moving MAAI.AzureAI V1 Package -> MAAI.AzureAI.Persistent (V1) ( #1902 )
...
* Update AzureAI -> AzureAI.Persistent
* Fix sample reference
2025-11-05 13:28:00 +00:00
ab450078ab
Update to M.E.AI 9.10 ( #1461 )
...
And other System.*/Microsoft.Extensions.* updated today
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
2025-10-15 08:33:33 +00:00
westey and GitHub
d6fdb91480
.NET: Inline const values in samples where used only once ( #1387 )
...
* Inline const values in samples where used only once
* Fix some spacing issues and use consistent ordering of settings/params
2025-10-10 16:50:53 +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
westey and GitHub
6a4e759965
Add sample showing how to use any foundry model ( #1159 )
2025-10-03 15:34:16 +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
westey and GitHub
364188c44f
.NET: Add link inspector ( #1062 )
...
* Add link inspector
* Comment out excludedirs while it's empty
* Fix broken links
* More links fixes
* Push further fixes
* Fix more links
2025-10-01 16:43:17 +00:00
SergeyMenshykh and GitHub
5f1417ab94
.NET: Align environment variable names ( #1053 )
...
* alignt environment variable names
* rename modelId variable names
2025-10-01 10:49:45 +00:00
SergeyMenshykh and GitHub
69284e9dfc
align env. varibale names ( #1022 )
2025-09-30 18:29:41 +00:00
170c2c715a
Python: Update README files: Fill empty documentation and expand minimal content ( #980 )
...
* Initial plan
* Fill empty python/samples README and expand dotnet custom implementation README
Co-authored-by: dmytrostruk <13853051+dmytrostruk@users.noreply.github.com >
* Fix broken documentation links in main README
Co-authored-by: dmytrostruk <13853051+dmytrostruk@users.noreply.github.com >
* Fix installation instructions in Python main package README
Co-authored-by: dmytrostruk <13853051+dmytrostruk@users.noreply.github.com >
* Address PR feedback: revert main README and Python package README, remove empty prerequisites section and repository link
Co-authored-by: dmytrostruk <13853051+dmytrostruk@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: dmytrostruk <13853051+dmytrostruk@users.noreply.github.com >
2025-09-29 23:59:50 +00:00
Aditya Mandaleeka and GitHub
28ad256931
.NET: Change Runtime namespaces to Microsoft.Agents.AI.Runtime ( #957 )
...
* Rename MEAI.Runtime to MAAI.Runtime.
* Missed.
2025-09-27 06:10:14 +00:00
westey and GitHub
863c8d7471
.NET: Adding a few small sample improvements ( #914 )
...
* A few small sample improvements
* Address PR comments.
* Simplify Mcp sample further.
2025-09-26 10:25:29 +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
Stephen Toub and GitHub
03ef7f054f
.NET: Add AgentWorkflowBuilder group chat ( #861 )
...
* Add AgentWorkflowBuilder group chat
And fix a variety of issues along the way:
- Use DateTime{Offset}.UtcNow rather than Now
- AIAgentHostExecutor shouldn't be publishing empty messages
- Sequential workflows should be flowing all history and not just the output from the previous agent as the input into the next agent
- Renamed some of the new agent workflow methods... still not super happy with the shape, though
- Simplified handoffs builder, e.g. using a hashset with a custom comparer instead of a dictionary
- Improved multi-service use by trying to change assistant->user role for messages created by other agents
- Changed MessageMerger to rely on M.E.AI's coalescing more and to avoid empty contents / text
- Ensured that messages from ChatClientAgent include MessageId and CreatedAt timestamps
- Avoided including instructions for agents in a handoff workflow that don't have any handoffs
- Removed the unnecessary end function in handoffs
- Improved naming of executors to include agent name for debuggability
- Use "N" formatting with Guid.ToString everywhere, to avoid the unnecessary extra dash character which is also not valid in various places (like function tool names)
- Replace `params T[]` with `params IEnumerable<T>` to make public APIs more flexible in what they consume
* Address feedback
- Fix unintentional provider change in sample
2025-09-24 16:38:34 +00:00