Skip to content

Commit 90fefbd

Browse files
Merge pull request #6389 from MicrosoftDocs/main
Auto Publish – main to live - 2025-08-05 17:05 UTC
2 parents 5500356 + e7ed376 commit 90fefbd

File tree

98 files changed

+57
-233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+57
-233
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"redirect_document_id": false
77
},
88
{
9+
"source_path": "articles/ai-foundry/how-to/develop/vscode.md",
10+
"redirect_url": "/azure/ai-foundry/how-to/develop/get-started-projects-vs-code",
11+
"redirect_document_id": false
12+
},
13+
{
914
"source_path": "articles/ai-foundry/azure-openai-in-azure-ai-foundry.md",
1015
"redirect_url": "/azure/ai-foundry/what-is-azure-ai-foundry",
1116
"redirect_document_id": false

articles/ai-foundry/agents/how-to/connected-agents.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ To create a multi-agent setup, follow these steps:
275275
1. Create a thread and add a message to it.
276276

277277
```python
278-
thread = project_client.agents.create_thread()
278+
thread = project_client.agents.threads.create()
279279
print(f"Created thread, ID: {thread.id}")
280280

281281
# Create message to thread
282-
message = project_client.agents.create_message(
282+
message = project_client.agents.messages.create(
283283
thread_id=thread.id,
284284
role=MessageRole.USER,
285285
content="What is the stock price of Microsoft?",
@@ -293,7 +293,7 @@ To create a multi-agent setup, follow these steps:
293293
```python
294294

295295
# Create and process Agent run in thread with tools
296-
run = project_client.agents.create_and_process_run(thread_id=thread.id, agent_id=agent.id)
296+
run = project_client.agents.runs.create_and_process(thread_id=thread.id, agent_id=agent.id)
297297
print(f"Run finished with status: {run.status}")
298298

299299
if run.status == "failed":
@@ -312,7 +312,7 @@ To create a multi-agent setup, follow these steps:
312312

313313
```python
314314
# Print the Agent's response message with optional citation
315-
response_message = project_client.agents.list_messages(thread_id=thread.id).get_last_message_by_role(
315+
response_message = project_client.agents.messages.list(thread_id=thread.id).get_last_message_by_role(
316316
MessageRole.AGENT
317317
)
318318
if response_message:

articles/ai-foundry/agents/how-to/tools/bing-grounding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ When you add the Grounding with Bing Search tool to your agent, you can pass the
8989
According to Grounding with Bing's [terms of use and use and display requirements](https://www.microsoft.com/en-us/bing/apis/grounding-legal#use-and-display-requirements), you need to display both website URLs and Bing search query URLs in your custom interface. You can find website URLs through `annotations` parameter in API response and Bing search query URLs through `runstep` details. To render the webpage, we recommend you replace the endpoint of Bing search query URLs with `www.bing.com` and your Bing search query URL would look like "https://www.bing.com/search?q={search query}"
9090

9191
```python
92-
run_steps = project_client.agents.list_run_steps(run_id=run.id, thread_id=thread.id)
92+
run_steps = project_client.agents.runs_steps.list(run_id=run.id, thread_id=thread.id)
9393
run_steps_data = run_steps['data']
9494
print(f"Last run step detail: {run_steps_data}")
9595
```

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ project_client = AIProjectClient(
6666
The sample uploads a data file for analysis:
6767

6868
```python
69-
file = project_client.agents.upload_file_and_poll(
69+
file = project_client.agents.files.upload_and_poll(
7070
file_path="nifty_500_quarterly_results.csv",
7171
purpose=FilePurpose.AGENTS
7272
)
@@ -122,7 +122,7 @@ messages = project_client.agents.messages.list(thread_id=thread.id)
122122
for image_content in messages.image_contents:
123123
file_id = image_content.image_file.file_id
124124
file_name = f"{file_id}_image_file.png"
125-
project_client.agents.save_file(file_id=file_id, file_name=file_name)
125+
project_client.agents.files.save(file_id=file_id, file_name=file_name)
126126

127127
# Process file path annotations
128128
for file_path_annotation in messages.file_path_annotations:
@@ -136,7 +136,7 @@ for file_path_annotation in messages.file_path_annotations:
136136
After completing the interaction, the code properly cleans up resources:
137137

138138
```python
139-
project_client.agents.delete_file(file.id)
139+
project_client.agents.files.delete(file.id)
140140
project_client.agents.delete_agent(agent.id)
141141
```
142142

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ if run.status == "failed":
136136
project_client.agents.vector_stores.delete(vector_store.id)
137137
print("Deleted vector store")
138138

139-
project_client.agents.delete_file(file_id=file.id)
139+
project_client.agents.files.delete(file_id=file.id)
140140
print("Deleted file")
141141

142142
project_client.agents.delete_agent(agent.id)

articles/ai-foundry/agents/how-to/tools/file-search.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ Files can also be added to a vector store after it's created by creating vector
9898
```python
9999

100100
# create a vector store with no file and wait for it to be processed
101-
vector_store = project_client.agents.create_vector_store_and_poll(data_sources=[], name="sample_vector_store")
101+
vector_store = project_client.agents.vector_stores.create_and_poll(data_sources=[], name="sample_vector_store")
102102
print(f"Created vector store, vector store ID: {vector_store.id}")
103103

104104
# add the file to the vector store or you can supply file ids in the vector store creation
105-
vector_store_file_batch = project_client.agents.create_vector_store_file_batch_and_poll(
105+
vector_store_file_batch = project_client.agents.vector_store_file_batches.create_and_poll(
106106
vector_store_id=vector_store.id, file_ids=[file.id]
107107
)
108108
print(f"Created vector store file batch, vector store file batch ID: {vector_store_file_batch.id}")
@@ -112,7 +112,7 @@ print(f"Created vector store file batch, vector store file batch ID: {vector_sto
112112
Alternatively, you can add several files to a vector store by creating batches of up to 500 files.
113113

114114
```python
115-
batch = project_client.agents.create_vector_store_file_batch_and_poll(
115+
batch = project_client.agents.vector_store_file_batches.create_and_poll(
116116
vector_store_id=vector_store.id,
117117
file_ids=[file_1.id, file_2.id, file_3.id, file_4.id, file_5.id]
118118
)
@@ -144,7 +144,7 @@ print(f"Updated agent, agent ID: {agent.id}")
144144

145145
## Deleting vector stores
146146
```python
147-
project_client.agents.delete_vector_store(vector_store.id)
147+
project_client.agents.vector_stores.delete(vector_store.id)
148148
print("Deleted vector store")
149149
```
150150

@@ -155,7 +155,7 @@ For basic agent setup, the `file_search` tool uses the `vector_stores` object a
155155
To help you manage the costs associated with these vector_store objects, we added support for expiration policies in the `vector_store` object. You can set these policies when creating or updating the `vector_store` object.
156156

157157
```python
158-
vector_store = project_client.agents.create_vector_store_and_poll(
158+
vector_store = project_client.agents.vector_stores.create_and_poll(
159159
name="Product Documentation",
160160
file_ids=[file_1.id],
161161
expires_after={

articles/ai-foundry/agents/how-to/tools/model-context-protocol-samples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Create the run, check the output, and examine what tools were called during the
139139

140140
## Perform cleanup
141141

142-
After the interaction is complete, the script performs cleanup by deleting the created agent resource via `agents_client.delete_agent()` to avoid leaving unused resources. It also fetches and prints the entire message history from the thread by using `agents_client.list_messages()` for review or logging.
142+
After the interaction is complete, the script performs cleanup by deleting the created agent resource via `agents_client.delete_agent()` to avoid leaving unused resources. It also fetches and prints the entire message history from the thread by using `agents_client.messages.list()` for review or logging.
143143

144144
```python
145145
# Delete the agent resource to clean up

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Create the run, check the output, and examine what tools were called during the
155155

156156

157157
## Cleanup
158-
After the interaction is complete, the script performs cleanup by deleting the created agent resource using `agents_client.delete_agent()` to avoid leaving unused resources. It also fetches and prints the entire message history from the thread using `agents_client.list_messages()` for review or logging.
158+
After the interaction is complete, the script performs cleanup by deleting the created agent resource using `agents_client.delete_agent()` to avoid leaving unused resources. It also fetches and prints the entire message history from the thread using `agents_client.messages.list()` for review or logging.
159159

160160
```python
161161
# Delete the agent resource to clean up

articles/ai-foundry/concepts/retrieval-augmented-generation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.custom:
88
- ignite-2023
99
- build-2024
1010
ms.topic: concept-article
11-
ms.date: 06/09/2025
11+
ms.date: 08/05/2025
1212
ms.reviewer: sgilley
1313
ms.author: sgilley
1414
author: sdgilley

articles/ai-foundry/foundry-local/get-started.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,22 @@ Get started with Foundry Local quickly:
7070
You should see a response from the model in the terminal:
7171
:::image type="content" source="media/get-started-output.png" alt-text="Screenshot of output from foundry local run command." lightbox="media/get-started-output.png":::
7272

73-
7473
> [!TIP]
7574
> You can replace `phi-3.5-mini` with any model name from the catalog (see `foundry model list` for available models). Foundry Local downloads the model variant that best matches your system's hardware and software configuration. For example, if you have an NVIDIA GPU, it downloads the CUDA version of the model. If you have a Qualcomm NPU, it downloads the NPU variant. If you have no GPU or NPU, it downloads the CPU version.
7675
76+
## Run the latest OpenAI open-source model
77+
78+
To run the latest OpenAI open-source model - `GPT-OSS-20B` - use the following command:
79+
80+
```bash
81+
foundry model run gpt-oss-20b
82+
```
83+
84+
> [!IMPORTANT]
85+
> Requirements for running GPT-OSS-20B:
86+
> - Nvidia GPU with 16GB VRAM or more.
87+
> - Foundry Local version 0.6.0 or above.
88+
7789
## Explore commands
7890
7991
The Foundry CLI organizes commands into these main categories:

0 commit comments

Comments
 (0)