Skip to main content
ReinforceNow CLI

PyPI version Docs Follow on X MIT License

Documentation

See the documentation for a technical overview of the platform and train your first agent

Quick Start

1. Install uv (Python package manager)

# macOS/Linux:
$ curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows:
PS> powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

2. Install ReinforceNow

uv init && uv venv --python 3.11
source .venv/bin/activate  # Windows: .\.venv\Scripts\Activate.ps1
uv pip install rnow

3. Authenticate

rnow login

4. Create & Run Your First Project

rnow init --template sft
rnow run

That's it! Your training run will start on ReinforceNow's infrastructure. Monitor progress in the dashboard.

ReinforceNow Graph

Core Concepts

Go from raw data to a reliable AI agent in production. ReinforceNow gives you the flexibility to define:

1. Reward Functions

Define how your model should be evaluated using the @reward decorator:

from rnow.core import reward, RewardArgs

@reward
async def accuracy(args: RewardArgs, messages: list) -> float:
    """Check if the model's answer matches ground truth."""
    response = messages[-1]["content"]
    expected = args.metadata["answer"]
    return 1.0 if expected in response else 0.0

Write your first reward function

2. Tools (for Agents)

Give your model the ability to call functions during training:

from rnow.core import tool

@tool
def search(query: str, max_results: int = 5) -> dict:
    """Search the web for information."""
    # Your implementation here
    return {"results": [...]}

Train an agent with custom tools

3. Training Data

Create a train.jsonl file with your prompts and reward assignments:

{"messages": [{"role": "user", "content": "Balance the equation: Fe + O2 → Fe2O3"}], "rewards": ["accuracy"], "metadata": {"answer": "4Fe + 3O2 → 2Fe2O3"}}
{"messages": [{"role": "user", "content": "Balance the equation: H2 + O2 → H2O"}], "rewards": ["accuracy"], "metadata": {"answer": "2H2 + O2 → 2H2O"}}
{"messages": [{"role": "user", "content": "Balance the equation: N2 + H2 → NH3"}], "rewards": ["accuracy"], "metadata": {"answer": "N2 + 3H2 → 2NH3"}}

Learn about training data format

Contributing

We welcome contributions! ❤️ Please open an issue to discuss your ideas before submitting a PR


ReinforceNow

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rnow-0.4.37.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rnow-0.4.37-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file rnow-0.4.37.tar.gz.

File metadata

  • Download URL: rnow-0.4.37.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rnow-0.4.37.tar.gz
Algorithm Hash digest
SHA256 86c32c31c58c6160736f29b8639d8e2d201aba83f9468fc8a46d5904cec95562
MD5 b1e990fe556077501d8da17a3ff8df71
BLAKE2b-256 fe019dd0c855d314bd27e3134135b8c58b399821d8fefe6999b52b94d0654678

See more details on using hashes here.

File details

Details for the file rnow-0.4.37-py3-none-any.whl.

File metadata

  • Download URL: rnow-0.4.37-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rnow-0.4.37-py3-none-any.whl
Algorithm Hash digest
SHA256 7b1cdfb4ac7dc2f996ca73429b9e40924bec12a6587e27786d93d6deeb540304
MD5 f1df653a45514a2ba3fd5ac187b658b4
BLAKE2b-256 ccab4a3b65c952701f7cff87f720197bf045b3059b7a996af0baf6bb604560bf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.37 This release

2 files

0.4.36

2 files

0.4.35

2 files

0.4.34

2 files

0.4.33

2 files

0.4.32

2 files

0.4.31

2 files

0.4.30

2 files

0.4.29

2 files

0.4.28

2 files

0.4.27

2 files

0.4.26

2 files

0.4.25

2 files

0.4.24

2 files

0.4.23

2 files

0.4.22

2 files

0.4.21

2 files

0.4.20

2 files

0.4.17

2 files

0.4.16

2 files

0.4.15

2 files

0.4.14

2 files

0.4.13

2 files

0.4.12

2 files

0.4.11

2 files

0.4.10

2 files

0.4.9

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.25

2 files

0.3.24

2 files

0.3.23

2 files

0.3.22

2 files

0.3.21

2 files

0.3.20

2 files

0.3.19

2 files

0.3.18

2 files

0.3.17

2 files

0.3.16

2 files

0.3.15

2 files

0.3.14

2 files

0.3.13

2 files

0.3.12

2 files

0.3.11

2 files

0.3.10

2 files

0.3.9

2 files

0.3.8

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.1

2 files

0.2.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page