Skip to main content

Rust-core, Python-facade framework for enterprise agentic systems.

Project description

tako 蛸

Rust-core, Python-facade framework for enterprise agentic systems.

Many arms, one mind.

CI PyPI License: Apache-2.0

tako is an open-source framework for building production agentic systems. It gives you vendor-neutral provider abstractions, a Rust orchestration core that keeps Python's GIL out of the hot path, MCP tool connectivity, and the governance plumbing (OTel tracing, OPA policy, PII redaction, budgets, circuit breakers) you actually need at scale — all with a Pythonic, dual sync/async API that ships as one pip install.

Inspiration & credit

tako is an open-source generalisation of three patterns Sakana AI published, plus AB-MCTS tree search:

  1. Trinity-style learned routing — a small model selects which provider/role handles each step. Xu et al., "TRINITY: An Evolved LLM Coordinator," arXiv:2512.04695.
  2. Conductor-style natural-language orchestration — a coordinator agent decomposes tasks and dispatches workers. Nielsen et al., "Learning to Orchestrate Agents in Natural Language with the Conductor," arXiv:2512.04388.
  3. Self-recursive test-time scaling — bounded recursion in which an agent reads its own output and decides whether to spin up corrective workflows. See Sakana AI's Fugu Beta blog post.
  4. AB-MCTS — Adaptive Branching Monte Carlo Tree Search. Inoue et al., arXiv:2503.04412; reference implementation by Sakana AI as TreeQuest (Apache-2.0).

tako is an independent open-source project. It is not affiliated with, endorsed by, or sponsored by Sakana AI or any model provider. The cited papers are credited as inspiration for the underlying patterns; the implementation is the work of the tako contributors. The name tako ("octopus") complements Sakana AI's "Fugu" (pufferfish) as a tribute.

Install

pip install tako-ai-core

The Python import name is still tako (import tako); the PyPI distribution is tako-ai-core because the bare tako slot was already taken by an unrelated 2011-era project.

No Rust toolchain required at install time — wheels are prebuilt for manylinux, musllinux, macOS universal2, and Windows x64/arm64.

Quickstart

import asyncio
import tako

client = tako.Client(
    providers=[
        tako.providers.Anthropic(model="claude-opus-4-7"),
        tako.providers.OpenAI(model="gpt-5"),
    ],
    mcp_servers=[
        tako.mcp.Stdio(command=["npx", "-y", "@modelcontextprotocol/server-everything"]),
    ],
    tracing=tako.tracing.Otlp(endpoint="http://otel-collector:4317"),
    budget=tako.Budget(max_usd_per_request=5.0, max_usd_per_day=500.0),
)

orch = tako.orchestrator.SingleAgent(
    provider="anthropic:claude-opus-4-7",
    max_steps=10,
)

async def main():
    result = await orch.run("What's the weather in Tokyo? Use a tool.")
    print(result.text)

asyncio.run(main())

# Synchronous sibling:
result = orch.run_sync("Quick question: ...")

Capabilities (current release)

Area What's available today
Providers OpenAI, Anthropic, Azure OpenAI, AWS Bedrock, Google Vertex (Gemini), Mistral, Ollama, plus an http-generic template adapter and a PythonProvider. All seven SDK-backed providers handle outbound vision content (inline + URL-source); Bedrock + Ollama use opt-in tako-side URL pre-fetch with the full SSRF mitigation stack (private-IP blocklist + DNS-rebind defence + per-host / wildcard / CIDR allowlist).
Orchestrators SingleAgent, Conductor, Trinity (rule-based or ONNX-backed router), SelfCaller (bounded recursion), AbMcts (Adaptive Branching MCTS with verifiers + router-driven branch expansion). All stream natively via OrchEvent.
Streaming Native provider.stream(...) on every SDK-backed provider; per-delta OrchEvent::VerifierScore on Trinity, Conductor, AbMcts (bounded mpsc::channel(64) for backpressure); streaming-aware ConfidenceGuard (RuleBasedGuard + opt-in LlmJudgeGuard per-N-delta).
MCP Stdio, Streamable HTTP (with notifications() SSE + Mcp-Session-Id lifecycle), WebSocket, gRPC (with mTLS).
OpenAI-compat HTTP server (tako-compat) Drop-in /v1/chat/completions with tako.* SSE extensions (tako.verifier_score, tako.recursion, tako.tool_call_*). Pluggable AuthResolver: static, JWT, OIDC, Vault, plus a composite ChainedAuthResolver with opt-in transport / infrastructure-error fail-fast. OIDC introspection ships every RFC 7662 / 8414 / 8705 auth method including mTLS with explicit cert/key rotation.
Governance OPA / Rego policy (Allow / Deny / RedactMessages / ForceModel / RequireApproval), PII / DLP redaction, OTel tracing with tako.* + gen_ai.* semconv, in-memory + Redis budgets, circuit breakers, rate limits.
Sigstore Tool-catalogue keyed + keyless verification with operator-pinned trust roots, Rekor SET + inclusion-proof + checkpoint freshness anchor (in-memory / on-disk JSON / Redis-backed StateStore), cosign protobuf-bundle.
Reliability Cascade fallback, governor rate-limit, failsafe circuit breaker, exponential-jitter retry.
API surface Sync + async dual API; mypy-strict types; full Pydantic v2 facade.

For the chronological ledger of which capability landed in which phase (33 phases × 17 rows), see docs/feature_matrix.md or the Feature matrix page on the docs site.

Project history

The project ships in numbered phases. The rolling per-phase index lives in PLAN.md, individual plan documents under plans/, and the per-version release notes in CHANGELOG.md.

For a high-level summary of what shipped when, the docs site has a Feature matrix page (source).

Community

License

Apache-2.0 — see LICENSE and NOTICE.

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

tako_ai_core-0.51.2.tar.gz (455.0 kB view details)

Uploaded Source

Built Distributions

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

tako_ai_core-0.51.2-cp310-abi3-win_arm64.whl (12.4 MB view details)

Uploaded CPython 3.10+Windows ARM64

tako_ai_core-0.51.2-cp310-abi3-win_amd64.whl (13.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

tako_ai_core-0.51.2-cp310-abi3-musllinux_1_2_x86_64.whl (13.9 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

tako_ai_core-0.51.2-cp310-abi3-musllinux_1_2_aarch64.whl (13.1 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tako_ai_core-0.51.2-cp310-abi3-manylinux_2_28_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

tako_ai_core-0.51.2-cp310-abi3-manylinux_2_28_aarch64.whl (12.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

tako_ai_core-0.51.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (24.8 MB view details)

Uploaded CPython 3.10+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file tako_ai_core-0.51.2.tar.gz.

File metadata

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

File hashes

Hashes for tako_ai_core-0.51.2.tar.gz
Algorithm Hash digest
SHA256 013948c417ba4c8aaa23342360a9750283bee68d207e95ce0199ae44f496e98e
MD5 784404e09a73cfce88ee2f01c9328b5e
BLAKE2b-256 c68cf458e605f89b940f93ffbf5311d0e506003088c1c26c6d93963da7b59f37

See more details on using hashes here.

Provenance

The following attestation bundles were made for tako_ai_core-0.51.2.tar.gz:

Publisher: wheels.yml on nyankobu010/tako-ai-core

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

File details

Details for the file tako_ai_core-0.51.2-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tako_ai_core-0.51.2-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 288c242b412322704e2c3702a4e3014261c9e2e8cf561bd7025b7f016f748747
MD5 f8c076dfb44cb256c1d1bfb29ceb19cd
BLAKE2b-256 f9d894ed75d2996a424dbd3bda4a6c9eb8905f4ebad2f3f786af422bab5e44f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for tako_ai_core-0.51.2-cp310-abi3-win_arm64.whl:

Publisher: wheels.yml on nyankobu010/tako-ai-core

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

File details

Details for the file tako_ai_core-0.51.2-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tako_ai_core-0.51.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 50513686a63a33a20485cdab57f8dff23302da1ad10133c5c8c815a64285f435
MD5 430ded52553121206a92a89e722a4892
BLAKE2b-256 785832edeee71e4e04f6023b8f78dc27957d43e572437d7f8a26f5b465e67abc

See more details on using hashes here.

Provenance

The following attestation bundles were made for tako_ai_core-0.51.2-cp310-abi3-win_amd64.whl:

Publisher: wheels.yml on nyankobu010/tako-ai-core

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

File details

Details for the file tako_ai_core-0.51.2-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tako_ai_core-0.51.2-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 405cf9139cc97c0f07800e780b4b7a9e7c1c008cf10590f9ce6344fdb7c8dab2
MD5 a2d7e65801d2f31083385a5dff13aabc
BLAKE2b-256 94f05af53accd5d8232fe6097fcae66002ca41de0cb841487da3adaa5fbae349

See more details on using hashes here.

Provenance

The following attestation bundles were made for tako_ai_core-0.51.2-cp310-abi3-musllinux_1_2_x86_64.whl:

Publisher: wheels.yml on nyankobu010/tako-ai-core

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

File details

Details for the file tako_ai_core-0.51.2-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tako_ai_core-0.51.2-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 7aae05c78865d51f55c7d612ff618cb99139edd09e5df30c018130efb2eab6df
MD5 88c44327ba187833518c831082ddc278
BLAKE2b-256 048f59bfc16710ea083f0f968ade06cf43787ec9f8d74c97e0951bcb3f058a6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tako_ai_core-0.51.2-cp310-abi3-musllinux_1_2_aarch64.whl:

Publisher: wheels.yml on nyankobu010/tako-ai-core

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

File details

Details for the file tako_ai_core-0.51.2-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tako_ai_core-0.51.2-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 931b6217adb0180666c36f5b11cdc12c66b45ecb6b9ea8a21ff69638be3a8065
MD5 940e8160df259fe79742379cc6a89148
BLAKE2b-256 0ebce6f817346ebfad44348af209266fca1817cd11c9be4f38b765151644d1c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for tako_ai_core-0.51.2-cp310-abi3-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on nyankobu010/tako-ai-core

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

File details

Details for the file tako_ai_core-0.51.2-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for tako_ai_core-0.51.2-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 82b70caa48ce5ca8e4fd84064be68cfbeb2c2687ec2a2646df0f630d8235d210
MD5 05e1c16b1d608e95f194b234126b3525
BLAKE2b-256 8f30e2e3bc3d34159a12753e0f9b1de6b0a9cdcca9248da1a034ea3535a6349e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tako_ai_core-0.51.2-cp310-abi3-manylinux_2_28_aarch64.whl:

Publisher: wheels.yml on nyankobu010/tako-ai-core

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

File details

Details for the file tako_ai_core-0.51.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tako_ai_core-0.51.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 13a0ddae3e545a1e021ca43b9ba86d12166f02b91bd6d04f2cba1dac6d565eba
MD5 ebec86519439608c5506e20e70fdb8d9
BLAKE2b-256 cf5e24ae41de5423f1d08f21251356cd156e5d89bb1e90d10f850221cea2a215

See more details on using hashes here.

Provenance

The following attestation bundles were made for tako_ai_core-0.51.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: wheels.yml on nyankobu010/tako-ai-core

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