Skip to main content

Antikythera Agent SDK

General-purpose agent runtime with multi-agent orchestration, MCP tool integration, and WebAssembly support.

Installation

pip install antikythera-agent

For WASM execution support:

pip install antikythera-agent[wasm]

Quick Start

Create an Agent

from antikythera_agent import Agent, PromptManager, PromptConfig

prompts = PromptManager()
prompts.register(PromptConfig(
    id="assistant",
    name="Assistant",
    content="You are a helpful assistant.",
))

agent = Agent(
    provider="openai",
    model="gpt-4o",
    system_prompt=prompts.get_content("assistant")
)

result = agent.run("Hello, how can you help me?")
print(result.output)

Multi-Agent Orchestration

from antikythera_agent import Orchestrator, PromptManager, PromptConfig

prompts = PromptManager()
prompts.register(PromptConfig(
    id="coder",
    name="Coder",
    content="You are a software engineer.",
    tags=["engineering"]
))
prompts.register(PromptConfig(
    id="reviewer",
    name="Reviewer",
    content="You are a code reviewer.",
    tags=["quality"]
))

orchestrator = Orchestrator(execution_mode="auto", max_concurrent_tasks=4)

orchestrator.register_agent(AgentProfileConfig(
    id="coder",
    name="Coder",
    role="developer",
    system_prompt=prompts.get_content("coder")
))

orchestrator.register_agent(AgentProfileConfig(
    id="reviewer",
    name="Reviewer",
    role="reviewer",
    system_prompt=prompts.get_content("reviewer")
))

result = orchestrator.dispatch("Write and review code")

WASM Runtime (Server-Side)

from antikythera_agent import WasmRuntime

runtime = WasmRuntime()
result = runtime.call_checked("init", '{"max_steps": 10}')
print(result)

Load Prompts from JSON

from antikythera_agent import PromptManager

# Load from file
prompts = PromptManager.from_file("prompts.json")

# Or load from string
prompts = PromptManager.from_json('[{"id":"agent","name":"Agent","content":"You are helpful."}]')

Requirements

  • Python 3
  • wasmtime (optional, for WASM execution; the supported minimum is pinned in pyproject.toml)

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

antikythera_agent-1.8.5.tar.gz (299.7 kB view details)

Uploaded Source

Built Distribution

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

antikythera_agent-1.8.5-py3-none-any.whl (302.4 kB view details)

Uploaded Python 3

File details

Details for the file antikythera_agent-1.8.5.tar.gz.

File metadata

  • Download URL: antikythera_agent-1.8.5.tar.gz
  • Upload date:
  • Size: 299.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for antikythera_agent-1.8.5.tar.gz
Algorithm Hash digest
SHA256 8681512855d0da86730ada6b3ded2f5dcd186e0ec44a85723fd134890a204a42
MD5 bd1f9b7dfd283a072db3bf787d95f54e
BLAKE2b-256 5a3c63f25dad34736b0e01e0cf71843e98682311f3b773287c809746df74c729

See more details on using hashes here.

File details

Details for the file antikythera_agent-1.8.5-py3-none-any.whl.

File metadata

File hashes

Hashes for antikythera_agent-1.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ef1cf2cc122247e237accdd4a23e898a10c28888073376a61ce9c4fb0ffa37b3
MD5 27d376ded512e5dcb251d9b1e0f450d9
BLAKE2b-256 10ed7d5c3e252570bf824e4d7f58c6721bd299e9cb4a475a9f99cb60a8fda821

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page