Skip to content

Conversation

@vivganes
Copy link
Contributor

The test Can_Return_Binary_Result was skipped. Made the necessary changes to correct it and unskipped it.

Copilot AI review requested due to automatic review settings January 28, 2026 00:05
@vivganes vivganes requested a review from a team as a code owner January 28, 2026 00:05
Copy link
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

This PR fixes a previously skipped test Can_Return_Binary_Result in the .NET SDK by adding the necessary JSON serialization support and creating the corresponding test snapshot file.

Changes:

  • Added ToolResultAIContent type to the JSON serialization context to properly serialize binary tool results
  • Unskipped the test and added serializerOptions parameter to AIFunctionFactory.Create
  • Created snapshot file can_return_binary_result.yaml with expected conversation flow for binary result testing

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/snapshots/tools/can_return_binary_result.yaml Adds test snapshot defining expected conversation flow for binary image result, showing both intermediate and complete states
dotnet/test/ToolsTests.cs Unskips test, adds ToolResultAIContent to JSON context, provides serializerOptions to AIFunctionFactory, and changes assertion method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vivganes vivganes marked this pull request as draft January 28, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant