Dojo SDK Core
Core models and types for the Dojo RL environment framework. Not intended for standalone use by end users.
Overview
dojo-sdk-core provides the core components shared across the Dojo ecosystem:
- Action Types - Standardized action models for computer use (click, type, scroll, etc.)
- Reward Functions - Reward functions for dojos that need custom validation
- Shared Types - Common data structures for tasks, scores, and configurations
- Settings - Loading of environment variables used by the Dojo SDK
- Task Loaders - Loading of tasks from local files or remote datasets
Installation
uv add dojo-sdk-core
Key Components
Action Types
Set of computer-use actions:
KEY, CLICK, RIGHT_CLICK, DOUBLE_CLICK, MIDDLE_CLICK, DRAG, MOVE_TO, PRESS, HOTKEY, SCROLL, TYPE, DONE, WAIT
Reward Functions
Reward functions provide custom validation logic for tasks that cannot be completed by simple state comparison. Each reward function follows a standard signature:
def reward_function(initial_state: Dict[str, Any], final_state: Dict[str, Any]) -> Tuple[float, str]:
"""
Args:
initial_state: The state before any actions were executed
final_state: Current state of the environment
Returns:
Tuple of (score, reason) where:
- score: float between 0.0 and 1.0 where environment is considered completed if score is 1.0
- reason: human readable string explaining the validation result
"""
Available reward functions:
_validate_get_2048: Checks if a 2048 tile is present on the game board_validate_search_for_dzaka: Validates successful search for a specific user in LinkedIn_validate_drag_to_different_column: Validates issue movement to a different column in Linear_validate_drag_two_issues_same_user: Validates multiple issues moved within same user's board
Documentation
Visit docs.trydojo.ai for complete documentation.
Metadata
Release files for dojo-sdk-core 0.1.27
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dojo_sdk_core-0.1.27.tar.gz | 1.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dojo_sdk_core-0.1.27-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.4 MB
Release files / dojo_sdk_core-0.1.27.tar.gz
| Download URL | dojo_sdk_core-0.1.27.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6aa1d13e526fc9b47f76d5b924c5bd87ecbedabd2065c99e75a4bb5bc2e4fdd
|
|
BLAKE2b-256 checksum How to use checksums |
f5f266be0bd3fb8d69aebef040d2d6e06a3ed24fac8f8d33b7fa402100e0811f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.15
|
Release files / dojo_sdk_core-0.1.27-py3-none-any.whl
| Download URL | dojo_sdk_core-0.1.27-py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33bcbbda3d5c4144d151951df1c613db370c5bb2188ba8c76f007d10f9cf10b0
|
|
BLAKE2b-256 checksum How to use checksums |
4fd6e0337ecf7ea11969a24d4689b256fba75391bb939e2e33a7cb4e932a8032
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.15
|