Add .NET low-level tool-definition E2E test [6/6]#1728
Conversation
There was a problem hiding this comment.
⚠️ Not ready to approve
The updated session-lifecycle prompt no longer matches the existing replay snapshot, which will cause the E2E test to fail unless the snapshot is updated in the same PR.
Pull request overview
Adds .NET E2E coverage for low-level tool definition APIs using the shared replay snapshot, and tweaks a session-lifecycle E2E prompt string.
Changes:
- Add a new .NET E2E test
Low_Level_Tool_Definitionthat defines custom tools viaAIFunctionFactoryand asserts tool argument handling + resulting assistant content. - Change the second session’s persistence “activity” prompt in the session-lifecycle E2E test (but this currently risks desync with the existing replay snapshot).
File summaries
| File | Description |
|---|---|
dotnet/test/E2E/ToolsE2ETests.cs |
Adds a new low-level tool-definition E2E test that exercises multiple custom tools and validates keyword argument plumbing. |
dotnet/test/E2E/SessionLifecycleE2ETests.cs |
Updates the second session prompt used to generate persistence activity for the replay-based lifecycle test. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 1
Note
Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.
Cross-SDK Consistency Review ✅OverviewThis PR is the last ([6/6]) in a coordinated series that adds The .NET implementation is consistent with the reference Java test (
Minor Observations1. Scope difference vs Java (intentional, per PR description) Java's 2. PR description mentions The PR body says:
However, only SummaryThe change is well-scoped, follows established patterns, and the broader series ensures all SDKs will have equivalent low-level tool definition coverage. No cross-SDK API consistency issues found.
|
Summary
Adds .NET low-level tool-definition E2E coverage and includes the session-lifecycle replay prompt alignment fix.
This PR is related to issue #1682 but does not fix #1682.
What changed
Low_Level_Tool_Definitioncoverage in:dotnet/test/E2E/ToolsE2ETests.csdotnet/test/E2E/SessionLifecycleE2ETests.cstest/snapshots/tools/low_level_tool_definition.yamlDependency / sequencing
Related