Python: Update lab packages and installation instructions (#1687)

* update lab packages and installation instructions

* fix dep
This commit is contained in:
Eric Zhu
2025-10-24 14:12:08 -07:00
committed by GitHub
Unverified
parent 418d7f2353
commit aba505df77
7 changed files with 183 additions and 184 deletions
+5 -7
View File
@@ -17,7 +17,7 @@ one of the following categories:
- [**gaia**](./gaia/): Evaluate your agents using the GAIA benchmark for general assistant tasks
- [**tau2**](./tau2/): Evaluate your agents using the TAU2 benchmark for customer support tasks
- [**lightning**](./lightning/): RL training for agents (in development)
- [**lightning**](./lightning/): RL training for agents using Agent Lightning
## Repository Structure
@@ -44,16 +44,14 @@ This structure maintains a single PyPI package `agent-framework-lab` while suppo
## Installation
Install from source:
To install each lab module, use the extras syntax with `pip`:
```bash
git clone https://github.com/microsoft/agent-framework.git
cd agent-framework/python/packages/lab
pip install -e .
pip install "agent-framework-lab[gaia]"
pip install "agent-framework-lab[tau2]"
pip install "agent-framework-lab[lightning]"
```
For details on installing individual modules, see their respective README files listed above.
## Usage
Import and use lab modules from the `agent_framework.lab` namespace.
+2 -4
View File
@@ -7,12 +7,10 @@ It includes built-in benchmarks as well as utilities for running custom evaluati
## Setup
Install from source with GAIA dependencies:
Install the `agent-framework-lab` package with GAIA dependencies:
```bash
git clone https://github.com/microsoft/agent-framework.git
cd agent-framework/python/packages/lab
pip install -e ".[gaia]"
pip install "agent-framework-lab[gaia]"
```
Set up Hugging Face token:
+2 -4
View File
@@ -8,12 +8,10 @@ This package enables you to train and fine-tune agents using advanced RL algorit
## Installation
Install from source with Lightning dependencies:
Install the `agent-framework-lab` package with Lightning dependencies:
```bash
git clone https://github.com/microsoft/agent-framework.git
cd agent-framework/python/packages/lab
pip install -e ".[lightning]"
pip install "agent-framework-lab[lightning]"
```
### Optional Dependencies
+4 -3
View File
@@ -4,7 +4,7 @@ description = "Experimental modules for Microsoft Agent Framework"
authors = [{ name = "Microsoft", email = "af-support@microsoft.com"}]
readme = "README.md"
requires-python = ">=3.10"
version = "1.0.0b251001"
version = "1.0.0b251024"
license-files = ["LICENSE"]
urls.homepage = "https://aka.ms/agent-framework"
urls.source = "https://github.com/microsoft/agent-framework/tree/main/python"
@@ -12,7 +12,7 @@ urls.release_notes = "https://github.com/microsoft/agent-framework/releases?q=ta
urls.issues = "https://github.com/microsoft/agent-framework/issues"
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 2 - Pre-Alpha",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
@@ -45,7 +45,6 @@ tau2 = [
"tiktoken>=0.11.0",
"loguru>=0.7.3",
"numpy",
"tau2@ git+https://github.com/sierra-research/tau2-bench@5ba9e3e56db57c5e4114bf7f901291f09b2c5619",
]
# Dependencies for math-related training
@@ -72,6 +71,8 @@ dev = [
"rich",
"tomli",
"tomli-w",
# tau2 from source (not available on PyPI)
"tau2@ git+https://github.com/sierra-research/tau2-bench@5ba9e3e56db57c5e4114bf7f901291f09b2c5619",
]
[project.scripts]
+8 -4
View File
@@ -23,12 +23,16 @@ _Note: Currently only the airline domain is fully supported._
## Installation
Install from source with TAU2 dependencies:
Install the agent-framework-lab package with TAU2 dependencies:
```bash
git clone https://github.com/microsoft/agent-framework.git
cd agent-framework/python/packages/lab
pip install -e ".[tau2]"
pip install "agent-framework-lab[tau2]"
```
**Important:** You must also install the tau2-bench package from source:
```bash
pip install "tau2 @ git+https://github.com/sierra-research/tau2-bench@5ba9e3e56db57c5e4114bf7f901291f09b2c5619"
```
Download data from [Tau2-Bench](https://github.com/sierra-research/tau2-bench):