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.agentfor event/runtime types and outbound A2A transport (coactra.agent.adapters)coactra.workflowandcoactra.workflow.ledgerfor workflow engines and durable work storagecoactra.team.directoryfor org/member/seat persistencecoactra.memoryandcoactra.workspacefor 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81988021e2d41c13c35fdebfa2ca53072c11b4c7efd8f55e4e74d6730ee018ef
|
|
| MD5 |
526dfb882a5d0c96a0986e297ed251b6
|
|
| BLAKE2b-256 |
b36f7269068c58bd4a8f00e420a2a77720cf2dbad295f9050a5d72d6719a313b
|
Provenance
The following attestation bundles were made for coactra-0.2.1.tar.gz:
Publisher:
release.yml on DataOpsFusion/coactra
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coactra-0.2.1.tar.gz -
Subject digest:
81988021e2d41c13c35fdebfa2ca53072c11b4c7efd8f55e4e74d6730ee018ef - Sigstore transparency entry: 1758392118
- Sigstore integration time:
-
Permalink:
DataOpsFusion/coactra@7de074b613be60b9fa3134a0b4ed20b352e8fd37 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/DataOpsFusion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7de074b613be60b9fa3134a0b4ed20b352e8fd37 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3328e5541c72a96312594cbfa9e708d60ad663673697a3365d3d04f1bebe871
|
|
| MD5 |
8a01574bd2914e75ff04ed5c8dfa2bbd
|
|
| BLAKE2b-256 |
0e27e7ccdb3e7ec0549e158ee97684ef52f2383d5fba4d5011fc32b0e1b0f5c2
|
Provenance
The following attestation bundles were made for coactra-0.2.1-py3-none-any.whl:
Publisher:
release.yml on DataOpsFusion/coactra
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coactra-0.2.1-py3-none-any.whl -
Subject digest:
f3328e5541c72a96312594cbfa9e708d60ad663673697a3365d3d04f1bebe871 - Sigstore transparency entry: 1758392196
- Sigstore integration time:
-
Permalink:
DataOpsFusion/coactra@7de074b613be60b9fa3134a0b4ed20b352e8fd37 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/DataOpsFusion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7de074b613be60b9fa3134a0b4ed20b352e8fd37 -
Trigger Event:
push
-
Statement type: