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
[](https://codespaces.new/Azure-Samples/python-agentframework-demos)
17
18
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/Azure-Samples/python-agentframework-demos)
18
19
19
-
This repository provides examples of [Microsoft Agent Framework](https://learn.microsoft.com/agent-framework/) using LLMs from [GitHub Models](https://github.com/marketplace/models). Those models are free to use for anyone with a GitHub account, up to a [daily rate limit](https://docs.github.com/github-models/prototyping-with-ai-models#rate-limits).
20
+
This repository provides examples of [Microsoft Agent Framework](https://learn.microsoft.com/agent-framework/) using LLMs from [GitHub Models](https://github.com/marketplace/models), [Azure AI Foundry](https://learn.microsoft.com/azure/ai-foundry/), or other model providers. GitHub Models are free to use for anyone with a GitHub account, up to a [daily rate limit](https://docs.github.com/github-models/prototyping-with-ai-models#rate-limits).
20
21
21
22
*[Getting started](#getting-started)
22
23
*[GitHub Codespaces](#github-codespaces)
23
24
*[VS Code Dev Containers](#vs-code-dev-containers)
24
25
*[Local environment](#local-environment)
25
26
*[Configuring model providers](#configuring-model-providers)
*[Running the Python examples](#running-the-python-examples)
31
31
*[Resources](#resources)
32
32
@@ -87,7 +87,7 @@ A related option is VS Code Dev Containers, which will open the project in your
87
87
88
88
## Configuring model providers
89
89
90
-
These examples can be run with Azure OpenAI account, OpenAI.com, local Ollama server, or GitHub models, depending on the environment variables you set. All the scripts reference the environment variables from a `.env` file, and an example `.env.sample` file is provided. Host-specific instructions are below.
90
+
These examples can be run with Azure AI Foundry, OpenAI.com, or GitHub Models, depending on the environment variables you set. All the scripts reference the environment variables from a `.env` file, and an example `.env.sample` file is provided. Host-specific instructions are below.
91
91
92
92
## Using GitHub Models
93
93
@@ -111,11 +111,11 @@ If you want to run the scripts locally, you need to set up the `GITHUB_TOKEN` en
111
111
112
112
10. Optionally, you can use a model other than "gpt-4o" by setting the `GITHUB_MODEL` environment variable. Use a model that supports function calling, such as: `gpt-5`, `gpt-5-mini`, `gpt-4o`, `gpt-4o-mini`, `o3-mini`, `AI21-Jamba-1.5-Large`, `AI21-Jamba-1.5-Mini`, `Codestral-2501`, `Cohere-command-r`, `Ministral-3B`, `Mistral-Large-2411`, `Mistral-Nemo`, `Mistral-small`
113
113
114
-
## Using Azure OpenAI models
114
+
## Using Azure AI Foundry models
115
115
116
-
You can run all examples in this repository using GitHub Models. If you want to run the examples using models from Azure OpenAI instead, you need to provision the Azure AI resources, which will incur costs.
116
+
You can run all examples in this repository using GitHub Models. If you want to run the examples using models from Azure AI Foundry instead, you need to provision the Azure AI resources, which will incur costs.
117
117
118
-
This project includes infrastructure as code (IaC) to provision Azure OpenAI deployments of "gpt-4o" and "text-embedding-3-large". The IaC is defined in the `infra` directory and uses the Azure Developer CLI to provision the resources.
118
+
This project includes infrastructure as code (IaC) to provision Azure OpenAI deployments of "gpt-5-mini" and "text-embedding-3-large" via Azure AI Foundry. The IaC is defined in the `infra` directory and uses the Azure Developer CLI to provision the resources.
119
119
120
120
1. Make sure the [Azure Developer CLI (azd)](https://aka.ms/install-azd) is installed.
121
121
@@ -162,31 +162,6 @@ This project includes infrastructure as code (IaC) to provision Azure OpenAI dep
162
162
OPENAI_MODEL=gpt-4o-mini
163
163
```
164
164
165
-
## Using Ollama models
166
-
167
-
1. Install [Ollama](https://ollama.com/) and follow the instructions to set it up on your local machine.
168
-
2. Pull a model, for example:
169
-
170
-
```shell
171
-
ollama pull qwen3:30b
172
-
```
173
-
174
-
Note that most models do not support tool calling to the extent required by agents frameworks, so choose a model accordingly.
175
-
176
-
3. Create a `.env` file by copying the `.env.sample` file and updating it with your Ollama endpoint and model name.
177
-
178
-
```bash
179
-
cp .env.sample .env
180
-
```
181
-
182
-
4. Update the `.env` file with your Ollama endpoint and model name (any model you've pulled):
183
-
184
-
```bash
185
-
API_HOST=ollama
186
-
OLLAMA_ENDPOINT=http://localhost:11434/v1
187
-
OLLAMA_MODEL=llama3.1
188
-
```
189
-
190
165
## Running the Python examples
191
166
192
167
You can run the examples in this repository by executing the scripts in the `examples` directory. Each script demonstrates a different Agent Framework pattern.
0 commit comments