Cambrian Agent SDK — build Cambrian agents in Python with zero boilerplate
Project description
Cambrian Agent SDK
Build Cambrian agents in Python with zero boilerplate.
An agent is a small Python class. The SDK gives it a ReAct loop, tool calling, working memory,
and a gRPC server that speaks the Cambrian agent-plane contract — you write run() (or just
declare @tool methods) and the kernel does the orchestration.
pip install cambrian-agent-sdk # or: uv pip install cambrian-agent-sdk
Quickstart
from cambrian_agent_sdk import CognitiveAgent
class AnalystAgent(CognitiveAgent):
role = "You are a rigorous analytical reasoning engine."
constraints = ("Ground every claim; say so when the context is insufficient.",)
agent = AnalystAgent(agent_id="analyst_agent", description="Analyses and compares information.")
if __name__ == "__main__":
agent.serve() # boots the gRPC agent server; the kernel connects and dispatches tasks
The kernel spawns your agent, hands it tasks over the agent plane, and your run()/think()
loop can call memory (memory_query), tools (tool_call — kernel-owned or your own
@tool methods), and delegate (yield_subgoal) to the planner.
Agent shapes
CognitiveAgent— LLM reasoning:run()→think()ReAct loop, memory, and@toolactions.DeterministicAgent— a scripted cell: typedrun()only, no reasoning (a fast tool).DaemonAgent— a persistent background producer on theSignalStreamcontract.
Declare tools with the @tool decorator (auto-injected into the agent's action menu) and
capabilities with @capability. See example-agents/ in the repo.
Versioning
The SDK's minor version tracks the agent-plane proto contract it targets. Pin it like any
dependency; the vendored gRPC/protobuf gencode is shipped inside the wheel, so you don't run
protoc yourself. The runtime requires protobuf>=6.31,<7.
License
Apache-2.0. See LICENSE.
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 cambrian_agent_sdk-0.1.0.tar.gz.
File metadata
- Download URL: cambrian_agent_sdk-0.1.0.tar.gz
- Upload date:
- Size: 79.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e80fd46f409a635e3080d23fad1bf68147f05dedf9d44913097b6819db2a32e1
|
|
| MD5 |
34c365a5ee80bc2e532bff809434c47d
|
|
| BLAKE2b-256 |
d754bd4e9110b1421d42f9aa4dd9be605a40ad0ddb20c60850193f40d7ef92d8
|
Provenance
The following attestation bundles were made for cambrian_agent_sdk-0.1.0.tar.gz:
Publisher:
publish.yml on cambrian-sh/agent-sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cambrian_agent_sdk-0.1.0.tar.gz -
Subject digest:
e80fd46f409a635e3080d23fad1bf68147f05dedf9d44913097b6819db2a32e1 - Sigstore transparency entry: 2220321735
- Sigstore integration time:
-
Permalink:
cambrian-sh/agent-sdk-python@a0e7db41c0cd3d5e0501b6c7409d02d8f800608a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/cambrian-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a0e7db41c0cd3d5e0501b6c7409d02d8f800608a -
Trigger Event:
push
-
Statement type:
File details
Details for the file cambrian_agent_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cambrian_agent_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 89.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c4c276414b9876268b446387c02604a72a26d6a8aeda7a135d0c25b050a5d2e
|
|
| MD5 |
92a4b8c6d82dc0cec3243d8eb531bb34
|
|
| BLAKE2b-256 |
034a7e8f9e12ce33568530ecd0d80f517622586933857ab5505f3b523e9e3c3e
|
Provenance
The following attestation bundles were made for cambrian_agent_sdk-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on cambrian-sh/agent-sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cambrian_agent_sdk-0.1.0-py3-none-any.whl -
Subject digest:
4c4c276414b9876268b446387c02604a72a26d6a8aeda7a135d0c25b050a5d2e - Sigstore transparency entry: 2220322463
- Sigstore integration time:
-
Permalink:
cambrian-sh/agent-sdk-python@a0e7db41c0cd3d5e0501b6c7409d02d8f800608a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/cambrian-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a0e7db41c0cd3d5e0501b6c7409d02d8f800608a -
Trigger Event:
push
-
Statement type: