You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/csharp/hosted-agents/AgentWithHostedMCP/README.md
+24-5Lines changed: 24 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2
-
2
+
3
3
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4
-
4
+
5
5
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6
-
6
+
7
7
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
8
8
9
9
# What this sample demonstrates
10
10
11
-
This sample demonstrates how to use a Hosted Model Context Protocol (MCP) server with a
11
+
This sample demonstrates how to use a Hosted Model Context Protocol (MCP) server with a
12
12
[Microsoft Agent Framework](https://learn.microsoft.com/en-us/agent-framework/overview/agent-framework-overview#ai-agents) AI agent and
13
-
host it using [Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
13
+
host it using [Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
14
14
deploy it to Microsoft Foundry using the Azure Developer CLI [ai agent](https://aka.ms/azdaiagent/docs) extension.
15
15
16
16
## How It Works
@@ -56,6 +56,7 @@ Set the following environment variables:
56
56
-`AZURE_OPENAI_DEPLOYMENT_NAME` - The deployment name for your chat model (optional, defaults to `gpt-4o-mini`)
@@ -86,3 +87,21 @@ Try asking questions about Microsoft documentation and technologies to see the M
86
87
### Deploying the Agent to Microsoft Foundry
87
88
88
89
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
90
+
91
+
## Troubleshooting
92
+
93
+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
94
+
95
+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
96
+
97
+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
98
+
99
+
**Fix for local builds**
100
+
101
+
Add this line at the top of your `Dockerfile`:
102
+
103
+
```dockerfile
104
+
FROM --platform=linux/amd64 python:3.12-slim
105
+
```
106
+
107
+
This forces the image to be built for the required `amd64` architecture.
Copy file name to clipboardExpand all lines: samples/csharp/hosted-agents/AgentWithTextSearchRag/README.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2
-
2
+
3
3
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4
-
4
+
5
5
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6
-
6
+
7
7
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
8
8
9
9
# What this sample demonstrates
10
10
11
-
This sample demonstrates how to use the TextSearchProvider to add retrieval augmented generation (RAG) capabilities to a
11
+
This sample demonstrates how to use the TextSearchProvider to add retrieval augmented generation (RAG) capabilities to a
12
12
[Microsoft Agent Framework](https://learn.microsoft.com/en-us/agent-framework/overview/agent-framework-overview#ai-agents) AI agent and
13
-
host it using [Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
13
+
host it using [Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
14
14
deploy it to Microsoft Foundry using the Azure Developer CLI [ai agent](https://aka.ms/azdaiagent/docs) extension.
15
15
16
16
## How It Works
@@ -56,6 +56,7 @@ Set the following environment variables:
56
56
-`AZURE_OPENAI_DEPLOYMENT_NAME` - The deployment name for your chat model (optional, defaults to `gpt-4o-mini`)
@@ -82,10 +83,29 @@ You can interact with the agent using:
82
83
- Any OpenAI Responses compatible client by sending requests to `http://localhost:8080/`
83
84
84
85
Try asking questions about:
86
+
85
87
- Contoso return policy
86
88
- Shipping information
87
89
- Product care instructions
88
90
89
91
### Deploying the Agent to Microsoft Foundry
90
92
91
-
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
93
+
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
94
+
95
+
## Troubleshooting
96
+
97
+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
98
+
99
+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
100
+
101
+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
102
+
103
+
**Fix for local builds**
104
+
105
+
Add this line at the top of your `Dockerfile`:
106
+
107
+
```dockerfile
108
+
FROM --platform=linux/amd64 python:3.12-slim
109
+
```
110
+
111
+
This forces the image to be built for the required `amd64` architecture.
Copy file name to clipboardExpand all lines: samples/csharp/hosted-agents/AgentsInWorkflows/README.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2
-
2
+
3
3
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4
-
4
+
5
5
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6
-
6
+
7
7
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
8
8
9
9
# What this sample demonstrates
10
10
11
-
This sample demonstrates how to use AI agents as executors within a workflow, hosted using
12
-
[Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
11
+
This sample demonstrates how to use AI agents as executors within a workflow, hosted using
12
+
[Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
13
13
deploy it to Microsoft Foundry using the Azure Developer CLI [ai agent](https://aka.ms/azdaiagent/docs) extension.
14
14
15
15
## How It Works
@@ -23,6 +23,7 @@ This sample demonstrates the integration of AI agents within a workflow pipeline
23
23
3.**English Agent** - Takes the Spanish translation and translates it back to English
24
24
25
25
The agents are connected sequentially in a workflow, creating a translation chain that demonstrates:
26
+
26
27
- How AI-powered agents can be seamlessly integrated into workflow pipelines
27
28
- Sequential execution patterns where each agent's output becomes the next agent's input
28
29
- Composable agent architectures for multi-step processing
@@ -56,6 +57,7 @@ Set the following environment variables:
56
57
-`AZURE_OPENAI_DEPLOYMENT_NAME` - The deployment name for your chat model (optional, defaults to `gpt-4o-mini`)
@@ -85,4 +87,22 @@ Try providing text in English to see it translated through the workflow chain (E
85
87
86
88
### Deploying the Agent to Microsoft Foundry
87
89
88
-
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
90
+
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
91
+
92
+
## Troubleshooting
93
+
94
+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
95
+
96
+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
97
+
98
+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
99
+
100
+
**Fix for local builds**
101
+
102
+
Add this line at the top of your `Dockerfile`:
103
+
104
+
```dockerfile
105
+
FROM --platform=linux/amd64 python:3.12-slim
106
+
```
107
+
108
+
This forces the image to be built for the required `amd64` architecture.
Copy file name to clipboardExpand all lines: samples/python/hosted-agents/agent_with_hosted_mcp/README.md
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2
-
2
+
3
3
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4
-
4
+
5
5
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6
-
6
+
7
7
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
8
8
9
9
# What this sample demonstrates
10
10
11
-
This sample demonstrates how to use a Hosted Model Context Protocol (MCP) server with a
11
+
This sample demonstrates how to use a Hosted Model Context Protocol (MCP) server with a
12
12
[Microsoft Agent Framework](https://learn.microsoft.com/en-us/agent-framework/overview/agent-framework-overview#ai-agents) AI agent and
13
13
host it using [Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
14
14
deploy it to Microsoft Foundry using the Azure Developer CLI [ai agent](https://aka.ms/azdaiagent/docs) extension.
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
94
+
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
95
+
96
+
## Troubleshooting
97
+
98
+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
99
+
100
+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
101
+
102
+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
103
+
104
+
**Fix for local builds**
105
+
106
+
Add this line at the top of your `Dockerfile`:
107
+
108
+
```dockerfile
109
+
FROM --platform=linux/amd64 python:3.12-slim
110
+
```
111
+
112
+
This forces the image to be built for the required `amd64` architecture.
Copy file name to clipboardExpand all lines: samples/python/hosted-agents/agent_with_text_search_rag/README.md
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2
-
2
+
3
3
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4
-
4
+
5
5
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6
-
6
+
7
7
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
94
+
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
95
+
96
+
## Troubleshooting
97
+
98
+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
99
+
100
+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
101
+
102
+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
103
+
104
+
**Fix for local builds**
105
+
106
+
Add this line at the top of your `Dockerfile`:
107
+
108
+
```dockerfile
109
+
FROM --platform=linux/amd64 python:3.12-slim
110
+
```
111
+
112
+
This forces the image to be built for the required `amd64` architecture.
Copy file name to clipboardExpand all lines: samples/python/hosted-agents/agents_in_workflow/README.md
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2
-
2
+
3
3
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4
-
4
+
5
5
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6
-
6
+
7
7
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
8
8
9
9
# What this sample demonstrates
10
10
11
-
This sample demonstrates how to use AI agents as executors within a workflow, hosted using
11
+
This sample demonstrates how to use AI agents as executors within a workflow, hosted using
12
12
[Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
13
13
deploy it to Microsoft Foundry using the Azure Developer CLI [ai agent](https://aka.ms/azdaiagent/docs) extension.
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
92
+
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
93
+
94
+
## Troubleshooting
95
+
96
+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
97
+
98
+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
99
+
100
+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
101
+
102
+
**Fix for local builds**
103
+
104
+
Add this line at the top of your `Dockerfile`:
105
+
106
+
```dockerfile
107
+
FROM --platform=linux/amd64 python:3.12-slim
108
+
```
109
+
110
+
This forces the image to be built for the required `amd64` architecture.
### Images built on Apple Silicon or other ARM64 machines do not work on our service
4
+
5
+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
6
+
7
+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
8
+
9
+
**Fix for local builds**
10
+
11
+
Add this line at the top of your `Dockerfile`:
12
+
13
+
```dockerfile
14
+
FROM --platform=linux/amd64 python:3.12-slim
15
+
```
16
+
17
+
This forces the image to be built for the required `amd64` architecture.
0 commit comments