-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Summary
When the agent framework loads an Agent definition from Foundry that includes an openapi type tool, the resulting tool object does not include the OpenAPI tool name or description.
Because the tool definition is incomplete after load, subsequent requests to the agent for completion/response can misbehave.
Expected behavior
When loading an Agent definition from Foundry, the framework should hydrate the OpenAPI tool object with the same name and description metadata defined in Foundry.
Actual behavior
The loaded tool object is missing the OpenAPI tool name and description fields.
Resulting object after _projectClient.GetAIAgentAsync:

Impact
Subsequent completion/response requests operate against an incomplete tool definition, which can lead to incorrect or unstable agent behavior.
Repro steps
- Define an Agent in Foundry with an
openapitype tool. - Set the tool
nameanddescriptionin the Foundry definition. - Load that Agent through the agent framework.
- Inspect the loaded tool object.
- Observe that
nameanddescriptionare not populated on the tool object. - Send a subsequent completion/response request to the agent and observe misbehavior caused by the incomplete tool definition.
Notes
This appears to be a deserialization or mapping gap when importing the Foundry Agent definition into the runtime tool model.
