Skip to content

Commit 385874c

Browse files
authored
Update openapi-spec.md
1 parent 785f593 commit 385874c

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

articles/ai-services/agents/how-to/tools/openapi-spec.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ work together, generate client code, create tests, apply design standards, and m
3131

3232
|Azure AI foundry support | Python SDK | C# SDK | REST API | Basic agent setup | Standard agent setup |
3333
|---------|---------|---------|---------|---------|---------|
34-
| | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
34+
| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
3535

3636
## Prerequisites
3737
1. Ensure you've completed the prerequisites and setup steps in the [quickstart](../../quickstart.md).
@@ -127,11 +127,29 @@ To set up authenticating with Managed Identity:
127127

128128
1. Click **Finish**.
129129

130-
1. Once the setup is done, you can continue by using the tool through the SDK or REST API. Use the tabs at the top of this article to see code samples.
130+
1. Once the setup is done, you can continue by using the tool through the Foundry Portal, SDK or REST API. Use the tabs at the top of this article to see code samples.
131+
132+
## Add OpenAPI Spec tool in Foundry Portal
133+
1. Click the agent in Agent Playground you want to edit
134+
135+
1. Click to add from Action tools
136+
137+
1. Click OpenAPI 3.0 specified tool
138+
![image](https://github.com/user-attachments/assets/24c7fa97-065d-4cce-8a21-2e04c8b47216)
139+
140+
1. Give your tool a name (required) and a description (optional). The description will be used by the model to decide when and how to use the tool.
141+
![image](https://github.com/user-attachments/assets/f081adce-7588-4152-8d38-10a1a9bfafb4)
142+
143+
1. Click Next and select the authentication method. Choose `connection` for `API key`.
144+
1. If you choose `connection`, you need to select the custom keys connection you have created before.
145+
1. If you choose `managed identity`, you need to input the audience to get your token. An example of audience would be "https://cognitiveservices.azure.com/" to connect to Azure AI Services. Please make sure you have already set up authentication and role assignment (in section above)
146+
147+
1. Copy and paste your OpenAPI specification in the text below.
148+
149+
1. Review and add the tool to your agent.
131150

132151
::: zone-end
133152

134-
135153
::: zone pivot="code-example"
136154
## Step 1: Create a project client
137155
Create a client object, which will contain the connection string for connecting to your AI project and other resources.

0 commit comments

Comments
 (0)