Skip to main content

Python SDK for the Chester AI agent platform

Project description

chester-ai

Python SDK for the Chester AI agent platform. Full typed access to all 27 gRPC services.

Install

pip install chester-ai
# or
uv add chester-ai

Quick Start

from chester_ai import ChesterClient, proto

chester = ChesterClient(url="localhost:8990", api_key="cht_your_api_key_here")

# List all agents
response = chester.agents.ListAgents(proto.ListAgentsRequest())
for agent in response.agents:
    print(agent.name)

# Send a task to an agent
response = chester.queue.SendTask(proto.SendTaskRequest(
    agent="mybot",
    prompt="Summarize today's news",
))
print("Task queued:", response.task_id)

# Stream chat responses
for chunk in chester.agents.ChatWeb(proto.ChatStreamRequest(
    agent="mybot",
    user_message="Hello!",
)):
    print(chunk.content, end="")

# Subscribe to real-time events
for event in chester.events.SubscribeAll(proto.SubscribeAllRequest()):
    print(event.domain, event.event_type)

Async Usage

import asyncio
from chester_ai import AsyncChesterClient, proto

async def main():
    async with AsyncChesterClient(url="localhost:8990", api_key="cht_abc123") as chester:
        response = await chester.agents.ListAgents(proto.ListAgentsRequest())
        for agent in response.agents:
            print(agent.name)

asyncio.run(main())

Authentication

Chester uses Bearer tokens. Create one via the CLI:

chester auth create-token --name "my-app" --role operator

Services

All 27 Chester services are available as typed properties:

chester.agents, chester.queue, chester.decisions, chester.cron, chester.plans, chester.teams, chester.skills, chester.mcp, chester.daemon, chester.events, chester.context, chester.tools, chester.db, chester.temporal, chester.auth, chester.users, chester.goals, chester.capabilities, chester.templates, chester.organizations, chester.workflow_templates, chester.guardrails, chester.kanban, chester.observe, chester.datasets, chester.twins, chester.integrations

Requirements

  • Python 3.10+
  • Chester daemon running (default port 8990)

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

chester_ai-0.1.2.tar.gz (115.8 kB view details)

Uploaded Source

Built Distribution

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

chester_ai-0.1.2-py3-none-any.whl (99.8 kB view details)

Uploaded Python 3

File details

Details for the file chester_ai-0.1.2.tar.gz.

File metadata

  • Download URL: chester_ai-0.1.2.tar.gz
  • Upload date:
  • Size: 115.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for chester_ai-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a1ac664c73873c051c082048f888bde01c9f64f2b8effa0721ca3f83a685020d
MD5 ff7adb5c2b6b5b14a5906e32c3c66e92
BLAKE2b-256 decbfcefd235c05afb0e5116a57da5783a46e284136021d898a5827c15315127

See more details on using hashes here.

File details

Details for the file chester_ai-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: chester_ai-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 99.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for chester_ai-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b55431037575ca00a85f10dae76abda5192b4ca80fd7757c330357bc72e7f1e
MD5 bcb5b72ac4a96a1e45f9272edb44f93e
BLAKE2b-256 3266accd4a2dfcfaed9393a516eff530d3090e28652681dba6d1b28b37031178

See more details on using hashes here.

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