Skip to main content

Autonomous agents, engineered. A Python SDK for building production-grade AI agents and multi-agent systems.

Project description

Synth

Autonomous agents, engineered.

A Python SDK for building production-grade AI agents and multi-agent systems. From a 3-line single agent to complex, stateful, resumable multi-agent graphs — with model-agnostic provider support, streaming, observability, evaluation, and guardrails out of the box.

Quick Start

pip install synth-agent-sdk
from synth import Agent

agent = Agent(model="claude-sonnet-4-5", instructions="You are a helpful assistant.")
result = agent.run("What is the capital of France?")
print(result.text)

Features

  • Minimal core — 3 lines to a working agent
  • Tools@tool decorator auto-generates JSON schemas from type hints
  • Streaming — typed event stream (TokenEvent, ToolCallEvent, DoneEvent, …)
  • Multi-provider — Claude, GPT, Gemini, Ollama, AWS Bedrock via a single model string
  • Memory — thread-scoped, persistent (Redis), or semantic (vector) conversation history
  • Guards — declarative PII filtering, cost limits, tool-call blocking, custom checks
  • Structured output — Pydantic model validation with automatic retry
  • Pipeline — chain agents sequentially with optional parallel stages
  • Graph — directed-graph workflows with conditional edges, loops, and concurrency
  • Agent Teams — orchestrator-coordinated multi-agent collaboration
  • Tracing — automatic OpenTelemetry-compatible traces on every run
  • Checkpointing — resumable runs with local or Redis-backed state persistence
  • Evaluation — built-in eval framework with exact-match and semantic scoring
  • CLIsynth dev, synth run, synth eval, synth trace, synth doctor
  • AWS AgentCore — deploy to AgentCore with synth deploy --target agentcore

Installation

Most users start here:

pip install synth-agent-sdk[anthropic]     # Anthropic Claude (recommended)

Other options:

pip install synth-agent-sdk[quickstart]    # Claude + GPT (tutorials/demos)
pip install synth-agent-sdk[openai]        # OpenAI GPT only
pip install synth-agent-sdk[google]        # Google Gemini only
pip install synth-agent-sdk[bedrock]       # AWS Bedrock only
pip install synth-agent-sdk[all]           # All providers

Requires Python 3.10+.

If you see a provider error, install the matching extra:

# Error: "Provider package 'anthropic' is not installed"
pip install synth-agent-sdk[anthropic]

CLI

After installing, run synth to see the boot sequence:

synth

Available commands:

synth create agent my-app              # Scaffold agent with tools
synth create multi-agent my-team       # Scaffold team + pipeline
synth create agentcore my-service      # Scaffold AgentCore project
synth dev my_agent.py                  # Local REPL with hot-reload + trace UI
synth run my_agent.py "prompt"         # Execute agent, print result
synth eval my_agent.py --dataset d     # Run evaluation suite
synth trace <run_id>                   # Open trace in browser
synth deploy --target agentcore        # Deploy to AWS AgentCore
synth doctor                           # Check env, credentials, deps

Documentation

See the User Guide for a full walkthrough.

License

MIT

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

synth_agent_sdk-0.5.6.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

synth_agent_sdk-0.5.6-py3-none-any.whl (132.9 kB view details)

Uploaded Python 3

File details

Details for the file synth_agent_sdk-0.5.6.tar.gz.

File metadata

  • Download URL: synth_agent_sdk-0.5.6.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for synth_agent_sdk-0.5.6.tar.gz
Algorithm Hash digest
SHA256 8ca3cd4279948e576b5f9462d5b619a6ef419387ec01469c41665db4c5a6035d
MD5 12fb27d3b25d3cc6e3bec9e9f8296085
BLAKE2b-256 ee2cbaca93c473c7cc3275bf6fe9230d6b99ce5ae098a067309ba9fcb05ec43e

See more details on using hashes here.

File details

Details for the file synth_agent_sdk-0.5.6-py3-none-any.whl.

File metadata

  • Download URL: synth_agent_sdk-0.5.6-py3-none-any.whl
  • Upload date:
  • Size: 132.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for synth_agent_sdk-0.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 562bb5da0ed9b08b8445813a6e67f5cf44f41493e28f3a1fc5b76da1119cba7b
MD5 552cdbf097f2eb0490aceb82cdc415ea
BLAKE2b-256 a42b7f27830704605a512145b3d79e34b7a0477a5e574034ce0244f506fa698d

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