Skip to content

Commit 21afda6

Browse files
authored
Rebranding and URL update (#60)
1 parent 001d738 commit 21afda6

9 files changed

Lines changed: 100 additions & 114 deletions

File tree

CONTRIBUTING.md

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
# Contributing to the Azure AI Foundry Agent service chat basic reference implementatio
1+
# Contributing to the Foundry Agent Service chat basic reference implementation
22

3-
This project welcomes contributions and suggestions. Most contributions require you to agree to a
4-
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
5-
the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.
3+
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.
64

7-
When you submit a pull request, a CLA bot will automatically determine whether you need to provide
8-
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
9-
provided by the bot. You will only need to do this once across all repos using our CLA.
5+
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
106

117
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
12-
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
13-
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
8+
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
149

1510
- [Code of Conduct](#coc)
1611
- [Issues and Bugs](#issue)
@@ -23,15 +18,11 @@ Help us keep this project open and inclusive. Please read and follow our [Code o
2318

2419
## <a name="issue"></a> Found an Issue?
2520

26-
If you find a bug in the source code or a mistake in the documentation, you can help us by
27-
[submitting an issue](#submit-issue) to the GitHub Repository. Even better, you can
28-
[submit a Pull Request](#submit-pr) with a fix.
21+
If you find a bug in the source code or a mistake in the documentation, you can help us by [submitting an issue](#submit-issue) to the GitHub Repository. Even better, you can [submit a Pull Request](#submit-pr) with a fix.
2922

3023
## <a name="feature"></a> Want a Feature?
3124

32-
You can *request* a new feature by [submitting an issue](#submit-issue) to the GitHub
33-
Repository. If you would like to *implement* a new feature, please submit an issue with
34-
a proposal for your work first, to be sure that we can use it.
25+
You can *request* a new feature by [submitting an issue](#submit-issue) to the GitHub Repository. If you would like to *implement* a new feature, please submit an issue with a proposal for your work first, to be sure that we can use it.
3526

3627
- **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr).
3728

@@ -41,28 +32,23 @@ a proposal for your work first, to be sure that we can use it.
4132

4233
Before you submit an issue, search the archive, maybe your question was already answered.
4334

44-
If your issue appears to be a bug, and hasn't been reported, open a new issue.
45-
Help us to maximize the effort we can spend fixing issues and adding new
46-
features, by not reporting duplicate issues. Providing the following information will increase the
47-
chances of your issue being dealt with quickly:
35+
If your issue appears to be a bug, and hasn't been reported, open a new issue. Help us to maximize the effort we can spend fixing issues and adding new features, by not reporting duplicate issues. Providing the following information will increase the chances of your issue being dealt with quickly:
4836

4937
- **Overview of the Issue** - if an error is being thrown a non-minified stack trace helps
5038
- **Version** - what version is affected (e.g. 0.1.2)
5139
- **Motivation for or Use Case** - explain what are you trying to do and why the current behavior is a bug for you
5240
- **Browsers and Operating System** - is this a problem with all browsers?
5341
- **Reproduce the Error** - provide a live example or a unambiguous set of steps
5442
- **Related Issues** - has a similar issue been reported before?
55-
- **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be
56-
causing the problem (line of code or commit)
43+
- **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be causing the problem (line of code or commit)
5744

58-
You can file new issues by providing the above information at the corresponding repository's issues link: <https://github.com/Azure-Samples/openai-end-to-end-basic/issues/new>.
45+
You can file new issues by providing the above information at the corresponding repository's issues link: <https://github.com/Azure-Samples/microsoft-foundry-basic/issues/new>.
5946

6047
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
6148

6249
Before you submit your Pull Request (PR) consider the following guidelines:
6350

64-
- Search the repository (https://github.com/[organization-name]/[repository-name]/pulls) for an open or closed PR
65-
that relates to your submission. You don't want to duplicate effort.
51+
- Search the [repository](https://github.com/Azure-Samples/microsoft-foundry-basic/pulls) for an open or closed PR that relates to your submission. You don't want to duplicate effort.
6652

6753
- Make your changes in a new git fork:
6854

README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
# Azure AI Foundry Agent service chat basic reference implementation
1+
# Foundry Agent Service chat basic reference implementation
22

3-
This reference implementation illustrates an approach running a chat application and an AI orchestration layer in a single region. It uses Azure AI Foundry Agent service as the orchestrator and Azure OpenAI foundation models. This repository directly supports the [Basic end-to-end chat reference architecture](https://learn.microsoft.com/azure/architecture/ai-ml/architecture/basic-openai-e2e-chat) on Microsoft Learn.
3+
This reference implementation illustrates an approach running a chat application and an AI orchestration layer in a single region. It uses Foundry Agent Service as the orchestrator and Azure OpenAI foundation models. This repository directly supports the [Basic end-to-end chat reference architecture](https://learn.microsoft.com/azure/architecture/ai-ml/architecture/basic-openai-e2e-chat) on Microsoft Learn.
44

5-
The reference implementation illustrates a basic example of a chat application. For a reference implementation that implements more enterprise requirements, please see the [Azure AI Foundry Agent service end-to-end baseline reference implementation](https://github.com/Azure-Samples/openai-end-to-end-baseline). That implementation addresses many of the [production readiness changes](https://github.com/search?q=repo%3AAzure-Samples%2Fopenai-end-to-end-basic+%22Production+readiness+change%22&type=code) identified in this code.
5+
The reference implementation illustrates a basic example of a chat application. For a reference implementation that implements more enterprise requirements, please see the [Microsoft Foundry Agent Service baseline reference implementation](https://github.com/Azure-Samples/openai-end-to-end-baseline). That implementation addresses many of the [production readiness changes](https://github.com/search?q=repo%3AAzure-Samples%2Fopenai-end-to-end-basic+%22Production+readiness+change%22&type=code) identified in this code.
66

77
## Architecture
88

99
The implementation covers the following scenarios:
1010

11-
- [Setting up Azure AI Foundry to host agents](#setting-up-azure-ai-foundry-to-host-agents)
12-
- [Deploying an agent into Azure AI Foundry Agent service](#deploying-an-agent-into-azure-ai-agent-service)
11+
- [Setting up Microsoft Foundry to host agents](#setting-up-microsoft-foundry-to-host-agents)
12+
- [Deploying an agent into Foundry Agent Service](#deploying-an-agent-into-foundry-agent-service)
1313
- [Invoking the agent from .NET code hosted in an Azure Web App](#invoking-the-agent-from-net-code-hosted-in-an-azure-web-app)
1414

15-
### Setting up Azure AI Foundry to host agents
15+
### Setting up Microsoft Foundry to host agents
1616

17-
Azure AI Foundry hosts Azure AI Foundry Agent service as a capability. Foundry Agent Service's REST APIs are exposed as an internet facing endpoint.
17+
Microsoft Foundry hosts the Foundry Agent Service as a capability. Foundry Agent Service's REST APIs are exposed as an internet facing endpoint.
1818

19-
![Diagram that shows a basic end-to-end chat architecture.](docs/media/openai-end-to-end-basic.svg)
19+
![Diagram that shows a basic chat architecture.](docs/media/basic-architecture.svg)
2020

21-
*Download a [Visio file](docs/media/openai-end-to-end-basic.vsdx) of this architecture.*
21+
*Download a [Visio file](docs/media/basic-architecture.vsdx) of this architecture.*
2222

2323
#### Workflow
2424

2525
The following workflow corresponds to the previous diagram:
2626

2727
1. An application user interacts with a web application that contains chat functionality. They issue an HTTPS request to the App Service default domain on azurewebsites.net. This domain automatically points to the App Service built-in public IP address. The Transport Layer Security connection is established from the client directly to App Service. Azure fully manages the certificate.
2828
1. The App Service feature called Easy Auth ensures that the user who accesses the website is authenticated via Microsoft Entra ID.
29-
1. The application code deployed to App Service handles the request and renders a chat UI for the application user. The chat UI code connects to APIs that are also hosted in that same App Service instance. The API code connects to an Azure AI agent in Azure AI Foundry by using the Azure AI Persistent Agents SDK.
30-
1. Azure AI Foundry Agent Service connects to Azure AI Search to fetch grounding data for the query. The grounding data is added to the prompt that's sent to the Azure OpenAI model in the next step.
31-
1. Foundry Agent Service connects to an Azure OpenAI model that's deployed in Azure AI Foundry and sends the prompt that includes the relevant grounding data and chat context.
29+
1. The application code deployed to App Service handles the request and renders a chat UI for the application user. The chat UI code connects to APIs that are also hosted in that same App Service instance. The API code connects to an agent in Microsoft Foundry by using the Azure AI Persistent Agents SDK.
30+
1. Foundry Agent Service connects to Azure AI Search to fetch grounding data for the query. The grounding data is added to the prompt that's sent to the Azure OpenAI model in the next step.
31+
1. Foundry Agent Service connects to an Azure OpenAI model that's deployed in Foundry and sends the prompt that includes the relevant grounding data and chat context.
3232
1. Application Insights logs information about the original request to App Service and the call agent interactions.
3333

34-
### Deploying an agent into Azure AI Foundry Agent service
34+
### Deploying an agent into Foundry Agent Service
3535

36-
Agents can be created via the Azure AI Foundry portal, [Azure AI Persistent Agents client library](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Agents.Persistent), or the [REST API](https://learn.microsoft.com/rest/api/aifoundry/aiagents/). The creation and invocation of agents are a data plane operation.
36+
Agents can be created via the Foundry portal, [Azure AI Persistent Agents client library](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Agents.Persistent), or the [REST API](https://learn.microsoft.com/rest/api/aifoundry/aiagents/). The creation and invocation of agents are a data plane operation.
3737

3838
Ideally agents should be source-controlled and a versioned asset. You then can deploy agents in a coordinated way with the rest of your workload's code. In this deployment guide, you'll create an agent through the REST API to simulate a deployment pipeline which could have created the agent.
3939

4040
### Invoking the agent from .NET code hosted in an Azure Web App
4141

42-
A chat UI application is deployed into Azure App Service. The .NET code uses the [Azure AI Persistent Agents client library](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Agents.Persistent) to connect to the workload's agent. The endpoint for the agent is exposed over internet through the Azure AI Foundry.
42+
A chat UI application is deployed into Azure App Service. The .NET code uses the [Azure AI Persistent Agents client library](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Agents.Persistent) to connect to the workload's agent. The endpoint for the agent is exposed over internet through Foundry.
4343

4444
## Deployment guide
4545

@@ -78,8 +78,8 @@ The following steps are required to deploy the infrastructure from the command l
7878
1. In your shell, clone this repo and navigate to the root directory of this repository.
7979

8080
```bash
81-
git clone https://github.com/Azure-Samples/openai-end-to-end-basic
82-
cd openai-end-to-end-basic
81+
git clone https://github.com/Azure-Samples/microsoft-foundry-basic
82+
cd microsoft-foundry-basic
8383
```
8484

8585
1. Log in and set your target subscription.
@@ -120,15 +120,15 @@ The following steps are required to deploy the infrastructure from the command l
120120
-p yourPrincipalId=$PRINCIPAL_ID
121121
```
122122

123-
### 2. Deploy an agent in the Azure AI Foundry Agent service
123+
### 2. Deploy an agent in the Foundry Agent Service
124124

125-
To test this scenario, you'll be deploying an AI agent. The agent uses a GPT model combined with a Bing search for grounding data. Deploying an AI agent requires data plane access to Azure AI Foundry. In this architecture, you will interact with the Azure AI Foundry portal and its resources over internet.
125+
To test this scenario, you'll be deploying an AI agent. The agent uses a GPT model combined with a Bing search for grounding data. Deploying an AI agent requires data plane access to Microsoft Foundry. In this architecture, you will interact with the Foundry portal and its resources over internet.
126126

127127
1. Open the Azure portal to your subscription.
128128

129-
1. Navigate to the Azure AI Foundry project named **projchat** in your resource group and open the Azure AI Foundry portal by clicking the Go to **Azure AI Foundry portal** button.
129+
1. Navigate to the Foundry project named **projchat** in your resource group and open the Foundry portal by clicking the Go to **Microsoft Foundry portal** button.
130130

131-
This will take you directly into the 'Chat project'. Alternatively, you can find all your AI Foundry accounts and projects by going to <https://ai.azure.com> and you do not need to use the Azure portal to access them.
131+
This will take you directly into the 'Chat project'. Alternatively, you can find all your Foundry accounts and projects by going to <https://ai.azure.com> and you do not need to use the Azure portal to access them.
132132

133133
1. Click **Agents** in the side navigation.
134134

@@ -142,9 +142,9 @@ To test this scenario, you'll be deploying an AI agent. The agent uses a GPT mod
142142

143143
1. Then choose the existing connection named 'bingaiagent' and click the **Connect** button.
144144

145-
### 3. Test the agent from the Azure AI Foundry portal in the playground.
145+
### 3. Test the agent from the Foundry portal in the playground
146146

147-
Here you'll test your orchestration agent by invoking it directly from the Azure AI Foundry portal's playground experience.
147+
Here you'll test your orchestration agent by invoking it directly from the Foundry portal's playground experience.
148148

149149
1. Click the **Try in playground** button.
150150

@@ -154,24 +154,24 @@ Here you'll test your orchestration agent by invoking it directly from the Azure
154154

155155
### 4. Publish the chat front-end web app
156156

157-
Workloads build chat functionality into an application. Those interfaces usually call Azure AI Foundry project endpoint invoking a particular agent. This implementation comes with such an interface. You'll deploy it to Azure App Service using the Azure CLI.
157+
Workloads build chat functionality into an application. Those interfaces usually call Foundry project endpoint invoking a particular agent. This implementation comes with such an interface. You'll deploy it to Azure App Service using the Azure CLI.
158158

159159
1. Generate some variables to set context.
160160

161161
*The following variables align with the defaults in this deployment. Update them if you customized anything.*
162162

163163
```bash
164-
AI_FOUNDRY_NAME="aif${BASE_NAME}"
165-
AI_FOUNDRY_PROJECT_NAME="projchat"
166-
AI_FOUNDRY_AGENT_CREATE_URL="https://${AI_FOUNDRY_NAME}.services.ai.azure.com/api/projects/${AI_FOUNDRY_PROJECT_NAME}/assistants?api-version=2025-05-15-preview"
164+
FOUNDRY_NAME="aif${BASE_NAME}"
165+
FOUNDRY_PROJECT_NAME="projchat"
166+
FOUNDRY_AGENT_CREATE_URL="https://${FOUNDRY_NAME}.services.ai.azure.com/api/projects/${FOUNDRY_PROJECT_NAME}/assistants?api-version=2025-05-15-preview"
167167

168-
echo $AI_FOUNDRY_AGENT_CREATE_URL
168+
echo $FOUNDRY_AGENT_CREATE_URL
169169
```
170170

171171
1. Get Agent ID value.
172172

173173
```bash
174-
AGENT_ID=$(az rest -u $AI_FOUNDRY_AGENT_CREATE_URL -m "get" --resource "https://ai.azure.com" --query 'data[0].id' -o tsv)
174+
AGENT_ID=$(az rest -u $FOUNDRY_AGENT_CREATE_URL -m "get" --resource "https://ai.azure.com" --query 'data[0].id' -o tsv)
175175

176176
echo $AGENT_ID
177177
````
@@ -187,12 +187,12 @@ Workloads build chat functionality into an application. Those interfaces usually
187187
1. Deploy the ChatUI web app
188188
189189
```bash
190-
az webapp deploy -g $RESOURCE_GROUP -n $APPSERVICE_NAME --type zip --src-url https://github.com/Azure-Samples/openai-end-to-end-basic/raw/refs/heads/main/website/chatui.zip
190+
az webapp deploy -g $RESOURCE_GROUP -n $APPSERVICE_NAME --type zip --src-url https://github.com/Azure-Samples/microsoft-foundry-basic/raw/refs/heads/main/website/chatui.zip
191191
```
192192

193193
> Sometimes the prior command will fail with a `GatewayTimeout`. If you receive that error, you're safe to simply execute the command again.
194194
195-
### 5. Try it out! Test the deployed application that calls into the Azure AI Foundry Agent service
195+
### 5. Try it out! Test the deployed application that calls into the Foundry Agent Service
196196

197197
After the deployment is complete, you can try the deployed application by navigating to the Web App's URL in a web browser.
198198

0 commit comments

Comments
 (0)