Skip to main content
This page is the complete reference for every client method in the Python SDK. The Hexel client exposes sub-clients for each product area. This page lists every namespace and method.

Client

Compute

There is no instance.deploy() method in the SDK. Deploy instances via the REST API (POST /compute/v1/agents/{agent_id}/instances) or the hexel CLI (hexel compute instance deploy <agent-id>).

Orchestration

Tools (Tool Gateway)

The top-level client.tools namespace provides full Tool Gateway access.

Agent runtime

client.runtime provides helpers for building agent applications that run on Hexel Compute.

LLM instrumentation

Auto-instrument OpenAI and Anthropic calls for telemetry:

Streaming

The SDK streams in two places:
  • Task events — iterate client.orchestrator.task.stream(task_id) to receive SSE events (task.state, runtime.delta, task.complete, …) as a task runs.
  • Sandbox executionclient.compute.sandbox.execute(...) runs code or commands and returns the collected { "output", "status" }.

Testing

For automated tests, exercise the SDK against real sandboxes (allocate, execute, release) or stub the HTTP layer in your own test suite. Use a separate API key scoped to a non-production environment so tests never touch production resources.

Next steps

Error Handling

Retries, timeouts, and errors.

Examples

End-to-end examples.