62854197aa
.NET: Fix A2A conversion routines to ignore unknown content types instead of throwing exceptions ( #1154 )
...
* Initial plan
* Update A2A conversion routines to ignore unknown content types
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
* Fix dotnet format
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com >
Co-authored-by: Stephen Toub <stoub@microsoft.com >
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
2025-10-06 10:29:43 +00:00
Victor Dibia and GitHub
5a7ca13af6
feat: Add name and description support to workflows ( #1183 )
...
Add optional name and description fields to workflows in both Python and .NET implementations, matching the existing agent API pattern.
Python changes:
- Add name/description parameters to WorkflowBuilder.__init__
- Add name/description attributes to Workflow class
- Include name/description in to_dict() serialization
- Add WORKFLOW_NAME and WORKFLOW_DESCRIPTION OTEL attributes
- Add tests in test_serialization.py and test_workflow_observability.py
.NET changes:
- Add Name and Description properties to Workflow and Workflow<T>
- Add WithName() and WithDescription() fluent methods to WorkflowBuilder
- Add WorkflowName and WorkflowDescription OTEL tags
- Add test in WorkflowBuilderSmokeTests.cs
This enables applications like DevUI to display human-readable workflow names (e.g., 'Data Processing Pipeline') instead of auto-generated UUIDs (e.g., 'Workflow 50fdd917').
Fixes : #1181
2025-10-04 15:20:17 +00:00
50c532b4ae
docs: Update References to Agent2Agent protocol to use correct terminology ( #1162 )
...
Should be `Agent2Agent Protocol` not `Agent-to-Agent` unless talking about general agent to agent communication
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com >
2025-10-03 19:10:05 +00:00
Jacob Alber and GitHub
32e7ff00b5
.NET: Add support for Subworkflows and many threading fixes ( #1066 )
...
* feat: Add support for Workflow-as-Executor
* Fixes routing of 'object' compile-typed variables to properly take in type information
* Fixes a concurrency issue in StepTracer
* fix: Make Subworkflow ExternalRequests work properly
* fix: Threading and Concurrency fixes; prep for OffThread Mode
* refactor: Remove dead code around OffStreamRunEventStream
Currently not used, and will be replaced with a rewrite when brought back, so having it in the change is not valuable.
* ci: Work around issues with dotnet-format not properly analyzing the source
* fix: Fix the logic of AsyncCoordinator and AsyncBarrier
* Prevent individual wait cancellations from canceling the entire barrier
* Propagate information about whether the wait was completed or cancelled, and whether any waiters were present when released
* fix: Remove superfluous acces to .Keys in InProcStepTracer
* refactor: Clean up AsyncCoordinator's use of AsyncBarrier
2025-10-03 17:26:30 +00:00
880a99ca05
.NET Workflows - Enable "human in the loop" case for declarative integration tests ( #1171 )
...
* Enabled
* Rollback visitor
* Update dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Framework/WorkflowTest.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-03 17:24:22 +00:00
westey and GitHub
3ee7461b59
Fix createdAt merging for agent run updates ( #1161 )
2025-10-03 16:04:06 +00:00
Jacob Alber and GitHub
cfcb90bfe0
fix: Make CheckpointInfo constructor public ( #1156 )
...
In order to be able to restore checkpoints (and even implement ICheckpointStore)
2025-10-03 15:42:04 +00:00
cf831b0348
Update A2A library to 0.3.1-preview ( #1141 )
...
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com >
2025-10-03 09:31:31 +00:00
Stephen Toub and GitHub
4daeeb0f07
Add some DebuggerDisplays / DebuggerTypeProxys to abstraction types ( #1144 )
2025-10-03 08:51:49 +00:00
390cc541ea
.NET Workflows - Clean-up declarative docs and product-context. ( #1134 )
...
* Clean-up
* Rollback sample
---------
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com >
2025-10-02 20:06:40 +00:00
Chris and GitHub
08ea625de0
.NET: NET Workflows - Skip conversation initialization when identifier is provided ( #1087 )
...
* Fix
* Code-gen case
* Tests
* Autosend logic
* Build fix
* Namespace
* Validation enhancement
2025-10-02 14:27:46 +00:00
westey and GitHub
cb62407fb8
.NET: Improve some core types xml docs ( #1115 )
...
* Improve some core types xml docs
* Consistent period usage
2025-10-02 14:18:22 +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
b1282254df
.NET: Move the AsAIAgent extension methods to the correct class ( #1106 )
...
* Move the AsAIAgent extension methods to the correct class
* Fix format issue
* Disable unit test, see issue #1109
---------
Co-authored-by: Mark Wallace <markwallace@microsoft.com >
2025-10-02 12:41:22 +00:00
Stephen Toub and GitHub
3ae9065b6b
Tweak AgentAbstractionsJsonUtilities to better match AIJsonUtilities ( #1094 )
...
Functional change includes setting the encoder used by the options and employing JsonStringEnumConverter.
2025-10-02 05:19:27 +00:00
6d0f28eb9b
.NET Workflows - Re-enable Declarative Integration Tests ( #1080 )
...
* Investigate
* Next
* Update initialization
* Should be ok
* Agent definition dx
* Link agent definitions
* Link agent definitions
* Path resolution #2
* Fix path resolution
* Another pass
* Another
* Better
* One more
* Whoopsie
* Update dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Framework/AgentFactory.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Namespace
* Cleanup
* Temp config for pipeline
* Another temp workaround
* Test config: Bing Grounding Tool
* Update template
* Next pass
* Ok now
* Cleanup
* Test note
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-01 22:21:45 +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
Stephen Toub and GitHub
0fef277c70
Remove System.Linq.Async dependency from src assemblies ( #1069 )
...
We shouldn't be shipping any more dependencies on this package, as it's becoming legacy, replaced by System.Linq.AsyncEnumerable.
We'll eventually want to replace it with System.Linq.AsyncEnumerable in all tests/samples, too, but that's hard to do until SK updates to use S.L.AsyncEnumerable once its 10.0.0 version is released. I did remove the package reference from tests/samples where it's not needed.
2025-10-01 17:17:21 +00:00
Dmytro Struk and GitHub
193503cab9
Added nuget-props to hosting packages ( #1068 )
2025-10-01 16:20:41 +00:00
Chris and GitHub
f5ca4f42c0
.NET Workflows -Fix Declarative Workflow Tests ( #1065 )
...
* Fixed
* Restore generated workflow
* Project
* Fine tune
* Update baseline
* Adjust test-case
2025-10-01 16:15:46 +00:00
Roger Barreto and GitHub
f9a3918916
Address bug when agent rawrepresentation is a MEAI type and returns it with null RawRep ( #1054 )
2025-10-01 10:37:12 +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
Stephen Toub and GitHub
5c0bea12e3
Add linePragmas="false" to t4 templates ( #1041 )
2025-10-01 08:43:29 +00:00
0966a1d8ae
Bump version and fix duplicate project titles ( #1046 )
...
Co-authored-by: Mark Wallace <markwallace@microsoft.com >
2025-10-01 08:01:29 +00:00
Roger Barreto and GitHub
3d04517877
.Net: Bugfix FunctionInvocation Middleware not working when no ChatOptions provided ( #1030 )
...
* Bugfix FunctionInvocation Middleware
* Throw when specialized RunOptions are used for Function Invocation middleware + UT
2025-10-01 07:10:12 +00:00
Stephen Toub and GitHub
498fc06fd6
Hide/remove some JSON utility classes ( #1039 )
2025-10-01 05:38:46 +00:00
Stephen Toub and GitHub
9360780ce5
Remove defunct AgentExtensions.WithOpenTelemetry ( #1033 )
2025-10-01 00:24:13 +00:00
Tao Chen and GitHub
042099009f
.NET: Workflow observability ( #959 )
...
* Add basic Workflow telemetry
* Add sample
* Add source propagation for executor spans
* Fix tests and address comments
* Fix formatting
* Fix declarative unit tests
* Address comments
* Remove Microsoft.Extensions.AI.Agents.EnableTelemetry
* Formatting
* Formatting
* Formatting
* fix solution
* Address comments
* Add workflow json definition for serialization
* Formmating
* Address comments
2025-09-30 23:40:04 +00:00
Stephen Toub and GitHub
2539282d30
.NET: Fix some more static analysis diagnostics ( #1025 )
...
* S1006
* S2219
* S3236
* S3260
* S1125
* IDE0063
* IDE0062
* IDE0028
2025-09-30 22:50:22 +00:00
77404d165c
.NET Workflows - Code Generation for Declarative Workflow ( #655 )
...
* Notes
* Readme typo
* Update readme
* Checkpoint
* Namespace fix
* Fix ID and namespace
* Checkpoint
* Verified
* Comments
* Isolate "Kit"
* Address note: static
* Checkpoint
* Checkpoint "Executor<>"
* Prefix and internal executors
* Test passing
* Cleanup
* Rename "session" concept
* Revert workflow debug
* Fix template base / pragma
* Tune system scope
* Update dotnet/src/Microsoft.Agents.Workflows.Declarative/CodeGen/ResetVariableTemplate.tt
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Fix empty template
* Add validation for codegen ut
* Fix test
* Codegen baselines
* Constant
* Prep
* Mark TODO
* Fix
* Namespace
* One more
* Update baselines
* Checkpoint
* Checkpoint
* Checkpoint
* fme
* Checkpoint
* Another step
* Fixed up
* Roslyn
* Fix
* More cleaning
* Async
* Fix
* Enum checkpoint
* Refine enum
* Checkpoint
* Sync templates
* Checkpoint
* Streamline
* Pre-merge analyzer updates
* Foreach
* Placeholders
* Checkpoint
* Clean-up
* Sample path resolution
* Checkpoint
* Checkpoint - Workflow Code Building
* Validation
* Test cleanup
* Update test basline
* Update test baseline
* Fix DefaultTemplate usage
* Validation checkpoint
* Fix break/continue edges
* Verify generated code builds
* Fix merge
* Fix build validation
* Update template handling of literal string values.
* Test for metadata case
* Update baselines
* Fix merge
* Checkpoint
* Checkpoint: Conditions
* Invoke Agent Checkpoint
* Namespace
* Address code-analysis issues
* Cross platform test support
* Invoke agent checkpoint
* Clean sample
* Checkpoint: Agent Invoke Input Messages
* Checkpoint - Passing
* Checkpoint
* Regenerate all template + port conversation fix
* Checkpoint: Tests good
* Fix test for unbuntu
* Fix build command
* Checkpoint - E2E
* Test fix
* Update integration tests
* Fix merge
* Update
* Checkpoint !!!
* Baby steps
* Checkpoint
* Checkpoint E2E !!!
* So close...
* Integrate test validation
* Fix merge
* Rebase tests
* Namespace
* Namespace
* Test cleanup
* Sample comment cleanup
* Checkpoint: List conversion
* Include these
* CheckPoint: ParseValue
* Namespace
* Fix sampel
* More namspace
* Comments
* Test updates
* Test fix
* Better build
* Shared code
* Sort solution
* Fix build
* Prune solution
* One more
* Conversion matrix
* Final table conversion
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-30 21:56:14 +00:00
Stephen Toub and GitHub
2d20e644df
.NET: Update M.A.AI.OpenAI implementations ( #1018 )
...
* Update M.A.AI.OpenAI implementations
- There was only a ChatClient-based agent. Add a Responses one, too.
- Fix the public extension methods to create OpenAI types even when not backed by the right OpenAI client.
- Add reusable AgentRunResponse{Update} to ChatResponse{Update} conversion routines that are then used by the OpenAI agents and elsewhere
* Address feedback
2025-09-30 19:06:10 +00:00
Stephen Toub and GitHub
2d2a5bcd66
Clean up a few ifdefs ( #1016 )
2025-09-30 18:58:00 +00:00
Ben Thomas and GitHub
df3e12b2ed
.Net: Visualizing dotnet workflows ( #882 )
...
* Adding more test for workflow vizualization.
* Improving README for sample.
* More cleanup.
* Removing rendering of workflow visualization and adding basic support for mermaid format.
* Adding basic mermaid tests.
* Improving sample. Switching to another branch.
* About to merge from main.
* Formatting.
* More fromatting.
* Removng uneeded call to ToUpper.
* Adding README.
* Moving samples under workflow to workflows.
* Removing uneeded README for map-reduce sample.
2025-09-30 16:29:19 +00:00
Chris and GitHub
1e53fb458f
.NET Workflows - Fix "Human In Loop" sample and update "AutoSend" behavior ( #991 )
...
* Fix sample and autosend
* Specify "ConversationId"
* Namespace
* Perf fix
* Namespace
* Filter for appropriate message
2025-09-30 16:13:15 +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
4866936041
.NET: Align or add NuGet package settings for all packages ( #1013 )
...
* Align or add NuGet package settings for all packages
* Update dotnet/src/Microsoft.Agents.AI.AzureAI/Microsoft.Agents.AI.AzureAI.csproj
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Address code review feedback
---------
Co-authored-by: Mark Wallace <markwallace@microsoft.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-30 15:25:09 +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
7967983755
Python: .NET: [BREAKING] Remove Actor-based runtime ( #977 )
...
* Remove Actor-based runtime
* Fix formatting
* Remove cosmos db vestigials
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com >
Co-authored-by: Stephen Toub <stoub@microsoft.com >
2025-09-30 14:09:32 +00:00
Stephen Toub and GitHub
0502f3ef91
.NET: Update OpenTelemetryAgent to latest spec ( #967 )
...
* Update OpenTelemetryAgent to latest spec
It was stale. Rather than try to keep it up-to-date manually, I've changed it to piggy back on OpenTelemetryChatClient, so that it inherits everything OpenTelemetryChatClient does and then augments it just with agent-specific tags.
* Address feedback / merge
2025-09-30 13:50:01 +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
Korolev Dmitry and GitHub
f8ad327651
fix sample ( #1008 )
2025-09-30 12:08:35 +00:00
189434dd4b
Update the package version and suffix in preparation for public preview ( #970 )
...
Co-authored-by: Mark Wallace <markwallace@microsoft.com >
2025-09-30 10:08:23 +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
Stephen Toub and GitHub
77e5f527c4
.NET: Clean up stale mentions of M.E.AI.Agents ( #997 )
...
* Clean up stale mentions of M.E.AI.Agents
* Unused usings
2025-09-30 08:36:06 +00:00
Stephen Toub and GitHub
fc4fce7973
Update M.E.AI and MCP versions ( #992 )
...
But not yet M.E.AI.OpenAI, which depends on the latest OpenAI, which conflicts with the latest Azure.AI.OpenAI.
2025-09-30 07:17:59 +00:00
Ben Thomas and GitHub
647db9635a
.NET: Rename workflows projects ( #975 )
...
* Renaming Microsoft.Agent.Workflows to Microsoft.Agents.AI.Workflows
* Removing local settings.
* Removing remining old files from merge.
2025-09-29 18:30:45 +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
fe6492ce60
.NET: rename A2A extension methods ( #915 )
...
* rename
* simplify via agentProxy
* Update dotnet/src/Microsoft.Extensions.AI.Agents.Hosting.A2A.AspNetCore/WebApplicationExtensions.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update dotnet/src/Microsoft.Extensions.AI.Agents.Hosting.A2A/Microsoft.Extensions.AI.Agents.Hosting.A2A.csproj
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-29 17:43:50 +00:00
westey and GitHub
9e8f5e62e7
Fix AIContextProvider comments ( #971 )
2025-09-29 17:11:22 +00:00
e11ec9d941
.NET Workflows - Declarative Workflow Integration Tests ( #956 )
...
* Checkpoint / 100% Pass
* Checkpoint: ActionExecutorResult
* Update dotnet/tests/Microsoft.Agents.Workflows.Declarative.IntegrationTests/Testcases/Marketing.json
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Namespace
* Sync updates
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-29 16:40:15 +00:00