Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM mcr.microsoft.com/devcontainers/python:3.12-bookworm

COPY requirements.txt /tmp/pip-tmp/
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/

RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
&& rm -rf /tmp/pip-tmp
COPY pyproject.toml uv.lock /tmp/uv-tmp/

RUN cd /tmp/uv-tmp && uv sync --no-cache \
&& rm -rf /tmp/uv-tmp
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ A related option is VS Code Dev Containers, which will open the project in your
1. Make sure the following tools are installed:

* [Python 3.10+](https://www.python.org/downloads/)
* [uv](https://docs.astral.sh/uv/getting-started/installation/)
* Git

2. Clone the repository:
Expand All @@ -72,17 +73,10 @@ A related option is VS Code Dev Containers, which will open the project in your
cd python-agentframework-demos
```

3. Set up a virtual environment:
3. Install the dependencies:

```shell
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
```

4. Install the requirements:

```shell
pip install -r requirements.txt
uv sync
```

## Configuring model providers
Expand Down
12 changes: 3 additions & 9 deletions examples/spanish/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Una opción relacionada es VS Code Dev Containers, que abrirá el proyecto en tu
1. Asegúrate de tener instaladas las siguientes herramientas:

* [Python 3.10+](https://www.python.org/downloads/)
* [uv](https://docs.astral.sh/uv/getting-started/installation/)
* Git

2. Clona el repositorio:
Expand All @@ -73,17 +74,10 @@ Una opción relacionada es VS Code Dev Containers, que abrirá el proyecto en tu
cd python-agentframework-demos
```

3. Configura un entorno virtual:
3. Instala las dependencias:

```shell
python -m venv .venv
source .venv/bin/activate # En Windows: .venv\Scripts\activate
```

4. Instala los requisitos:

```shell
pip install -r requirements.txt
uv sync
```

## Configurar proveedores de modelos
Expand Down
1 change: 0 additions & 1 deletion examples/spanish/workflow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pip install agent-framework-devui==1.0.0b251016
import os
from typing import Any

Expand Down
1 change: 0 additions & 1 deletion examples/workflow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pip install agent-framework-devui==1.0.0b251016
import os
from typing import Any

Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
[project]
name = "python-agentframework-demos"
version = "0.1.0"
description = "Collection of Python examples for Microsoft Agent Framework"
requires-python = ">=3.10"
dependencies = [
"azure-identity",
"openai>=1.109.1",
"python-dotenv",
"pydantic",
"rich",
"dotenv-azd",
"aiohttp",
"faker",
"agent-framework-core @ git+https://github.com/microsoft/agent-framework.git@98cd72839e4057d661a58092a3b013993264d834#subdirectory=python/packages/core",
"agent-framework-devui @ git+https://github.com/microsoft/agent-framework.git@98cd72839e4057d661a58092a3b013993264d834#subdirectory=python/packages/devui",
]

[tool.ruff]
line-length = 120
target-version = "py310"
Expand Down
10 changes: 0 additions & 10 deletions requirements.txt

This file was deleted.

2,274 changes: 2,274 additions & 0 deletions uv.lock

Large diffs are not rendered by default.