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.0.tar.gz (115.6 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.0-py3-none-any.whl (99.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chester_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f2b6d73453f63612642dd19a69d24601ced2069083f8b05b12b81557a82d4d93
MD5 c9806e5b60dee2d27bf5343f7ba3c13c
BLAKE2b-256 04ad936c9e5cb265c4565c0e020186af9c7612c41ae9427ab2a264d87570d0e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chester_ai-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95126d48fec32b67ec33bc685f568d28b8c8f4d39dd2fb93c4c5f91c89d340de
MD5 44a38c26afa5bd9228ab71218f94076d
BLAKE2b-256 8717c9745692ceb224cae86e612425d51e46293da45fafdbb8ddac6cc56d6dc9

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