Skip to content

.NET: Hyperlight host-tool parameter schemas missing from execute_code descriptions #8446

Open

Description

Parent issue

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.

Activity

  1. changed the title [-].NET: Hyperlight host-tool parameter schemas missing from execute_code descriptions[/-] [+]Python: .NET: Hyperlight host-tool parameter schemas missing from execute_code descriptions[/+] on Sep 17, 2026
  2. changed the title [-]Python: .NET: Hyperlight host-tool parameter schemas missing from execute_code descriptions[/-] [+].NET: Hyperlight host-tool parameter schemas missing from execute_code descriptions[/+] on Sep 17, 2026
  3. leilei3167 commented on Sep 18, 2026

    @leilei3167
    Contributor

    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.

  4. epcm18 commented on Sep 21, 2026

    @epcm18

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETUsage: [Issues, PRs], Target: .Net

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions