You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.NET: Hyperlight host-tool parameter schemas missing from execute_code descriptions #8446
Sub-issue of #8125. Sibling #8445 is separate and must not close this child or the parent.
Confirmed behavior
At upstream/main 999dda7970fe969c0901d524365ce34ecbda6227, dotnet/src/Microsoft.Agents.AI.Hyperlight/Internal/InstructionBuilder.cs::BuildExecuteCodeDescription emits each host AIFunction name and description but never reads JsonSchema. The model therefore does not receive host-tool parameter names, requiredness, descriptions, enums, or nested shapes through this listing.
Both HyperlightExecuteCodeFunction and HyperlightCodeActProvider use this shared builder. Inspect the standalone function Description or the provider-returned execute-code function description; current BuildInstructions() returns short guidance and is not the correct reproduction accessor.
Acceptance criteria
Surface existing host-tool parameter schemas in the model-facing execute-code description for both entry points.
Add parameterized-host-tool regression coverage; the current builder test uses a zero-parameter function and misses the defect.
Preserve no-tool output, the code-only execute-code input schema, approval behavior, filesystem host-path protection, and network restrictions.
Keep the fix focused and document directly affected behavior. Confirm rendering and public API choices separately.
Status
Deferred at the user request and outside the sibling PR. This child does not authorize implementation. Source behavior was independently confirmed; no new build or live-model reproduction was run. The parent includes a contributor offer to help, so coordinate ownership and check for an implementing PR before starting.
I'd like to work on this — planning to surface host AIFunction JsonSchema in InstructionBuilder.BuildExecuteCodeDescription and add a parameterized-tool regression test. Happy to coordinate if someone else is already on it.
Eduard van Valkenburg (@eavanvalkenburg) — noticed this doesn't cover Microsoft.Agents.AI.LocalCodeAct, which has the same gap. The Python side hit it across both Hyperlight and Monty, and it was folded into the same issue/PR (#8459).
I have a working implementation with tests for the LocalCodeAct side also. Since this issue is scoped for hyperlight and leilei3167 's (#8528) already covers that cleanly, would you prefer I open a sibling sub-issue under #8125 and raise the PR there, or keep it with the same in which case I can raise a PR to the existing branch? Happy either way — just don't want to cut across #8528.
Activity
[-].NET: Hyperlight host-tool parameter schemas missing from execute_code descriptions[/-][+]Python: .NET: Hyperlight host-tool parameter schemas missing from execute_code descriptions[/+][-]Python: .NET: Hyperlight host-tool parameter schemas missing from execute_code descriptions[/-][+].NET: Hyperlight host-tool parameter schemas missing from execute_code descriptions[/+]leilei3167 commentedon Sep 18, 2026
I'd like to work on this — planning to surface host AIFunction JsonSchema in
InstructionBuilder.BuildExecuteCodeDescriptionand add a parameterized-tool regression test. Happy to coordinate if someone else is already on it.epcm18 commentedon Sep 21, 2026
Eduard van Valkenburg (@eavanvalkenburg) — noticed this doesn't cover
Microsoft.Agents.AI.LocalCodeAct, which has the same gap. The Python side hit it across both Hyperlight and Monty, and it was folded into the same issue/PR (#8459).I have a working implementation with tests for the LocalCodeAct side also. Since this issue is scoped for hyperlight and leilei3167 's (#8528) already covers that cleanly, would you prefer I open a sibling sub-issue under #8125 and raise the PR there, or keep it with the same in which case I can raise a PR to the existing branch? Happy either way — just don't want to cut across #8528.