Skip to content

Commit ccc17c4

Browse files
committed
updating token name
1 parent 801b8ca commit ccc17c4

10 files changed

+74
-74
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ for (let i = messages.data.length - 1; i >= 0; i--) {
413413
414414
:::zone pivot="rest"
415415
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`.
416+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AGENT_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
417417
418418
## Get the connection ID for the Azure AI Search resource
419419
@@ -431,7 +431,7 @@ Using the connection ID you got in the previous step, you can now configure the
431431
```bash
432432
curl --request POST \
433433
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/assistants?api-version=$API_VERSION \
434-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
434+
-H "Authorization: Bearer $AGENT_TOKEN" \
435435
-H "Content-Type: application/json" \
436436
-d '{
437437
"instructions": "You are a helpful agent.",
@@ -462,7 +462,7 @@ Now that the agent is created, ask it questions about the data in your Azure AI
462462
```bash
463463
curl --request POST \
464464
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads?api-version=$API_VERSION \
465-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
465+
-H "Authorization: Bearer $AGENT_TOKEN" \
466466
-H "Content-Type: application/json" \
467467
-d ''
468468
```
@@ -472,7 +472,7 @@ curl --request POST \
472472
```bash
473473
curl --request POST \
474474
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
475-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
475+
-H "Authorization: Bearer $AGENT_TOKEN" \
476476
-H "Content-Type: application/json" \
477477
-d '{
478478
"role": "user",
@@ -484,7 +484,7 @@ curl --request POST \
484484
```bash
485485
curl --request POST \
486486
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs?api-version=$API_VERSION \
487-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
487+
-H "Authorization: Bearer $AGENT_TOKEN" \
488488
-H "Content-Type: application/json" \
489489
-d '{
490490
"assistant_id": "asst_abc123",
@@ -496,15 +496,15 @@ curl --request POST \
496496
```bash
497497
curl --request GET \
498498
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=$API_VERSION \
499-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
499+
-H "Authorization: Bearer $AGENT_TOKEN"
500500
```
501501
502502
#### Retrieve the agent response
503503
504504
```bash
505505
curl --request GET \
506506
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
507-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
507+
-H "Authorization: Bearer $AGENT_TOKEN"
508508
```
509509
510510
:::zone-end

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,12 @@ For any issues with the Python code, create an issue on the [sample code reposit
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?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`.
183+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AGENT_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
184184

185185
```bash
186186
curl --request POST \
187187
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/assistants?api-version=$API_VERSION \
188-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
188+
-H "Authorization: Bearer $AGENT_TOKEN" \
189189
-H "Content-Type: application/json" \
190190
-d '{
191191
"instructions": "You are a helpful support agent. Answer the user's questions to the best of your ability.",
@@ -231,7 +231,7 @@ curl --request POST \
231231
```bash
232232
curl --request POST \
233233
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads?api-version=$API_VERSION \
234-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
234+
-H "Authorization: Bearer $AGENT_TOKEN" \
235235
-H "Content-Type: application/json" \
236236
-d ''
237237
```
@@ -241,7 +241,7 @@ curl --request POST \
241241
```bash
242242
curl --request POST \
243243
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
244-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
244+
-H "Authorization: Bearer $AGENT_TOKEN" \
245245
-H "Content-Type: application/json" \
246246
-d '{
247247
"role": "user",
@@ -252,7 +252,7 @@ curl --request POST \
252252
```bash
253253
curl --request POST \
254254
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs?api-version=$API_VERSION \
255-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
255+
-H "Authorization: Bearer $AGENT_TOKEN" \
256256
-H "Content-Type: application/json" \
257257
-d '{
258258
"assistant_id": "asst_abc123",
@@ -262,15 +262,15 @@ curl --request POST \
262262
```bash
263263
curl --request GET \
264264
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=$API_VERSION \
265-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
265+
-H "Authorization: Bearer $AGENT_TOKEN"
266266
```
267267
268268
## Get the result of the run
269269
270270
```bash
271271
curl --request GET \
272272
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
273-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
273+
-H "Authorization: Bearer $AGENT_TOKEN"
274274
```
275275
276276
::: zone-end

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ Create a run and observe that the model uses the Grounding with Bing Search tool
398398
>[!IMPORTANT]
399399
> 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.
400400
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`.
401+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AGENT_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
402402
403403
404404
## Create an Agent with the Grounding with Bing search tool enabled
@@ -408,7 +408,7 @@ To make the Grounding with Bing search tool available to your agent, use a conne
408408
```bash
409409
curl --request POST \
410410
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/assistants?api-version=$API_VERSION \
411-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
411+
-H "Authorization: Bearer $AGENT_TOKEN" \
412412
-H "Content-Type: application/json" \
413413
-d '{
414414
"instructions": "You are a helpful agent.",
@@ -438,7 +438,7 @@ curl --request POST \
438438
```bash
439439
curl --request POST \
440440
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads?api-version=$API_VERSION \
441-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
441+
-H "Authorization: Bearer $AGENT_TOKEN" \
442442
-H "Content-Type: application/json" \
443443
-d ''
444444
```
@@ -448,7 +448,7 @@ curl --request POST \
448448
```bash
449449
curl --request POST \
450450
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
451-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
451+
-H "Authorization: Bearer $AGENT_TOKEN" \
452452
-H "Content-Type: application/json" \
453453
-d '{
454454
"role": "user",
@@ -463,7 +463,7 @@ Create a run and observe that the model uses the Grounding with Bing Search tool
463463
```bash
464464
curl --request POST \
465465
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs?api-version=$API_VERSION \
466-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
466+
-H "Authorization: Bearer $AGENT_TOKEN" \
467467
-H "Content-Type: application/json" \
468468
-d '{
469469
"assistant_id": "asst_abc123",
@@ -475,15 +475,15 @@ curl --request POST \
475475
```bash
476476
curl --request GET \
477477
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=$API_VERSION \
478-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
478+
-H "Authorization: Bearer $AGENT_TOKEN"
479479
```
480480
481481
### Retrieve the agent response
482482
483483
```bash
484484
curl --request GET \
485485
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
486-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
486+
-H "Authorization: Bearer $AGENT_TOKEN"
487487
```
488488
489489
::: zone-end

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Create a run and observe that the model uses the Grounding with Bing Custom Sear
379379
>[!IMPORTANT]
380380
> 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.
381381
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`.
382+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AGENT_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
383383
384384
385385
## Create an Agent with the Grounding with Bing Custom Search tool enabled
@@ -389,7 +389,7 @@ To make the Grounding with Bing Custom Search tool available to your agent, use
389389
```bash
390390
curl --request POST \
391391
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/assistants?api-version=$API_VERSION \
392-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
392+
-H "Authorization: Bearer $AGENT_TOKEN" \
393393
-H "Content-Type: application/json" \
394394
-d '{
395395
"instructions": "You are a helpful agent.",
@@ -420,7 +420,7 @@ curl --request POST \
420420
```bash
421421
curl --request POST \
422422
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads?api-version=$API_VERSION \
423-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
423+
-H "Authorization: Bearer $AGENT_TOKEN" \
424424
-H "Content-Type: application/json" \
425425
-d ''
426426
```
@@ -430,7 +430,7 @@ curl --request POST \
430430
```bash
431431
curl --request POST \
432432
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=api-version=$API_VERSION \
433-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
433+
-H "Authorization: Bearer $AGENT_TOKEN" \
434434
-H "Content-Type: application/json" \
435435
-d '{
436436
"role": "user",
@@ -445,7 +445,7 @@ Create a run and observe that the model uses the Grounding with Bing Custom Sear
445445
```bash
446446
curl --request POST \
447447
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs?api-version=$API_VERSION \
448-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
448+
-H "Authorization: Bearer $AGENT_TOKEN" \
449449
-H "Content-Type: application/json" \
450450
-d '{
451451
"assistant_id": "asst_abc123",
@@ -457,15 +457,15 @@ curl --request POST \
457457
```bash
458458
curl --request GET \
459459
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=$API_VERSION \
460-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
460+
-H "Authorization: Bearer $AGENT_TOKEN"
461461
```
462462
463463
### Retrieve the agent response
464464
465465
```bash
466466
curl --request GET \
467467
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
468-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
468+
-H "Authorization: Bearer $AGENT_TOKEN"
469469
```
470470
471471
::: zone-end

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,14 @@ console.log(`Saved image file to: ${imageFileName}`);
380380
381381
:::zone pivot="rest-api"
382382
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`.
383+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AGENT_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
384384
385385
## Upload a file
386386
387387
```bash
388388
curl --request POST \
389389
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/files?api-version=$API_VERSION \
390-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
390+
-H "Authorization: Bearer $AGENT_TOKEN" \
391391
-F purpose="assistants" \
392392
-F file="@c:\\path_to_file\\file.csv"
393393
```
@@ -397,7 +397,7 @@ curl --request POST \
397397
```bash
398398
curl --request POST \
399399
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/assistants?api-version=$API_VERSION \
400-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
400+
-H "Authorization: Bearer $AGENT_TOKEN" \
401401
-H "Content-Type: application/json" \
402402
-d '{
403403
"instructions": "You are an AI assistant that can write code to help answer math questions.",
@@ -418,7 +418,7 @@ curl --request POST \
418418
```bash
419419
curl --request POST \
420420
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads?api-version=$API_VERSION \
421-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
421+
-H "Authorization: Bearer $AGENT_TOKEN" \
422422
-H "Content-Type: application/json" \
423423
-d ''
424424
```
@@ -428,7 +428,7 @@ curl --request POST \
428428
```bash
429429
curl --request POST \
430430
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
431-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
431+
-H "Authorization: Bearer $AGENT_TOKEN" \
432432
-H "Content-Type: application/json" \
433433
-d '{
434434
"role": "user",
@@ -441,7 +441,7 @@ curl --request POST \
441441
```bash
442442
curl --request POST \
443443
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs?api-version=$API_VERSION \
444-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
444+
-H "Authorization: Bearer $AGENT_TOKEN" \
445445
-H "Content-Type: application/json" \
446446
-d '{
447447
"assistant_id": "asst_abc123",
@@ -453,15 +453,15 @@ curl --request POST \
453453
```bash
454454
curl --request GET \
455455
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=$API_VERSION \
456-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
456+
-H "Authorization: Bearer $AGENT_TOKEN"
457457
```
458458
459459
## Retrieve the agent response
460460
461461
```bash
462462
curl --request GET \
463463
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
464-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
464+
-H "Authorization: Bearer $AGENT_TOKEN"
465465
```
466466
467467
:::zone-end

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,14 +382,14 @@ for (let i = messages.data.length - 1; i >= 0; i--) {
382382
383383
:::zone pivot="rest"
384384
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`.
385+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AGENT_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
386386
387387
### Create an agent with the Microsoft Fabric tool enabled
388388
389389
```bash
390390
curl --request POST \
391391
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/assistants?api-version=$API_VERSION \
392-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
392+
-H "Authorization: Bearer $AGENT_TOKEN" \
393393
-H "Content-Type: application/json" \
394394
-d '{
395395
"instructions": "You are a helpful agent.",
@@ -417,7 +417,7 @@ curl --request POST \
417417
```bash
418418
curl --request POST \
419419
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads?api-version=$API_VERSION \
420-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
420+
-H "Authorization: Bearer $AGENT_TOKEN" \
421421
-H "Content-Type: application/json" \
422422
-d ''
423423
```
@@ -427,7 +427,7 @@ curl --request POST \
427427
```bash
428428
curl --request POST \
429429
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
430-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
430+
-H "Authorization: Bearer $AGENT_TOKEN" \
431431
-H "Content-Type: application/json" \
432432
-d '{
433433
"role": "user",
@@ -442,7 +442,7 @@ curl --request POST \
442442
```bash
443443
curl --request POST \
444444
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs?api-version=$API_VERSION \
445-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
445+
-H "Authorization: Bearer $AGENT_TOKEN" \
446446
-H "Content-Type: application/json" \
447447
-d '{
448448
"assistant_id": "asst_abc123",
@@ -454,15 +454,15 @@ curl --request POST \
454454
```bash
455455
curl --request GET \
456456
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=$API_VERSION \
457-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
457+
-H "Authorization: Bearer $AGENT_TOKEN"
458458
```
459459
460460
#### Retrieve the agent response
461461
462462
```bash
463463
curl --request GET \
464464
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
465-
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
465+
-H "Authorization: Bearer $AGENT_TOKEN"
466466
```
467467
:::zone-end
468468

0 commit comments

Comments
 (0)