Install the SDK Client
Configure Environment
Set environment variables for the client:Verify Client Access
Available Services
Below is a practical overview of the client’s main services and when to use them.Health
- Purpose: Confirm the Control Plane is reachable and ready.
- Common calls:
client.health.check(),client.health.ready() - When to use: Before running automation or on app startup to verify connectivity.
Models
- Purpose: Discover available LLM models and defaults for agent runs.
- Common calls:
client.models.list() - When to use: Selecting a model during agent creation or validating model support.
Agents
- Purpose: Create, read, update, execute, and delete organization agents.
- Common calls:
list(),get(id),create(data),update(id, data),execute(id, data),delete(id) - When to use: Any agent lifecycle operations (e.g., DevOps persona agent that deploys services).
- Example:
- Create minimal agent:
{ name, llm_model, model_id, instruction_type, ai_instructions } - Execute: provide
integration_id,worker_queue_id, and an executionprompt.
- Create minimal agent:
Integrations
- Purpose: Connect to external systems like GitHub, Jira, or cloud providers using central credentials.
- Common calls:
list(connected_only),get(id),get_integration_credentials(vendor, id) - When to use: Agents or apps need to call external APIs without embedding secrets in code.
Secrets
- Purpose: Access organization-managed credentials safely at runtime.
- Common calls:
list()(metadata only),get_value(name) - When to use: Fetch secrets on demand (e.g., database passwords, API keys) without logging or storing in source.
Graph
- Purpose: Explore the Context Graph (entities, relationships) for context-aware automation.
- Common calls:
list_labels(),list_nodes(...),get_node(id) - When to use: Resolving dependencies (e.g., which service depends on which DB) or enriching agent decisions.