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.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
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
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.2.tar.gz.
File metadata
- Download URL: coactra-0.2.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfd3491d8a013896b395b862d3422d47058e18d4e36b5f4aeea73463e77220ad
|
|
| MD5 |
7fe3f8283a9800819942e2321e3269e0
|
|
| BLAKE2b-256 |
f9368e708c39a207dd83fc51a93f42a689b66e0c8738bba0ca104e9ece8a68ea
|
Provenance
The following attestation bundles were made for coactra-0.2.2.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.2.tar.gz -
Subject digest:
cfd3491d8a013896b395b862d3422d47058e18d4e36b5f4aeea73463e77220ad - Sigstore transparency entry: 1771884710
- Sigstore integration time:
-
Permalink:
DataOpsFusion/coactra@14641b0a8acbdc35746fdbd1d24944dfbe8986c8 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/DataOpsFusion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@14641b0a8acbdc35746fdbd1d24944dfbe8986c8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file coactra-0.2.2-py3-none-any.whl.
File metadata
- Download URL: coactra-0.2.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce12fc599ca840e609c776acb47c77f7d44020fb92e22dd4a7207507c4ee54b8
|
|
| MD5 |
e5509174f579025cda78e29cc591a59e
|
|
| BLAKE2b-256 |
954708472df61b62f5f34ebccd0019c516bccbd2b030d9851c7de721453f7083
|
Provenance
The following attestation bundles were made for coactra-0.2.2-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.2-py3-none-any.whl -
Subject digest:
ce12fc599ca840e609c776acb47c77f7d44020fb92e22dd4a7207507c4ee54b8 - Sigstore transparency entry: 1771884851
- Sigstore integration time:
-
Permalink:
DataOpsFusion/coactra@14641b0a8acbdc35746fdbd1d24944dfbe8986c8 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/DataOpsFusion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@14641b0a8acbdc35746fdbd1d24944dfbe8986c8 -
Trigger Event:
push
-
Statement type: