Skip to content

Commit 72f7442

Browse files
author
Maryanne Gichohi
committed
Improve ReadMe
1 parent 164d85f commit 72f7442

1 file changed

Lines changed: 38 additions & 7 deletions

File tree

examples/Python/WeatherAgent/README.md

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,26 @@ This sample demonstrates using Azure App Configuration to load agent YAML specif
1818

1919
## Setup
2020

21-
1. Clone the repository
21+
1. Clone the repository and navigate to the `examples\Python\WeatherAgent` directory:
22+
```bash
23+
git clone https://github.com/Azure/AppConfiguration.git
24+
cd examples\Python\WeatherAgent
25+
```
26+
27+
1. Next, create a new Python virtual environment where you can safely install the packages:
28+
29+
On macOS or Linux run the following command:
30+
```bash
31+
python -m venv .venv
32+
source .venv/bin/activate
33+
```
34+
35+
On Windows run:
36+
```bash
37+
python -m venv .venv
38+
.venv\scripts\activate
39+
```
40+
2241
1. Install the required packages:
2342

2443
```bash
@@ -29,8 +48,8 @@ This sample demonstrates using Azure App Configuration to load agent YAML specif
2948

3049
| Key | Value |
3150
|-----|-------|
32-
| _WeatherAgent:Spec_ | See YAML below |
33-
| _WeatherAgent:ProjectEndpoint_ | Your Foundry project endpoint |
51+
| WeatherAgent:Spec | _See YAML below_ |
52+
| WeatherAgent:ProjectEndpoint | _Your Foundry project endpoint_ |
3453

3554
**YAML specification for _WeatherAgent:Spec_:**
3655
```yaml
@@ -39,14 +58,26 @@ This sample demonstrates using Azure App Configuration to load agent YAML specif
3958
description: Weather Agent
4059
instructions: You are a helpful assistant.
4160
model:
42-
id: gpt-4.1
43-
connection:
44-
kind: remote
61+
id: gpt-4.1
62+
connection:
63+
kind: remote
4564
```
4665
1. Set the required environment variables:
4766
67+
If you use the Windows command prompt, run the following command and restart the command prompt to allow the change to take effect:
68+
69+
```cmd
70+
setx AZURE_APPCONFIGURATION_ENDPOINT "<endpoint-of-your-app-configuration-store>"
71+
```
72+
73+
If you use PowerShell, run the following command:
74+
```powershell
75+
$Env:AZURE_APPCONFIGURATION_ENDPOINT="<endpoint-of-your-app-configuration-store>"
76+
```
77+
78+
If you use macOS or Linux run the following command:
4879
```bash
49-
export AZURE_APPCONFIGURATION_ENDPOINT="https://your-appconfig.azconfig.io"
80+
export AZURE_APPCONFIGURATION_ENDPOINT='<endpoint-of-your-app-configuration-store>'
5081
```
5182

5283
## Run the Application

0 commit comments

Comments
 (0)