Skip to content

Commit a697dec

Browse files
Merge pull request #6558 from MicrosoftDocs/main
Auto Publish – main to live - 2025-08-13 17:11 UTC
2 parents 449679d + 94aa832 commit a697dec

33 files changed

+1132
-1102
lines changed

articles/ai-foundry/agents/includes/quickstart-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ client.Messages.CreateMessage(
9292
MessageRole.User,
9393
"Hi, Agent! Draw a graph for a line with a slope of 4 and y-intercept of 9.");
9494

95-
//Have Agent beging processing user's question with some additional instructions associated with the ThreadRun.
95+
//Have Agent begin processing user's question with some additional instructions associated with the ThreadRun.
9696
ThreadRun run = client.Runs.CreateRun(
9797
thread.Id,
9898
agent.Id,

articles/ai-foundry/agents/includes/quickstart-python.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,16 @@ Set this endpoint as an environment variable named `PROJECT_ENDPOINT`.
5151

5252
[!INCLUDE [model-name-portal](model-name-portal.md)]
5353

54-
Save the name of your model deployment name as an environment variable named `MODEL_DEPLOYMENT_NAME`.
54+
Save the name of your model deployment name as an environment variable named `MODEL_DEPLOYMENT_NAME`.
5555

5656
```python
5757
import os
58+
from pathlib import Path
5859
from azure.ai.projects import AIProjectClient
5960
from azure.identity import DefaultAzureCredential
6061
from azure.ai.agents.models import CodeInterpreterTool
6162

62-
# Create an Azure AI Client from an endpoint, copied from your Azure AI Foundry project.
63+
# Create an AIProjectClient from an endpoint, copied from your Azure AI Foundry project.
6364
# You need to login to Azure subscription via Azure CLI and set the environment variables
6465
project_endpoint = os.environ["PROJECT_ENDPOINT"] # Ensure the PROJECT_ENDPOINT environment variable is set
6566

@@ -71,40 +72,51 @@ project_client = AIProjectClient(
7172

7273
code_interpreter = CodeInterpreterTool()
7374
with project_client:
74-
# Create an agent with the Bing Grounding tool
75+
# Create an agent with the Code Interpreter tool
7576
agent = project_client.agents.create_agent(
7677
model=os.environ["MODEL_DEPLOYMENT_NAME"], # Model deployment name
7778
name="my-agent", # Name of the agent
78-
instructions="You are a helpful agent", # Instructions for the agent
79+
instructions="You politely help with math questions. Use the Code Interpreter tool when asked to visualize numbers.", # Instructions for the agent
7980
tools=code_interpreter.definitions, # Attach the tool
8081
)
8182
print(f"Created agent, ID: {agent.id}")
8283

8384
# Create a thread for communication
8485
thread = project_client.agents.threads.create()
8586
print(f"Created thread, ID: {thread.id}")
86-
87+
8788
# Add a message to the thread
8889
message = project_client.agents.messages.create(
8990
thread_id=thread.id,
9091
role="user", # Role of the message sender
91-
content="What is the weather in Seattle today?", # Message content
92+
content="Hi, Agent! Draw a graph for a line with a slope of 4 and y-intercept of 9.", # Message content
9293
)
9394
print(f"Created message, ID: {message['id']}")
94-
95+
9596
# Create and process an agent run
96-
run = project_client.agents.runs.create_and_process(thread_id=thread.id, agent_id=agent.id)
97+
run = project_client.agents.runs.create_and_process(
98+
thread_id=thread.id,
99+
agent_id=agent.id,
100+
additional_instructions="Please address the user as Jane Doe. The user has a premium account",
101+
)
97102
print(f"Run finished with status: {run.status}")
98-
103+
99104
# Check if the run failed
100105
if run.status == "failed":
101106
print(f"Run failed: {run.last_error}")
102-
107+
103108
# Fetch and log all messages
104109
messages = project_client.agents.messages.list(thread_id=thread.id)
105110
for message in messages:
106111
print(f"Role: {message.role}, Content: {message.content}")
107-
112+
113+
# Save every image file in the message
114+
for img in message.image_contents:
115+
file_id = img.image_file.file_id
116+
file_name = f"{file_id}_image_file.png"
117+
project_client.agents.files.save(file_id=file_id, file_name=file_name)
118+
print(f"Saved image file to: {Path.cwd() / file_name}")
119+
108120
# Delete the agent when done
109121
project_client.agents.delete_agent(agent.id)
110122
print("Deleted agent")

articles/ai-foundry/concepts/fine-tuning-overview.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,18 @@ Follow this link to view and download [example datasets](https://github.com/Azur
7272
## Model Comparison Table
7373
This table provides an overview of the models available
7474

75-
| Model | Modalities | Techniques | Strengths |
76-
|----------------------|---------------|--------------|--------------------------------------|
75+
| Model | Modalities | Techniques | Strengths |
76+
|----------------------|---------------|--------------|--------------------------------------------------------------------|
7777
| GPT 4.1 | Text, Vision | SFT, DPO | Superior performance on sophisticated tasks, nuanced understanding |
78-
| GPT 4.1-mini | Text | SFT, DPO | Fast iteration, cost-effective, good for simple tasks |
79-
| GPT 4.1-nano | Text | SFT, DPO | Fast, cost-effective, and minimal resource usage |
80-
| o4-mini | Text | RFT | Reasoning model suited for complex logical tasks |
81-
| Phi 4 | Text | SFT | Cost effective option for simpler tasks |
82-
| Ministral 3B | Text | SFT | Low-cost option for faster iteration |
83-
| Mistral Nemo | Text | SFT | Balance between size and capability |
84-
| Mistral Large (2411) | Text | SFT | Most capable Mistral model, better for complex tasks |
78+
| GPT 4.1-mini | Text | SFT, DPO | Fast iteration, cost-effective, good for simple tasks |
79+
| GPT 4.1-nano | Text | SFT, DPO | Fast, cost-effective, and minimal resource usage |
80+
| GPT 4o | Text, Vision | SFT, DPO | Previous generation flagship model for complex tasks |
81+
| GPT 4o-mini | Text | SFT | Previous generation small model for simple tasks |
82+
| o4-mini | Text | RFT | Reasoning model suited for complex logical tasks |
83+
| Phi 4 | Text | SFT | Cost effective option for simpler tasks |
84+
| Ministral 3B | Text | SFT | Low-cost option for faster iteration |
85+
| Mistral Nemo | Text | SFT | Balance between size and capability |
86+
| Mistral Large (2411) | Text | SFT | Most capable Mistral model, better for complex tasks |
8587

8688
## Get Started with Fine Tuning
8789

articles/ai-foundry/foundry-models/concepts/models.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ Azure OpenAI in Azure AI Foundry Models offers a diverse set of models with diff
4646
| [`GPT-5 series`](../../openai/concepts/models.md#gpt-5) | **NEW** `gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `gpt-5-chat` |
4747
| [gpt-oss](../../openai/concepts/models.md#gpt-oss) | Open-weight reasoning models |
4848
| [codex-mini](../../openai/concepts/models.md#o-series-models) | Fine-tuned version of o4-mini. |
49-
| [GPT-4.1 series](../../openai/concepts/models.md#gpt-41-series) | The latest model release from Azure OpenAI. |
49+
| [GPT-4.1 series](../../openai/concepts/models.md#gpt-41-series) | `gpt-4.1`, `gpt-4.1-mini`, `gpt-4.1-nano` |
5050
| [model-router](../../openai/concepts/models.md#model-router) | A model that intelligently selects from a set of underlying chat models to respond to a given prompt. |
5151
| [computer-use-preview](../../openai/concepts/models.md#computer-use-preview) | An experimental model trained for use with the Responses API computer use tool. |
5252
| [o-series models](../../openai/concepts/models.md#o-series-models) |[Reasoning models](../../openai/how-to/reasoning.md) with advanced problem solving and increased focus and capability. |
53-
| [GPT-4o, GPT-4o mini, and GPT-4 Turbo](../../openai/concepts/models.md#gpt-4o-and-gpt-4-turbo) | The latest, most capable Azure OpenAI models with multimodal versions, which can accept both text and images as input. |
53+
| [GPT-4o, GPT-4o mini, and GPT-4 Turbo](../../openai/concepts/models.md#gpt-4o-and-gpt-4-turbo) | Capable Azure OpenAI models with multimodal versions, which can accept both text and images as input. |
5454
| [GPT-4](../../openai/concepts/models.md#gpt-4) | A set of models that improve on GPT-3.5 and can understand and generate natural language and code. |
5555
| [GPT-3.5](../../openai/concepts/models.md#gpt-35) | A set of models that improve on GPT-3 and can understand and generate natural language and code. |
5656
| [Embeddings](../../openai/concepts/models.md#embeddings) | A set of models that can convert text into numerical vector form to facilitate text similarity. |

0 commit comments

Comments
 (0)