Skip to main content

Prompt-based multi-agent context framework

Project description

Syntha SDK

The context-based multi‑agent framework. Build agents that share, route, and persist context — with first‑class tooling for prompts, tools, and popular LLM frameworks.

Python 3.9+ License: Apache 2.0 Documentation


Why Syntha

  • Context Mesh with topic routing and user isolation
  • ToolHandler with adapters (OpenAI, Anthropic, LangChain, Agno)
  • Prompt builders for system and message prompts
  • Pluggable persistence (SQLite, PostgreSQL)
  • Lightweight, framework‑agnostic, production‑ready

Install

pip install syntha

60‑second Quick Start

from syntha import ContextMesh, ToolHandler, build_system_prompt

# 1) Shared context, isolated per user
context = ContextMesh(user_id="demo_user")

# 2) Agents interact via tools (no manual data passing)
handler = ToolHandler(context, "AssistantAgent")
context.push("project", "AI Customer Support")
context.push("status", "active", topics=["support"])  # topic‑routed

# 3) Context‑aware prompts for your LLM
system_prompt = build_system_prompt("AssistantAgent", context)
print(system_prompt[:200] + "...")

Framework Integrations

  • OpenAI function calling: handler.get_openai_functions()
  • Anthropic tool use: handler.get_anthropic_tools()
  • LangChain BaseTool: handler.get_langchain_tools()
  • Agno Functions: handler.get_tools_for_framework("agno")

See the docs for concise, copy‑paste examples.

Documentation

License

Apache 2.0 © Syntha. See LICENSE.

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

syntha-0.2.6.tar.gz (89.7 kB view details)

Uploaded Source

Built Distribution

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

syntha-0.2.6-py3-none-any.whl (55.8 kB view details)

Uploaded Python 3

File details

Details for the file syntha-0.2.6.tar.gz.

File metadata

  • Download URL: syntha-0.2.6.tar.gz
  • Upload date:
  • Size: 89.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for syntha-0.2.6.tar.gz
Algorithm Hash digest
SHA256 d0a9c4e317b790696cb0934b5a0eb69c78bd31f4326d2184e3c547c6d635e4bf
MD5 17ca903e32f2cb9d731df4fb0a9a1647
BLAKE2b-256 19fbfc35f9821c1c5b4be195ca285567a68614577197fe5c071916111df59d1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for syntha-0.2.6.tar.gz:

Publisher: release.yml on Kirch77/syntha

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

File details

Details for the file syntha-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: syntha-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 55.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for syntha-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c639e9d924f664c9e9e8558b5ed6f2876f95a0f18a615b70c0455b31e1e6f5a1
MD5 2d52879edefea558b0c7f96d367f3609
BLAKE2b-256 108ffc26a7bb5c33137e2921ac92fe69a5d05ad11d08c9445a0502adc939f651

See more details on using hashes here.

Provenance

The following attestation bundles were made for syntha-0.2.6-py3-none-any.whl:

Publisher: release.yml on Kirch77/syntha

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