Skip to content

Commit 801b8ca

Browse files
committed
fixes
1 parent f2d3d83 commit 801b8ca

10 files changed

+20
-31
lines changed

articles/ai-services/agents/how-to/tools/azure-ai-search-samples.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,7 @@ for (let i = messages.data.length - 1; i >= 0; i--) {
413413
414414
:::zone pivot="rest"
415415
416-
## Create an Azure AI Client
417-
418-
Follow the [REST API Quickstart](../../quickstart.md#api-call-information?pivots=rest-api) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
416+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
419417
420418
## Get the connection ID for the Azure AI Search resource
421419
@@ -461,7 +459,7 @@ Now that the agent is created, ask it questions about the data in your Azure AI
461459
462460
#### Create a thread
463461
464-
```console
462+
```bash
465463
curl --request POST \
466464
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads?api-version=$API_VERSION \
467465
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
@@ -471,7 +469,7 @@ curl --request POST \
471469
472470
#### Add a user question to the thread
473471
474-
```console
472+
```bash
475473
curl --request POST \
476474
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
477475
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
@@ -483,7 +481,7 @@ curl --request POST \
483481
```
484482
#### Run the thread
485483
486-
```console
484+
```bash
487485
curl --request POST \
488486
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs?api-version=$API_VERSION \
489487
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
@@ -495,15 +493,15 @@ curl --request POST \
495493
496494
#### Retrieve the status of the run
497495
498-
```console
496+
```bash
499497
curl --request GET \
500498
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=$API_VERSION \
501499
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
502500
```
503501
504502
#### Retrieve the agent response
505503
506-
```console
504+
```bash
507505
curl --request GET \
508506
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
509507
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"

articles/ai-services/agents/how-to/tools/azure-functions-samples.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ For any issues with the Python code, create an issue on the [sample code reposit
176176

177177
::: zone pivot="rest"
178178

179-
## Create an AI project client and agent
179+
## Create an agent
180180

181181
In the sample below we create a client and an agent that has the tools definition for the Azure Function
182182

183-
Follow the [REST API Quickstart](../../quickstart.md#api-call-information?pivots=rest-api) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
183+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
184184

185185
```bash
186186
curl --request POST \
@@ -259,15 +259,15 @@ curl --request POST \
259259
}'
260260
```
261261
262-
```console
262+
```bash
263263
curl --request GET \
264264
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=$API_VERSION \
265265
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
266266
```
267267
268268
## Get the result of the run
269269
270-
```console
270+
```bash
271271
curl --request GET \
272272
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
273273
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"

articles/ai-services/agents/how-to/tools/bing-code-samples.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,14 +395,10 @@ Create a run and observe that the model uses the Grounding with Bing Search tool
395395
396396
::: zone pivot="rest"
397397
398-
## Create a project client
399-
400-
Create a client object, which will contain the connection string for connecting to your AI project and other resources.
401-
402398
>[!IMPORTANT]
403399
> 1. This REST API allows developers to invoke the Grounding with Bing Search tool through the Azure AI Foundry Agent Service. It does not send calls to the Grounding with Bing Search API directly.
404400
405-
Follow the [REST API Quickstart](../../quickstart.md#api-call-information?pivots=rest-api) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
401+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
406402
407403
408404
## Create an Agent with the Grounding with Bing search tool enabled

articles/ai-services/agents/how-to/tools/bing-custom-search-samples.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,14 +376,10 @@ Create a run and observe that the model uses the Grounding with Bing Custom Sear
376376
377377
::: zone pivot="rest"
378378
379-
## Create a project client
380-
381-
Create a client object, which will contain the connection string for connecting to your AI project and other resources.
382-
383379
>[!IMPORTANT]
384380
> 1. This REST API allows developers to invoke the Grounding with Bing Custom Search tool through the Azure AI Foundry Agent Service. It does not send calls to the Grounding with Bing Custom Search API directly.
385381
386-
Follow the [REST API Quickstart](../../quickstart.md#api-call-information?pivots=rest-api) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
382+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
387383
388384
389385
## Create an Agent with the Grounding with Bing Custom Search tool enabled
@@ -466,7 +462,7 @@ curl --request GET \
466462
467463
### Retrieve the agent response
468464
469-
```console
465+
```bash
470466
curl --request GET \
471467
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
472468
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"

articles/ai-services/agents/how-to/tools/code-interpreter-samples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ console.log(`Saved image file to: ${imageFileName}`);
380380
381381
:::zone pivot="rest-api"
382382
383-
Follow the [REST API Quickstart](../../quickstart.md#api-call-information?pivots=rest-api) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
383+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
384384
385385
## Upload a file
386386

articles/ai-services/agents/how-to/tools/fabric.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ for (let i = messages.data.length - 1; i >= 0; i--) {
382382
383383
:::zone pivot="rest"
384384
385-
Follow the [REST API Quickstart](../../quickstart.md#api-call-information?pivots=rest-api) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
385+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
386386
387387
### Create an agent with the Microsoft Fabric tool enabled
388388

articles/ai-services/agents/how-to/tools/file-search-upload-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,11 +446,11 @@ for (let i = messages.data.length - 1; i >= 0; i--) {
446446
447447
:::zone pivot="rest"
448448
449-
## Upload files and add them to a Vector Store
449+
## Upload files and add them to a vector store
450450
451451
To access your files, the file search tool uses the vector store object. Upload your files and create a vector store. After creating the vector store, poll its status until all files are out of the in_progress state to ensure that all content is fully processed. The SDK provides helpers for uploading and polling.
452452
453-
Follow the [REST API Quickstart](../../quickstart.md#api-call-information?pivots=rest-api) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
453+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
454454
455455
### Upload a file
456456

articles/ai-services/agents/how-to/tools/function-calling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,9 @@ await client.agents.createMessage(
545545
Start by defining a function for your agent to call. When you create a function for an agent to call, you describe its structure of it with any required parameters in a docstring. See the other SDK languages for example functions.
546546
547547
548-
## Create a client and agent
548+
## Create an agent
549549
550-
Follow the [REST API Quickstart](../../quickstart.md#api-call-information?pivots=rest-api) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
550+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
551551
552552
```bash
553553
curl --request POST \

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Finally, delete the created `PersistentAgentThread` and `PersistentAgent` to cle
276276

277277
:::zone pivot="rest-api"
278278

279-
Follow the [REST API Quickstart](../../quickstart.md#api-call-information?pivots=rest-api) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
279+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AZURE_AI_AGENTS_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
280280

281281
## Create the OpenAPI Spec tool definition, agent, and thread
282282

articles/ai-services/agents/toc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ items:
7777
displayName: code interpreter
7878
- name: How to use code interpreter
7979
href: how-to/tools/code-interpreter-samples.md
80-
href: how-to/tools/code-interpreter.md
8180
- name: Use OpenAPI defined tools
8281
items:
8382
- name: Overview

0 commit comments

Comments
 (0)