Skip to main content

Client sdk to intearct with Dojo

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Dojo SDK Client

Python client SDK for interacting with the Dojo API

Installation

uv add dojo-sdk-client

if you want to use our example agents:

uv add "dojo-sdk-client[agents]"

if you want to use our multi-turn environment with verifiers

uv add "dojo-sdk-client[multi_turn_env]"

Quick Start

Basic Task Execution

from dojo_sdk_client import BaseDojoClient
from dojo_sdk_client.types import TaskStatus

client = BaseDojoClient(api_key="your-api-key")

# Create and start task
exec_id = await client.create_task(
    task_id="tic-tac-toe",
    state={"board": [[0]*3 for _ in range(3)]}
)
await client.start_task(exec_id)

status = await client.get_task_status(exec_id)
while status.status == TaskStatus.QUEUED:
    await asyncio.sleep(1)
    status = await client.get_task_status(exec_id)

# Submit action
action = {"type": "click", "x": 100, "y": 100}
await client.submit_action(exec_id, action, "Making move")

Agent Evaluation

from dojo_sdk_client import DojoEvalClient

eval_client = DojoEvalClient(agent=your_agent, api_key="your-api-key")

results = await eval_client.evaluate(
    tasks=["tic-tac-toe", "2048"],
    num_runners=2
)

Clients

BaseDojoClient - Low-level HTTP client for direct API interactions

DojoEvalClient - High-level client for running automated evaluations

MultiTurnEnv - Multi-turn environment for running evaluations with Verifiers

Documentation

Visit docs.trydojo.ai for complete documentation.

Project details


Download files

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

Source Distribution

dojo_sdk_client-0.1.8.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

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

dojo_sdk_client-0.1.8-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

File details

Details for the file dojo_sdk_client-0.1.8.tar.gz.

File metadata

  • Download URL: dojo_sdk_client-0.1.8.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for dojo_sdk_client-0.1.8.tar.gz
Algorithm Hash digest
SHA256 cabeaed293071af8e201fff97ca8f5847e15f93cc32620eda87ee8987a8c1c82
MD5 dbadf6ec9a1cf2e2cd9a354032ba9ffb
BLAKE2b-256 e3a580dae048af05e4e25efc26969e950d71aeddc87ca28a151c66efd3b25d01

See more details on using hashes here.

File details

Details for the file dojo_sdk_client-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for dojo_sdk_client-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dab4d628cb7fb60270fe404bf21b609e4b49f6946fe1e3878e49bf85cfedb8d6
MD5 f63440cb5f615db685b6f8b273e58f77
BLAKE2b-256 c77813882a7c713e9f5f1e5a87ec32755c164ed6578e6923fe287a9982266f62

See more details on using hashes here.

Supported by

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