isage-benchmark-agent 0.1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- isage_benchmark_agent-0.1.0.1/LICENSE +21 -0
- isage_benchmark_agent-0.1.0.1/MANIFEST.in +8 -0
- isage_benchmark_agent-0.1.0.1/PKG-INFO +91 -0
- isage_benchmark_agent-0.1.0.1/README.md +48 -0
- isage_benchmark_agent-0.1.0.1/pyproject.toml +140 -0
- isage_benchmark_agent-0.1.0.1/setup.cfg +4 -0
- isage_benchmark_agent-0.1.0.1/setup.py +9 -0
- isage_benchmark_agent-0.1.0.1/src/isage_benchmark_agent.egg-info/PKG-INFO +91 -0
- isage_benchmark_agent-0.1.0.1/src/isage_benchmark_agent.egg-info/SOURCES.txt +69 -0
- isage_benchmark_agent-0.1.0.1/src/isage_benchmark_agent.egg-info/dependency_links.txt +1 -0
- isage_benchmark_agent-0.1.0.1/src/isage_benchmark_agent.egg-info/entry_points.txt +2 -0
- isage_benchmark_agent-0.1.0.1/src/isage_benchmark_agent.egg-info/requires.txt +20 -0
- isage_benchmark_agent-0.1.0.1/src/isage_benchmark_agent.egg-info/top_level.txt +1 -0
- isage_benchmark_agent-0.1.0.1/src/sage/__init__.py +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/__init__.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/__init__.py +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/__init__.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/__init__.py +108 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/__init__.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/__main__.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/acebench_loader.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/adapter_registry.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/config/config_loader.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/config/default_config.yaml +24 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/config/planning_exp.yaml +34 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/config/timing_detection_exp.yaml +34 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/config/tool_selection_exp.yaml +32 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/data_paths.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/evaluation/__init__.py +217 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/evaluation/__init__.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/evaluation/analyzers/__init__.py +11 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/evaluation/analyzers/__init__.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/evaluation/analyzers/planning_analyzer.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/evaluation/analyzers/timing_analyzer.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/evaluation/analyzers/tool_selection_analyzer.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/evaluation/evaluator.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/evaluation/metrics.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/evaluation/report_builder.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/evaluation/unified_tool_selection.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/experiments/__init__.py +63 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/experiments/__init__.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/experiments/base_experiment.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/experiments/method_comparison.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/experiments/planning_exp.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/experiments/timing_detection_exp.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/experiments/tool_selection_exp.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/__init__.py +26 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/__init__.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/__init__.py +40 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/__init__.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/exp_analysis_ablation.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/exp_analysis_error.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/exp_analysis_robustness.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/exp_analysis_scaling.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/exp_cross_dataset.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/exp_main_planning.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/exp_main_selection.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/exp_main_timing.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/exp_training_comparison.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/exp_utils.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/figure_generator.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/llm_service.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/run_paper1_experiments.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/sage_bench_cli.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/scripts/experiments/table_generator.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/src/sage/benchmark/benchmark_agent/tools_loader.pyc +0 -0
- isage_benchmark_agent-0.1.0.1/tests/test_evaluation.py +449 -0
- isage_benchmark_agent-0.1.0.1/tests/test_experiments.py +475 -0
- isage_benchmark_agent-0.1.0.1/tests/test_react_planner.py +318 -0
- isage_benchmark_agent-0.1.0.1/tests/test_rule_based_decider.py +418 -0
- isage_benchmark_agent-0.1.0.1/tests/test_toolalpaca_loader.py +309 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 IntelliStream Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: isage-benchmark-agent
|
|
3
|
+
Version: 0.1.0.1
|
|
4
|
+
Summary: SAGE Benchmark Agent - Agent capability evaluation framework
|
|
5
|
+
Author-email: IntelliStream Team <shuhao_zhang@hust.edu.cn>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/intellistream/sage-agent-benchmark
|
|
8
|
+
Project-URL: Documentation, https://github.com/intellistream/sage-agent-benchmark#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/intellistream/sage-agent-benchmark
|
|
10
|
+
Project-URL: Issues, https://github.com/intellistream/sage-agent-benchmark/issues
|
|
11
|
+
Keywords: sage,benchmark,agent,tool-selection,planning,evaluation,intellistream
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Requires-Python: ==3.11.*
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: isage-common
|
|
25
|
+
Requires-Dist: isage-libs
|
|
26
|
+
Requires-Dist: pyyaml>=6.0
|
|
27
|
+
Requires-Dist: pandas>=2.0.0
|
|
28
|
+
Requires-Dist: numpy<2.3.0,>=1.26.0
|
|
29
|
+
Requires-Dist: typer<1.0.0,>=0.15.0
|
|
30
|
+
Requires-Dist: rich<14.0.0,>=13.0.0
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
33
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
34
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
35
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
36
|
+
Requires-Dist: ruff==0.14.6; extra == "dev"
|
|
37
|
+
Requires-Dist: pre-commit>=3.0.0; extra == "dev"
|
|
38
|
+
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
39
|
+
Requires-Dist: types-PyYAML>=6.0.0; extra == "dev"
|
|
40
|
+
Provides-Extra: all
|
|
41
|
+
Requires-Dist: isage-benchmark-agent[dev]; extra == "all"
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
|
|
44
|
+
# SAGE Benchmark Agent
|
|
45
|
+
|
|
46
|
+
Configuration-driven experiment framework for evaluating agent capabilities.
|
|
47
|
+
|
|
48
|
+
## Features
|
|
49
|
+
|
|
50
|
+
- **Tool Selection Evaluation**: Tool retrieval and ranking benchmarks
|
|
51
|
+
- **Planning Evaluation**: Multi-step planning with tool composition
|
|
52
|
+
- **Timing Detection**: Timing judgment for tool invocation decisions
|
|
53
|
+
|
|
54
|
+
## Quick Start
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# Install
|
|
58
|
+
pip install isage-benchmark-agent
|
|
59
|
+
|
|
60
|
+
# Run tool selection experiment
|
|
61
|
+
sage-agent-bench tool-selection --config config/tool_selection_exp.yaml
|
|
62
|
+
|
|
63
|
+
# Run planning experiment
|
|
64
|
+
sage-agent-bench planning --config config/planning_exp.yaml
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Documentation
|
|
68
|
+
|
|
69
|
+
See [benchmark_agent/README.md](src/sage/benchmark/benchmark_agent/README.md) for detailed documentation.
|
|
70
|
+
|
|
71
|
+
## Development
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Clone
|
|
75
|
+
git clone https://github.com/intellistream/sage-agent-benchmark.git
|
|
76
|
+
cd sage-agent-benchmark
|
|
77
|
+
|
|
78
|
+
# Setup virtual environment
|
|
79
|
+
python -m venv .venv
|
|
80
|
+
source .venv/bin/activate # On Windows: .venv\Scripts\activate
|
|
81
|
+
|
|
82
|
+
# Install in development mode
|
|
83
|
+
pip install -e ".[dev]"
|
|
84
|
+
|
|
85
|
+
# Run tests
|
|
86
|
+
pytest
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
|
|
91
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# SAGE Benchmark Agent
|
|
2
|
+
|
|
3
|
+
Configuration-driven experiment framework for evaluating agent capabilities.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Tool Selection Evaluation**: Tool retrieval and ranking benchmarks
|
|
8
|
+
- **Planning Evaluation**: Multi-step planning with tool composition
|
|
9
|
+
- **Timing Detection**: Timing judgment for tool invocation decisions
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Install
|
|
15
|
+
pip install isage-benchmark-agent
|
|
16
|
+
|
|
17
|
+
# Run tool selection experiment
|
|
18
|
+
sage-agent-bench tool-selection --config config/tool_selection_exp.yaml
|
|
19
|
+
|
|
20
|
+
# Run planning experiment
|
|
21
|
+
sage-agent-bench planning --config config/planning_exp.yaml
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Documentation
|
|
25
|
+
|
|
26
|
+
See [benchmark_agent/README.md](src/sage/benchmark/benchmark_agent/README.md) for detailed documentation.
|
|
27
|
+
|
|
28
|
+
## Development
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Clone
|
|
32
|
+
git clone https://github.com/intellistream/sage-agent-benchmark.git
|
|
33
|
+
cd sage-agent-benchmark
|
|
34
|
+
|
|
35
|
+
# Setup virtual environment
|
|
36
|
+
python -m venv .venv
|
|
37
|
+
source .venv/bin/activate # On Windows: .venv\Scripts\activate
|
|
38
|
+
|
|
39
|
+
# Install in development mode
|
|
40
|
+
pip install -e ".[dev]"
|
|
41
|
+
|
|
42
|
+
# Run tests
|
|
43
|
+
pytest
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## License
|
|
47
|
+
|
|
48
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=64", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "isage-benchmark-agent"
|
|
7
|
+
version = "0.1.0.1"
|
|
8
|
+
description = "SAGE Benchmark Agent - Agent capability evaluation framework"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = "==3.11.*"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "IntelliStream Team", email = "shuhao_zhang@hust.edu.cn" },
|
|
13
|
+
]
|
|
14
|
+
keywords = [
|
|
15
|
+
"sage",
|
|
16
|
+
"benchmark",
|
|
17
|
+
"agent",
|
|
18
|
+
"tool-selection",
|
|
19
|
+
"planning",
|
|
20
|
+
"evaluation",
|
|
21
|
+
"intellistream",
|
|
22
|
+
]
|
|
23
|
+
classifiers = [
|
|
24
|
+
"Development Status :: 4 - Beta",
|
|
25
|
+
"Intended Audience :: Developers",
|
|
26
|
+
"Intended Audience :: Science/Research",
|
|
27
|
+
"Programming Language :: Python :: 3",
|
|
28
|
+
"Programming Language :: Python :: 3.11",
|
|
29
|
+
"Programming Language :: Python :: 3.12",
|
|
30
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
31
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
32
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
dependencies = [
|
|
36
|
+
# SAGE dependencies from PyPI
|
|
37
|
+
"isage-common",
|
|
38
|
+
"isage-libs", # For agent interfaces if needed
|
|
39
|
+
|
|
40
|
+
# Core dependencies
|
|
41
|
+
"pyyaml>=6.0",
|
|
42
|
+
"pandas>=2.0.0",
|
|
43
|
+
"numpy>=1.26.0,<2.3.0",
|
|
44
|
+
|
|
45
|
+
# CLI dependencies
|
|
46
|
+
"typer>=0.15.0,<1.0.0",
|
|
47
|
+
"rich>=13.0.0,<14.0.0",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
license = "MIT"
|
|
51
|
+
|
|
52
|
+
[project.optional-dependencies]
|
|
53
|
+
dev = [
|
|
54
|
+
"pytest>=7.0.0",
|
|
55
|
+
"pytest-asyncio>=0.21.0",
|
|
56
|
+
"pytest-cov>=4.0.0",
|
|
57
|
+
"black>=23.0.0",
|
|
58
|
+
"ruff==0.14.6",
|
|
59
|
+
"pre-commit>=3.0.0",
|
|
60
|
+
"mypy>=1.0.0",
|
|
61
|
+
"types-PyYAML>=6.0.0",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
all = [
|
|
65
|
+
"isage-benchmark-agent[dev]",
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
[project.urls]
|
|
69
|
+
Homepage = "https://github.com/intellistream/sage-agent-benchmark"
|
|
70
|
+
Documentation = "https://github.com/intellistream/sage-agent-benchmark#readme"
|
|
71
|
+
Repository = "https://github.com/intellistream/sage-agent-benchmark"
|
|
72
|
+
Issues = "https://github.com/intellistream/sage-agent-benchmark/issues"
|
|
73
|
+
|
|
74
|
+
[project.scripts]
|
|
75
|
+
sage-agent-bench = "sage.benchmark.benchmark_agent.__main__:main"
|
|
76
|
+
|
|
77
|
+
[tool.setuptools]
|
|
78
|
+
package-dir = {"" = "src"}
|
|
79
|
+
include-package-data = true
|
|
80
|
+
|
|
81
|
+
[tool.setuptools.packages.find]
|
|
82
|
+
where = ["src"]
|
|
83
|
+
include = ["sage*"]
|
|
84
|
+
namespaces = true
|
|
85
|
+
|
|
86
|
+
[tool.setuptools.package-data]
|
|
87
|
+
"sage.benchmark.benchmark_agent" = [
|
|
88
|
+
"config/*.yaml",
|
|
89
|
+
"data/**/*",
|
|
90
|
+
]
|
|
91
|
+
"*" = ["*.pyc", "*.pyo", "__pycache__/*", "*.so", "*.pyd", "*.dylib"]
|
|
92
|
+
|
|
93
|
+
[tool.ruff]
|
|
94
|
+
line-length = 100
|
|
95
|
+
target-version = "py311"
|
|
96
|
+
|
|
97
|
+
[tool.ruff.lint]
|
|
98
|
+
select = ["E", "F", "I", "W"]
|
|
99
|
+
ignore = [
|
|
100
|
+
"E501", # Line too long
|
|
101
|
+
"F401", # Unused imports
|
|
102
|
+
"F841", # Unused local variable
|
|
103
|
+
]
|
|
104
|
+
|
|
105
|
+
[tool.mypy]
|
|
106
|
+
ignore_missing_imports = true
|
|
107
|
+
python_version = "3.11"
|
|
108
|
+
warn_return_any = true
|
|
109
|
+
warn_unused_configs = true
|
|
110
|
+
|
|
111
|
+
[tool.pytest.ini_options]
|
|
112
|
+
testpaths = ["tests"]
|
|
113
|
+
python_files = ["test_*.py"]
|
|
114
|
+
addopts = [
|
|
115
|
+
"--strict-markers",
|
|
116
|
+
"--verbose",
|
|
117
|
+
"-ra",
|
|
118
|
+
]
|
|
119
|
+
markers = [
|
|
120
|
+
"slow: marks tests as slow",
|
|
121
|
+
"integration: marks tests as integration tests",
|
|
122
|
+
"unit: marks tests as unit tests",
|
|
123
|
+
]
|
|
124
|
+
|
|
125
|
+
[tool.coverage.run]
|
|
126
|
+
source = ["src/sage"]
|
|
127
|
+
omit = ["*/tests/*", "*/test_*.py"]
|
|
128
|
+
|
|
129
|
+
[tool.coverage.report]
|
|
130
|
+
exclude_lines = [
|
|
131
|
+
"pragma: no cover",
|
|
132
|
+
"def __repr__",
|
|
133
|
+
"raise AssertionError",
|
|
134
|
+
"raise NotImplementedError",
|
|
135
|
+
"if __name__ == .__main__.:",
|
|
136
|
+
]
|
|
137
|
+
|
|
138
|
+
[tool.black]
|
|
139
|
+
line-length = 100
|
|
140
|
+
target-version = ['py311']
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: isage-benchmark-agent
|
|
3
|
+
Version: 0.1.0.1
|
|
4
|
+
Summary: SAGE Benchmark Agent - Agent capability evaluation framework
|
|
5
|
+
Author-email: IntelliStream Team <shuhao_zhang@hust.edu.cn>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/intellistream/sage-agent-benchmark
|
|
8
|
+
Project-URL: Documentation, https://github.com/intellistream/sage-agent-benchmark#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/intellistream/sage-agent-benchmark
|
|
10
|
+
Project-URL: Issues, https://github.com/intellistream/sage-agent-benchmark/issues
|
|
11
|
+
Keywords: sage,benchmark,agent,tool-selection,planning,evaluation,intellistream
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Requires-Python: ==3.11.*
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: isage-common
|
|
25
|
+
Requires-Dist: isage-libs
|
|
26
|
+
Requires-Dist: pyyaml>=6.0
|
|
27
|
+
Requires-Dist: pandas>=2.0.0
|
|
28
|
+
Requires-Dist: numpy<2.3.0,>=1.26.0
|
|
29
|
+
Requires-Dist: typer<1.0.0,>=0.15.0
|
|
30
|
+
Requires-Dist: rich<14.0.0,>=13.0.0
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
33
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
34
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
35
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
36
|
+
Requires-Dist: ruff==0.14.6; extra == "dev"
|
|
37
|
+
Requires-Dist: pre-commit>=3.0.0; extra == "dev"
|
|
38
|
+
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
39
|
+
Requires-Dist: types-PyYAML>=6.0.0; extra == "dev"
|
|
40
|
+
Provides-Extra: all
|
|
41
|
+
Requires-Dist: isage-benchmark-agent[dev]; extra == "all"
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
|
|
44
|
+
# SAGE Benchmark Agent
|
|
45
|
+
|
|
46
|
+
Configuration-driven experiment framework for evaluating agent capabilities.
|
|
47
|
+
|
|
48
|
+
## Features
|
|
49
|
+
|
|
50
|
+
- **Tool Selection Evaluation**: Tool retrieval and ranking benchmarks
|
|
51
|
+
- **Planning Evaluation**: Multi-step planning with tool composition
|
|
52
|
+
- **Timing Detection**: Timing judgment for tool invocation decisions
|
|
53
|
+
|
|
54
|
+
## Quick Start
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# Install
|
|
58
|
+
pip install isage-benchmark-agent
|
|
59
|
+
|
|
60
|
+
# Run tool selection experiment
|
|
61
|
+
sage-agent-bench tool-selection --config config/tool_selection_exp.yaml
|
|
62
|
+
|
|
63
|
+
# Run planning experiment
|
|
64
|
+
sage-agent-bench planning --config config/planning_exp.yaml
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Documentation
|
|
68
|
+
|
|
69
|
+
See [benchmark_agent/README.md](src/sage/benchmark/benchmark_agent/README.md) for detailed documentation.
|
|
70
|
+
|
|
71
|
+
## Development
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Clone
|
|
75
|
+
git clone https://github.com/intellistream/sage-agent-benchmark.git
|
|
76
|
+
cd sage-agent-benchmark
|
|
77
|
+
|
|
78
|
+
# Setup virtual environment
|
|
79
|
+
python -m venv .venv
|
|
80
|
+
source .venv/bin/activate # On Windows: .venv\Scripts\activate
|
|
81
|
+
|
|
82
|
+
# Install in development mode
|
|
83
|
+
pip install -e ".[dev]"
|
|
84
|
+
|
|
85
|
+
# Run tests
|
|
86
|
+
pytest
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
|
|
91
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
README.md
|
|
4
|
+
pyproject.toml
|
|
5
|
+
setup.py
|
|
6
|
+
src/isage_benchmark_agent.egg-info/PKG-INFO
|
|
7
|
+
src/isage_benchmark_agent.egg-info/SOURCES.txt
|
|
8
|
+
src/isage_benchmark_agent.egg-info/dependency_links.txt
|
|
9
|
+
src/isage_benchmark_agent.egg-info/entry_points.txt
|
|
10
|
+
src/isage_benchmark_agent.egg-info/requires.txt
|
|
11
|
+
src/isage_benchmark_agent.egg-info/top_level.txt
|
|
12
|
+
src/sage/__init__.py
|
|
13
|
+
src/sage/__init__.pyc
|
|
14
|
+
src/sage/benchmark/__init__.py
|
|
15
|
+
src/sage/benchmark/__init__.pyc
|
|
16
|
+
src/sage/benchmark/benchmark_agent/__init__.py
|
|
17
|
+
src/sage/benchmark/benchmark_agent/__init__.pyc
|
|
18
|
+
src/sage/benchmark/benchmark_agent/__main__.pyc
|
|
19
|
+
src/sage/benchmark/benchmark_agent/acebench_loader.pyc
|
|
20
|
+
src/sage/benchmark/benchmark_agent/adapter_registry.pyc
|
|
21
|
+
src/sage/benchmark/benchmark_agent/data_paths.pyc
|
|
22
|
+
src/sage/benchmark/benchmark_agent/tools_loader.pyc
|
|
23
|
+
src/sage/benchmark/benchmark_agent/config/config_loader.pyc
|
|
24
|
+
src/sage/benchmark/benchmark_agent/config/default_config.yaml
|
|
25
|
+
src/sage/benchmark/benchmark_agent/config/planning_exp.yaml
|
|
26
|
+
src/sage/benchmark/benchmark_agent/config/timing_detection_exp.yaml
|
|
27
|
+
src/sage/benchmark/benchmark_agent/config/tool_selection_exp.yaml
|
|
28
|
+
src/sage/benchmark/benchmark_agent/evaluation/__init__.py
|
|
29
|
+
src/sage/benchmark/benchmark_agent/evaluation/__init__.pyc
|
|
30
|
+
src/sage/benchmark/benchmark_agent/evaluation/evaluator.pyc
|
|
31
|
+
src/sage/benchmark/benchmark_agent/evaluation/metrics.pyc
|
|
32
|
+
src/sage/benchmark/benchmark_agent/evaluation/report_builder.pyc
|
|
33
|
+
src/sage/benchmark/benchmark_agent/evaluation/unified_tool_selection.pyc
|
|
34
|
+
src/sage/benchmark/benchmark_agent/evaluation/analyzers/__init__.py
|
|
35
|
+
src/sage/benchmark/benchmark_agent/evaluation/analyzers/__init__.pyc
|
|
36
|
+
src/sage/benchmark/benchmark_agent/evaluation/analyzers/planning_analyzer.pyc
|
|
37
|
+
src/sage/benchmark/benchmark_agent/evaluation/analyzers/timing_analyzer.pyc
|
|
38
|
+
src/sage/benchmark/benchmark_agent/evaluation/analyzers/tool_selection_analyzer.pyc
|
|
39
|
+
src/sage/benchmark/benchmark_agent/experiments/__init__.py
|
|
40
|
+
src/sage/benchmark/benchmark_agent/experiments/__init__.pyc
|
|
41
|
+
src/sage/benchmark/benchmark_agent/experiments/base_experiment.pyc
|
|
42
|
+
src/sage/benchmark/benchmark_agent/experiments/method_comparison.pyc
|
|
43
|
+
src/sage/benchmark/benchmark_agent/experiments/planning_exp.pyc
|
|
44
|
+
src/sage/benchmark/benchmark_agent/experiments/timing_detection_exp.pyc
|
|
45
|
+
src/sage/benchmark/benchmark_agent/experiments/tool_selection_exp.pyc
|
|
46
|
+
src/sage/benchmark/benchmark_agent/scripts/__init__.py
|
|
47
|
+
src/sage/benchmark/benchmark_agent/scripts/__init__.pyc
|
|
48
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/__init__.py
|
|
49
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/__init__.pyc
|
|
50
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/exp_analysis_ablation.pyc
|
|
51
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/exp_analysis_error.pyc
|
|
52
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/exp_analysis_robustness.pyc
|
|
53
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/exp_analysis_scaling.pyc
|
|
54
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/exp_cross_dataset.pyc
|
|
55
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/exp_main_planning.pyc
|
|
56
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/exp_main_selection.pyc
|
|
57
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/exp_main_timing.pyc
|
|
58
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/exp_training_comparison.pyc
|
|
59
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/exp_utils.pyc
|
|
60
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/figure_generator.pyc
|
|
61
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/llm_service.pyc
|
|
62
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/run_paper1_experiments.pyc
|
|
63
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/sage_bench_cli.pyc
|
|
64
|
+
src/sage/benchmark/benchmark_agent/scripts/experiments/table_generator.pyc
|
|
65
|
+
tests/test_evaluation.py
|
|
66
|
+
tests/test_experiments.py
|
|
67
|
+
tests/test_react_planner.py
|
|
68
|
+
tests/test_rule_based_decider.py
|
|
69
|
+
tests/test_toolalpaca_loader.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
isage-common
|
|
2
|
+
isage-libs
|
|
3
|
+
pyyaml>=6.0
|
|
4
|
+
pandas>=2.0.0
|
|
5
|
+
numpy<2.3.0,>=1.26.0
|
|
6
|
+
typer<1.0.0,>=0.15.0
|
|
7
|
+
rich<14.0.0,>=13.0.0
|
|
8
|
+
|
|
9
|
+
[all]
|
|
10
|
+
isage-benchmark-agent[dev]
|
|
11
|
+
|
|
12
|
+
[dev]
|
|
13
|
+
pytest>=7.0.0
|
|
14
|
+
pytest-asyncio>=0.21.0
|
|
15
|
+
pytest-cov>=4.0.0
|
|
16
|
+
black>=23.0.0
|
|
17
|
+
ruff==0.14.6
|
|
18
|
+
pre-commit>=3.0.0
|
|
19
|
+
mypy>=1.0.0
|
|
20
|
+
types-PyYAML>=6.0.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sage
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Agent Capability Benchmark Module
|
|
3
|
+
|
|
4
|
+
This module provides infrastructure for evaluating agent capabilities including:
|
|
5
|
+
- Tool selection
|
|
6
|
+
- Task planning
|
|
7
|
+
- Timing detection
|
|
8
|
+
|
|
9
|
+
Architecture:
|
|
10
|
+
config/ Configuration files and loaders
|
|
11
|
+
experiments/ Experiment runners and base classes
|
|
12
|
+
adapter_registry.py Strategy adapter registry
|
|
13
|
+
|
|
14
|
+
Usage:
|
|
15
|
+
# Via CLI
|
|
16
|
+
python -m sage.benchmark.benchmark_agent --config config/tool_selection_exp.yaml
|
|
17
|
+
|
|
18
|
+
# Programmatic
|
|
19
|
+
from sage.benchmark.benchmark_agent import ToolSelectionExperiment
|
|
20
|
+
from sage.benchmark.benchmark_agent.config import ConfigLoader
|
|
21
|
+
from sage.benchmark.benchmark_agent.adapter_registry import get_adapter_registry
|
|
22
|
+
from sage.data import DataManager
|
|
23
|
+
|
|
24
|
+
loader = ConfigLoader()
|
|
25
|
+
config = loader.load_config("config/tool_selection_exp.yaml")
|
|
26
|
+
|
|
27
|
+
dm = DataManager.get_instance()
|
|
28
|
+
registry = get_adapter_registry()
|
|
29
|
+
|
|
30
|
+
exp = ToolSelectionExperiment(config, data_manager=dm, adapter_registry=registry)
|
|
31
|
+
exp.prepare()
|
|
32
|
+
result = exp.run()
|
|
33
|
+
exp.finalize()
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
from sage.benchmark.benchmark_agent.adapter_registry import (
|
|
37
|
+
AdapterRegistry,
|
|
38
|
+
PlannerAdapter,
|
|
39
|
+
SelectorAdapter,
|
|
40
|
+
TimingAdapter,
|
|
41
|
+
get_adapter_registry,
|
|
42
|
+
register_strategy,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
# Data paths management
|
|
46
|
+
from sage.benchmark.benchmark_agent.data_paths import (
|
|
47
|
+
DataPathsConfig,
|
|
48
|
+
RuntimePaths,
|
|
49
|
+
SourcePaths,
|
|
50
|
+
ensure_runtime_dirs,
|
|
51
|
+
get_data_paths_config,
|
|
52
|
+
get_runtime_paths,
|
|
53
|
+
get_source_paths,
|
|
54
|
+
)
|
|
55
|
+
from sage.benchmark.benchmark_agent.experiments import ( # Base classes; Configs; Experiments
|
|
56
|
+
BaseExperiment,
|
|
57
|
+
ExperimentConfig,
|
|
58
|
+
ExperimentResult,
|
|
59
|
+
PlanningConfig,
|
|
60
|
+
PlanningExperiment,
|
|
61
|
+
TimingDetectionConfig,
|
|
62
|
+
TimingDetectionExperiment,
|
|
63
|
+
ToolSelectionConfig,
|
|
64
|
+
ToolSelectionExperiment,
|
|
65
|
+
)
|
|
66
|
+
from sage.benchmark.benchmark_agent.experiments.method_comparison import (
|
|
67
|
+
ExperimentResult as ComparisonResult,
|
|
68
|
+
)
|
|
69
|
+
from sage.benchmark.benchmark_agent.experiments.method_comparison import (
|
|
70
|
+
MethodComparisonExperiment,
|
|
71
|
+
MethodConfig,
|
|
72
|
+
MethodRegistry,
|
|
73
|
+
run_full_comparison,
|
|
74
|
+
run_quick_comparison,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
__version__ = "0.1.0"
|
|
78
|
+
|
|
79
|
+
__all__ = [
|
|
80
|
+
"__version__",
|
|
81
|
+
# Experiments
|
|
82
|
+
"ToolSelectionExperiment",
|
|
83
|
+
"PlanningExperiment",
|
|
84
|
+
"TimingDetectionExperiment",
|
|
85
|
+
# Base
|
|
86
|
+
"BaseExperiment",
|
|
87
|
+
"ExperimentConfig",
|
|
88
|
+
"ExperimentResult",
|
|
89
|
+
# Configs
|
|
90
|
+
"ToolSelectionConfig",
|
|
91
|
+
"PlanningConfig",
|
|
92
|
+
"TimingDetectionConfig",
|
|
93
|
+
# Adapter Registry
|
|
94
|
+
"AdapterRegistry",
|
|
95
|
+
"SelectorAdapter",
|
|
96
|
+
"PlannerAdapter",
|
|
97
|
+
"TimingAdapter",
|
|
98
|
+
"get_adapter_registry",
|
|
99
|
+
"register_strategy",
|
|
100
|
+
# Data Paths
|
|
101
|
+
"get_source_paths",
|
|
102
|
+
"get_runtime_paths",
|
|
103
|
+
"get_data_paths_config",
|
|
104
|
+
"ensure_runtime_dirs",
|
|
105
|
+
"SourcePaths",
|
|
106
|
+
"RuntimePaths",
|
|
107
|
+
"DataPathsConfig",
|
|
108
|
+
]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Default Configuration for Agent Benchmark Experiments
|
|
2
|
+
|
|
3
|
+
# Data settings
|
|
4
|
+
profile: "quick_eval" # agent_eval usage profile
|
|
5
|
+
split: "dev" # Data split: train/dev/test
|
|
6
|
+
max_samples: # Limit samples (null = all)
|
|
7
|
+
|
|
8
|
+
# Randomness
|
|
9
|
+
seed: 42
|
|
10
|
+
|
|
11
|
+
# Output and reporting
|
|
12
|
+
report:
|
|
13
|
+
format: ["json", "markdown"]
|
|
14
|
+
include_breakdowns: true
|
|
15
|
+
path: "${PROJECT_ROOT}/outputs/agent_benchmark"
|
|
16
|
+
markdown_template:
|
|
17
|
+
|
|
18
|
+
# Metrics (common defaults, overridden per experiment)
|
|
19
|
+
metrics:
|
|
20
|
+
- "accuracy"
|
|
21
|
+
|
|
22
|
+
# Logging
|
|
23
|
+
verbose: true
|
|
24
|
+
log_level: "INFO"
|