Skip to content

.NET: test: Add Handoff orchestration composability test #5208

Open
lokitoth wants to merge 2 commits intomainfrom
dev/dotnet_workflow/add_handoff_composability_test
Open

.NET: test: Add Handoff orchestration composability test #5208
lokitoth wants to merge 2 commits intomainfrom
dev/dotnet_workflow/add_handoff_composability_test

Conversation

@lokitoth
Copy link
Copy Markdown
Member

Motivation and Context

Handoff orchestration needs to inject a tool to allow the AIAgent to request a handoff, with corresponding additional instructions. This must not override the user's existing tools and instructions, if any.

Description

There is no feature work to be done here, but this PR adds a test to validate this condition.

Closes #5148

DRAFT pending PR #5174

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • [ ] Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

@lokitoth lokitoth self-assigned this Apr 10, 2026
@lokitoth lokitoth added the .NET label Apr 10, 2026
@lokitoth lokitoth changed the title Dev/dotnet workflow/add handoff composability test .NET: test: Add Handoff orchestration composability test Apr 10, 2026
@lokitoth lokitoth added the workflows Related to Workflows in agent-framework label Apr 10, 2026
@lokitoth lokitoth moved this to In Review in Agent Framework Apr 10, 2026
@github-actions github-actions bot changed the title .NET: test: Add Handoff orchestration composability test .NET: Dev/dotnet workflow/add handoff composability test Apr 10, 2026
@lokitoth lokitoth changed the title .NET: Dev/dotnet workflow/add handoff composability test .NET: test: Add Handoff orchestration composability test Apr 10, 2026
@lokitoth lokitoth marked this pull request as ready for review April 13, 2026 16:40
Copilot AI review requested due to automatic review settings April 13, 2026 16:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a unit test ensuring Handoff orchestration composes (appends) handoff tools/instructions without overwriting an agent’s existing tools/instructions.

Changes:

  • Added a new unit test for “handoff composability” (existing tools/instructions preserved).
  • Introduced a validating IChatClient test double that asserts expected ChatOptions composition.

@lokitoth lokitoth force-pushed the dev/dotnet_workflow/add_handoff_composability_test branch from d5f1a80 to 76dd0b7 Compare April 14, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET workflows Related to Workflows in agent-framework

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

.NET: Ensure Handoff Orchestration does not overwrite existing AIAgent instructions and tools

2 participants