Generated Trajectory API client and high-level workflows
Actively maintained. Last release 4 days ago, commits in 4 of the last 26 weeks. A safe choice.
pip install trajectory-sdkTrajectory SDK
Generated Python client for the Trajectory API, with high-level workflows for uploading trajectories, telemetry, and runtime-backed specs.
Install
pip install trajectory-sdk
Install both coding-agent skills:
npx skills add https://docs.trajectory.ai --skill trajectory --skill agent-feedback
trajectory guides SDK work; agent-feedback handles authorized product feedback.
See coding-agent setup for updates and SDK-bundled copies.
Start here
The Trajectory docs cover the SDK. Start with the quickstart, then bring a spec, evaluate, train, and deploy. The SDK also installs these guides next to the skill. The cookbook has worked integrations for different harnesses and graders.
Quick start
Set TRAJECTORY_API_KEY, then create a client:
from trajectory import Client
client = Client()
specs = client.specs.list(limit=10)
For task execution, follow the native spec harness and registration and image builds examples below.
SDK-owned API clients use a 600-second read/write/pool timeout and a 5-second connection timeout.
Supplying http_client= inherits that client's timeouts, including a bare HTTPX client's 5-second
default. An explicit Client(timeout=...) overrides the supplied client; a resource method's
timeout= overrides that request. timeout=None disables timeouts. Retry counts are unchanged.
Blob store uploads through signed URLs default to a one-hour timeout (3,600 seconds), configured
separately from API requests. Set upload_timeout=... on push(), start_push(), or
, or on . Pass to disable blob store
timeouts. These apply to individual HTTP operations against the blob store, not the total upload
duration or signed-URL expiry.
and retry each upload request up to times (default
, within 4.5 minutes of waiting), separately from the client's .