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

Composition and persistence library for multi-agent workflows. Agent is a thin shell over pydantic-ai; Team, Workflow, and WorkManager are the core. Bring your own pydantic-ai Model, OAuth token source, and inbound A2A server (via a2a-sdk).

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 Agent, Scope, Skill, Team, Workflow

Submodule helpers when wiring adapters:

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

Use this 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
from pydantic_ai.messages import ModelResponse, TextPart
from pydantic_ai.models.function import FunctionModel
from coactra import Agent
from coactra.agent import MCPServer


def existing_model(messages, info):
    return ModelResponse(parts=[TextPart("existing model handled it")])


async def main() -> None:
    agent = await Agent.create(
        model=FunctionModel(existing_model),
        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.2.1.tar.gz (241.5 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.2.1-py3-none-any.whl (228.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for coactra-0.2.1.tar.gz
Algorithm Hash digest
SHA256 81988021e2d41c13c35fdebfa2ca53072c11b4c7efd8f55e4e74d6730ee018ef
MD5 526dfb882a5d0c96a0986e297ed251b6
BLAKE2b-256 b36f7269068c58bd4a8f00e420a2a77720cf2dbad295f9050a5d72d6719a313b

See more details on using hashes here.

Provenance

The following attestation bundles were made for coactra-0.2.1.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.2.1-py3-none-any.whl.

File metadata

  • Download URL: coactra-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 228.0 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3328e5541c72a96312594cbfa9e708d60ad663673697a3365d3d04f1bebe871
MD5 8a01574bd2914e75ff04ed5c8dfa2bbd
BLAKE2b-256 0e27e7ccdb3e7ec0549e158ee97684ef52f2383d5fba4d5011fc32b0e1b0f5c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for coactra-0.2.1-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