What is Coevolved?
Coevolved is a lightweight Python framework for building multi-step, multi-agent runtimes with:- A single core primitive:
Step(an atomic unit of computation) - Composable execution: sequence, parallel, fallback, retry
- First-class observability: structured trace events with pluggable sinks
- Production controls: budgets/timeouts, checkpointing, interrupts (HITL)
- Agent patterns: reusable loop infrastructure + a prebuilt ReAct agent
How Coevolved is structured
The Python package is split into three layers:coevolved.base: foundational runtime primitives (Step, tracing, composition, checkpointing, interrupts, policies)coevolved.core: LLM + tool integration (llm_step,tool_step, prompt utilities, provider interfaces)coevolved.prebuilt: ready-to-use agent patterns (loop + ReAct) built from base/core primitives
Key concepts
Steps
Everything is aStep: pure functions, tools, LLM calls, and even agents (as loops) are represented as steps.
State + schemas
Steps operate on a shared “state” (often adict). You can optionally validate inputs/outputs with Pydantic models.
Composition
Build workflows by composing steps (e.g. sequential pipelines, retries, or fallback chains) instead of writing a bespoke runtime each time.Tracing
Each step execution emits lifecycle events (start, end, error) and can capture snapshots (typically on error) for debugging.