Skip to main content

Composable libraries for AI agent fleets — model calls, memory, workspace, workflow, team, and agent composition in one package.

Project description

coactra

Component-based orchestration library for agentic systems. Coactra is Team-first: Team owns agent registration, policy, workflow routing, and model resolution, while Agent remains a thin runtime shell over pydantic-ai.

pip install "coactra[agent]"

Common extras:

pip install "coactra[agent-gateway,oauth]"  # MCP gateway and OAuth
pip install "coactra[graphiti]"
pip install "coactra[mem0]"
pip install "coactra[langgraph]"
pip install "coactra[sql]"

Small Surface

from coactra import Team, Scope, Policy, Skill, Workflow

Submodule helpers when wiring adapters:

from coactra.agent import MCPServer
from coactra.workflow import step

Use the root surface for application code. Use lower-level modules only for adapters and host runtime wiring:

  • coactra.agent for event/runtime types and outbound A2A transport (coactra.agent.adapters)
  • coactra.workflow and coactra.workflow.ledger for workflow engines and durable work storage
  • coactra.team.directory for org/member/seat persistence
  • coactra.memory and coactra.workspace for backend integration

Bring Existing Pieces

import asyncio
import os

from coactra import ModelProfile, ModelResolver, ModelRoute, Policy, Scope, Team
from coactra.agent import MCPServer


async def main() -> None:
    team = Team(
        scope=Scope.local(),
        policy=Policy.permissive(),
        model_resolver=ModelResolver([
            ModelRoute(
                capability="existing-stack",
                profile=ModelProfile(
                    name="existing-stack",
                    model="openai/qwen3.6-plus",
                    api_base="https://opencode.ai/zen/go/v1",
                    api_key=os.environ["OC_KEY"],
                ),
            )
        ]),
    )
    agent = await team.add_agent(
        name="existing-stack-agent",
        model_capability="existing-stack",
        tools=[MCPServer(url="https://tools.example/mcp", name="tools")],
        memory="inprocess",
        workspace="./desk",
    )
    try:
        print(await agent.run("Use my existing stack"))
    finally:
        await agent.aclose()


asyncio.run(main())

See examples/acceptance/ for the checked examples that define the alpha acceptance path.

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

coactra-0.3.0.tar.gz (236.1 kB view details)

Uploaded Source

Built Distribution

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

coactra-0.3.0-py3-none-any.whl (227.4 kB view details)

Uploaded Python 3

File details

Details for the file coactra-0.3.0.tar.gz.

File metadata

  • Download URL: coactra-0.3.0.tar.gz
  • Upload date:
  • Size: 236.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for coactra-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5b15410c79638e931753098e8ed3cc7fe020707efac448f4df6621851d9bbe2b
MD5 7a520d6b7238ab03c80d51d4e5e5c61f
BLAKE2b-256 b9417048d03ad98d2e2ccf9fe50163a303b217e22173c4e6c5dda9cf5cf4fcea

See more details on using hashes here.

Provenance

The following attestation bundles were made for coactra-0.3.0.tar.gz:

Publisher: release.yml on DataOpsFusion/coactra

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coactra-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: coactra-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 227.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for coactra-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5706fb7f59627503864fa50d890c4c841da03eecafe43f5fe52da36eef174cd4
MD5 d6b103005db9421a6dfed45e2d275e59
BLAKE2b-256 e1b8da3b81b3134e53080fc5ac836cdbd6a7bdd676d982edcc0e923e40106804

See more details on using hashes here.

Provenance

The following attestation bundles were made for coactra-0.3.0-py3-none-any.whl:

Publisher: release.yml on DataOpsFusion/coactra

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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