To send prompts to agents in sandboxes from your application, use
Evolve, Swarm, or Pipeline in the agent SDK guide.Read your jobs
Complete the install and API-key setup in the Python guide or TypeScript guide, then run the matching example. It prints one page of your jobs; an empty list means none are visible to this request.await or async for belong inside an async function, as in main() above. TypeScript examples use await in an ES module.
Choose a client
Jobs
Start, follow, compare, retry, and download evaluations.
Trials
Inspect one attempt: reward, trace, and stored files.
Datasets
Browse tasks, publish versions, and inspect builds.
Filesystems
Read live sandbox files and saved captures.
Analyses
Read the analyzer’s results and saved runs.
Checks
Check task quality before running a benchmark.
Look up a method
Use the client guides above for a workflow. Open a method reference for its inputs, returned fields, and Python and TypeScript examples.
For failures, start with error handling or find the exact name in the error-code reference.
Configure once
To set an explicit key or default team, replace thehosted() construction above. Replace my-team with your organization’s slug or ID, or omit org to use your personal organization.
The
org default applies when you create jobs, publish datasets, register agents, or upload skills. A call’s own org wins. It does not filter list requests.
Prefer a single client when useful: jobs(config), trials(config), and the other factories accept the same configuration. Import auth and managedSecrets / managed_secrets separately; they are not properties of hosted().
One page or every item
These snippets use theevolve client above. Put the Python snippet inside the same async with block.
jobs.trials() and jobs.tasks(). A trace page, stored-file page, grep result, or dataset’s nested task page is a single page; follow its cursor yourself or use the dedicated iterator where available.
Language differences
Python client lifetime
Python client lifetime
Hosted clients support Closing a client does not cancel an evaluation. To stop a job, call
async with and await client.close(). Inside an async function:await client.jobs.cancel(job_id) inside the async with block, using the job’s ID.
