@@ -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\P ython\W eatherAgent
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\s cripts\a ctivate
39+ ```
40+
22411 . 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 ` ` `
46651. 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