Super Agent Usage
Setup
- Install uv if it is not already on your PATH.
- From the repo root run
uv syncto create/update the virtual environment with the pinned dependencies inuv.lock. - Run
uv pip install tiktokenseparately - Configure your LLM credentials in a .env script:
API_BASEAPI_KEYMODEL_NAMEMODEL_PROVIDER
Usage
-
Run the primary Super Agent demo (covers tool usage, context management, streaming, token accounting, and sub-agent delegation):
uv run python examples/super_agent/test/super_react_agent_example.pyThe script prints the progress of each scenario and exits once all seven demonstrations complete.
-
Run the Super Agent demo with MCP coverage:
uv run python examples/super_agent/test/super_react_agent_example_mcp.pyDo note that you will need MCP servers to run in order to run this example. The MCP servers need to be SSE and not stdio. Optionally, feed the output into a .txt file. e.g. uv run python examples/super_agent/test/super_react_agent_example_mcp.py >> example_result.txt
-
In order to run batches of datapoints with MCP (e.g. for GAIA dataset):
- Provide a JSONL task file to your own harness (see
examples/super_agent/data/test.jsonl) - Run the Super Agent test run script that allows for running multiple questions.
uv run python examples/super_agent/test/super_react_agent_test_run.py
Optionally, feed the output into a .txt file. e.g. uv run python examples/super_agent/test/super_react_agent_example_mcp.py >> example_result.txt