-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Expected behavior:
When a tool is added to the Tools tab as an OpenAPI tool, it can be added to an agent without repeatedly re-entering the schema.
When a tool is added to the Tools tab as an OpenAPI tool, it is not immediately tied to all other OpenAPI tools and does not cause deletion of all OpenAPI tools across all agents when one tool is deleted.
Additional Expectation:
When an agent is deployed (or created manually) with OpenAPI tools, those tools appear in the Tools tab.
Actual Behavior
When a tool is added to the Tools tab as an OpenAPI tool, it cannot be added to an agent without repeatedly re-entering the schema.
When a tool is added to the Tools tab as an OpenAPI tool, it is immediately tied to all other OpenAPI tools, causing deletion of all OpenAPI tools across all agents when one tool is deleted, even if that tool was deployed with an agent.
Additional Expectation:
When an agent is deployed (or created manually) with OpenAPI tools, those tools do not appear in the Tools tab.
Steps to Reproduce the Problem
azure-identity: 1.25.1
azure-ai-projects: 2.0.0b3
Step 1:
Our Code:
Loads 3 OpenAPI specs from local JSON files
Initializes AIProjectClient with project endpoint.
Constructs OpenAPI tools array with:
Tool type: "openapi"
Each tool includes: name, spec (full OpenAPI JSON), description, auth type ("anonymous")
Creates agent definition dictionary with:
kind: "prompt"
model: GPT-4o deployment name
instructions: Agent system prompt
tools: OpenAPI tools array
Deploys agent via project_client.agents.create(name=..., definition=...)
Agent is successfully deployed and visible in Foundry (see attachment for pics).
Note - tools appear with the agent but do not appear in the Tools tab.
Step 2:
Create a tool in (new) Foundry.
Click Connect a tool on tool tab.
Custom -> OpenAPI Tool -> Create
STEP 3
Observe that the tool, although named specifically and not added to any agents, is immediately attached to already existing agents that have OpenAPI custom tools, including the one that we created earlier with completely unrelated tools:
STEP 4
Delete the tool. Note that all agents that have ANY OpenAPI spec attached to them as a tool pop up in the verification of deletion.
Once deleted, all OpenAPI tools are deleted from all agents.