Skip to main content

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 @tool actions.
  • DeterministicAgent — a scripted cell: typed run() only, no reasoning (a fast tool).
  • DaemonAgent — a persistent background producer on the SignalStream contract.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cambrian_agent_sdk-0.1.0.tar.gz (79.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cambrian_agent_sdk-0.1.0-py3-none-any.whl (89.8 kB view details)

Uploaded Python 3

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

Hashes for cambrian_agent_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e80fd46f409a635e3080d23fad1bf68147f05dedf9d44913097b6819db2a32e1
MD5 34c365a5ee80bc2e532bff809434c47d
BLAKE2b-256 d754bd4e9110b1421d42f9aa4dd9be605a40ad0ddb20c60850193f40d7ef92d8

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cambrian_agent_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cambrian_agent_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c4c276414b9876268b446387c02604a72a26d6a8aeda7a135d0c25b050a5d2e
MD5 92a4b8c6d82dc0cec3243d8eb531bb34
BLAKE2b-256 034a7e8f9e12ce33568530ecd0d80f517622586933857ab5505f3b523e9e3c3e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page