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",
    message="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=proto.ChatUserMessage(content="Hello!"),
)):
    if chunk.text_delta.text:
        print(chunk.text_delta.text, 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.3.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.3-py3-none-any.whl (99.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chester_ai-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 734eb4193abf66f49ccddbfc520a2a73d3096a64d0e5b417ee3326eb0c9b9a7c
MD5 fb921534be5a14c6ed735aedc6132683
BLAKE2b-256 615b543ee7c85576c069fabbf0dd9314f2a4c5fc2001445e5edb6822308532fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chester_ai-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 667fa10654f3cc551e5e2e2573524d05dafe586ad028ef2f6b52ac4412390d67
MD5 3b39b72b8b84221dd70dfe944c71170a
BLAKE2b-256 53d178bb7ce91985ba12a64b9386ab1f6a9bca7ee9e0980217e3c7d0c5404e44

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