Move to uv and update no-key math demo #43
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a built-in math learning loop demo, accessible via a new demo subcommand in the CLI and as a package-resident module. The project now requires Python 3.12+, with updated documentation and installation instructions centered around the uv package manager. The existing math demo was refactored into a core module with a thin shim maintained in the examples directory for backward compatibility. Review feedback suggests refining configuration logic to support zero values, optimizing I/O by utilizing in-memory results, and improving test portability by replacing hardcoded paths with pytest fixtures.
Signed-off-by: getianyi <getianyi602@gmail.com>
57bc0a8 to
61d43f5
Compare
| | You have... | Start here | What it shows | | ||
| |---|---|---| | ||
| | A Python agent | [`examples/demo_math.py`](examples/demo_math.py) | Full learning loop with `ClawLoopAgent` | | ||
| | A repo clone | `uv run clawloop demo math --dry-run` | Full learning loop, no API keys needed | |
There was a problem hiding this comment.
Do we have to update the other demos to uv?
There was a problem hiding this comment.
Yes — addressed in c46be61. All python examples/*.py commands in README.md, examples/README.md, docs/getting-started.md, and docs/index.md now use uv run. Grep confirms no plain-python commands remain in user-facing docs.
|
thank you @tianyibigdata, lgtm. Please add initial description |
Improves the usability of the clawloop demo experience after installation by making the demo accessible both from the installed package and from source clones.