Skip to main content

Production-Grade Agent Framework with Crash Safety Guarantees

Project description

Continuum Python SDK

A production-grade agent framework with crash safety guarantees.

Quick Start (3 steps)

from continuum import Agent

agent = Agent()  # Auto-loads config from environment
result = agent.run("your task")

Installation

pip install continuum

Configuration

Environment Variables

Priority: CONTINUUM_* > CONTINUUM_* > ANTHROPIC_*

export CONTINUUM_API_KEY=your_api_key
export CONTINUUM_PROVIDER=anthropic  # or openai, google
export CONTINUUM_MODEL=claude-sonnet-4-6

Config File

Create ~/.continuum/config.toml:

[providers.anthropic]
api_key = "${ANTHROPIC_API_KEY}"
base_url = "https://api.anthropic.com/v1"
model = "claude-sonnet-4-6"

[providers.openai]
api_key = "${OPENAI_API_KEY}"
base_url = "https://api.openai.com/v1"
model = "gpt-4"

[settings]
session_auto_save = true
checkpoint_enabled = true
audit_enabled = true

Features

  • Agent: One-line agent creation with automatic configuration
  • Session: Conversation history management with checkpoint support
  • Tools: Built-in and custom tool registration
  • Memory: Multi-layer memory system (episodic, semantic, procedural)
  • Config: Multi-provider configuration with environment variable support

API Reference

from continuum import Agent, Session, Config

# Agent
agent = Agent(name="my-agent", model="claude-sonnet-4-6")
agent.run("task description")  # One-shot task execution
agent.chat("message")  # Interactive chat
agent.start()  # Start agent runtime

# Session
session = agent.create_session()
session.add_message("user", "Hello")
session.save()  # Persist to storage
session.load(session_id)  # Resume session

# Config
config = Config.from_env()  # Load from environment
config = Config.from_file("~/.continuum/config.toml")  # Load from file
config.use("openai")  # Switch provider

License

MIT 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

continuum_agent_sdk-1.0.0.tar.gz (72.3 kB view details)

Uploaded Source

Built Distribution

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

continuum_agent_sdk-1.0.0-py3-none-any.whl (71.2 kB view details)

Uploaded Python 3

File details

Details for the file continuum_agent_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: continuum_agent_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 72.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for continuum_agent_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 580967b58067bc4cfbd67ebb519df2c191eb62645427dc044b3cfea49efce91f
MD5 fa0c5da72a111dc4b9decc6b1ec71dbd
BLAKE2b-256 5dc194d53450cc181f8294d97854e062f8aed23cc9cc63db79f0c4edfbe5fbb5

See more details on using hashes here.

File details

Details for the file continuum_agent_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for continuum_agent_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5233482d2630811e13bf06e7e27c595e62e7bd7aec4f4c0cdf0c077e5cd2aa40
MD5 67fe44401870cfe4a7cc9ef569064a7a
BLAKE2b-256 f8bb2bba99f1a8d6e27af1a63497ab4c190608572570fee0ecdde6a35574f2b2

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