Official Python SDK for the Dobby AI Platform — Home for your AI agents
Project description
Dobby SDK for Python
Official Python SDK for the Dobby AI Platform — Home for your AI agents.
Installation
pip install dobby-ai-sdk
Quick Start
from dobby_sdk import DobbyClient
client = DobbyClient(api_key="gk_user_...")
# LLM calls (OpenAI-compatible)
response = client.chat.completions.create(
model="claude-sonnet-4-20250514",
messages=[{"role": "user", "content": "Hello from Dobby!"}],
)
print(response.choices[0].message.content)
# Streaming
stream = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Explain AI agents"}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")
Task Management
# Create a task
task = client.tasks.create(
title="Review PR #42",
priority="high",
agent_name="dobby-code-reviewer-agent",
)
# List pending tasks
tasks = client.tasks.list(status="pending")
# Approve a task (HITL)
client.approvals.approve(task["id"], comment="Looks good!")
Agent Fleet
# List all agents
agents = client.agents.list()
# Register an external agent
agent = client.agents.register(
display_name="Research Agent",
framework="crewai",
protocol="a2a",
endpoint_url="https://my-agent.example.com",
)
# Pause/resume
client.agents.pause("agent_abc123")
Cost Tracking
# Organization cost summary
costs = client.costs.summary(period="30d")
# Per-agent breakdown
agent_costs = client.costs.by_agent(period="7d")
Async Support
from dobby_sdk import AsyncDobbyClient
async with AsyncDobbyClient(api_key="gk_user_...") as client:
response = await client.chat.completions.create(
model="claude-sonnet-4-20250514",
messages=[{"role": "user", "content": "Hello async!"}],
)
Configuration
client = DobbyClient(
api_key="gk_user_...", # or DOBBY_API_KEY env var
base_url="https://dobby-ai.com", # or DOBBY_BASE_URL
org_id="org_...", # or DOBBY_ORG_ID
tenant_id="tenant_...", # or DOBBY_TENANT_ID
timeout=120.0,
max_retries=2,
)
Error Handling
from dobby_sdk import DobbyAuthError, DobbyRateLimitError, DobbyBudgetExceededError
try:
response = client.chat.completions.create(...)
except DobbyAuthError:
print("Invalid or expired API key")
except DobbyRateLimitError as e:
print(f"Rate limited. Retry after: {e.retry_after}s")
except DobbyBudgetExceededError:
print("Organization budget limit reached")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dobby_ai_sdk-0.1.0.tar.gz.
File metadata
- Download URL: dobby_ai_sdk-0.1.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0dea39d3dbaeb80cfbd2e45926933ccf5e1adaada1484e819926bc52499c4cf
|
|
| MD5 |
f0042bc0bb2125c6c526e40e338fb156
|
|
| BLAKE2b-256 |
6bdae1bff741b9fa90faf904935a1e45665af2f3a6f9f8ac0b52c3af827ad5eb
|
Provenance
The following attestation bundles were made for dobby_ai_sdk-0.1.0.tar.gz:
Publisher:
sdk-publish.yml on gil-dobby/repo-dobby
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dobby_ai_sdk-0.1.0.tar.gz -
Subject digest:
c0dea39d3dbaeb80cfbd2e45926933ccf5e1adaada1484e819926bc52499c4cf - Sigstore transparency entry: 1209123777
- Sigstore integration time:
-
Permalink:
gil-dobby/repo-dobby@1f772dc9b155bd8aa9ecdf308eb726a17353852e -
Branch / Tag:
refs/tags/sdk-python-v0.1.0 - Owner: https://github.com/gil-dobby
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish.yml@1f772dc9b155bd8aa9ecdf308eb726a17353852e -
Trigger Event:
push
-
Statement type:
File details
Details for the file dobby_ai_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dobby_ai_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b8b4c7d3627561e14fc0f78751523ff1d912481d0c2f34a736232b722b7d473
|
|
| MD5 |
dd8caf43c6e021aafcaa029fde440405
|
|
| BLAKE2b-256 |
6766d05cfa9b04103a1efd95243a62961b6118c34361076775fd6faf00c11e82
|
Provenance
The following attestation bundles were made for dobby_ai_sdk-0.1.0-py3-none-any.whl:
Publisher:
sdk-publish.yml on gil-dobby/repo-dobby
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dobby_ai_sdk-0.1.0-py3-none-any.whl -
Subject digest:
1b8b4c7d3627561e14fc0f78751523ff1d912481d0c2f34a736232b722b7d473 - Sigstore transparency entry: 1209123880
- Sigstore integration time:
-
Permalink:
gil-dobby/repo-dobby@1f772dc9b155bd8aa9ecdf308eb726a17353852e -
Branch / Tag:
refs/tags/sdk-python-v0.1.0 - Owner: https://github.com/gil-dobby
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish.yml@1f772dc9b155bd8aa9ecdf308eb726a17353852e -
Trigger Event:
push
-
Statement type: