Metadata-Version: 2.4
Name: leafmesh
Version: 2.4.551
Summary: LeafMesh — the ADK of the LeafCraft platform: teams of AI agents and people on real work
Author-email: LeafCraft <koushik@leafcraftstudios.com>
Maintainer-email: LeafCraft <koushik@leafcraftstudios.com>
License: LicenseRef-Proprietary
Project-URL: Homepage, https://leafcraft.ai
Project-URL: Documentation, https://leafcraft.ai/product/docs
Keywords: multi-agent,ai,orchestration,leafmesh,leafcraft,adk,swarm,human-in-the-loop,llm,automation
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Framework :: AsyncIO
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: pydantic<3.0.0,>=2.0.0
Requires-Dist: redis>=5.0.0
Requires-Dist: PyYAML>=6.0.0
Requires-Dist: openai>=1.0.0
Requires-Dist: structlog>=23.0.0
Requires-Dist: aiohttp>=3.9.0
Requires-Dist: httpx>=0.25.0
Requires-Dist: requests>=2.28.0
Requires-Dist: certifi>=2023.0.0
Requires-Dist: composio-core>=0.5.0
Requires-Dist: Pillow<13.0,>=11.0
Requires-Dist: motor>=3.3.0
Requires-Dist: pynacl>=1.5.0
Requires-Dist: PyJWT[crypto]>=2.8.0
Requires-Dist: anthropic<1.0,>=0.25.0
Requires-Dist: google-genai>=1.0.0
Requires-Dist: boto3>=1.28.0
Requires-Dist: google-auth>=2.0.0
Requires-Dist: opentelemetry-api>=1.21.0
Requires-Dist: opentelemetry-sdk>=1.21.0
Requires-Dist: opentelemetry-exporter-otlp>=1.21.0
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc>=1.21.0
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.21.0
Requires-Dist: opentelemetry-instrumentation>=0.42b0
Requires-Dist: opentelemetry-instrumentation-redis>=0.42b0
Requires-Dist: opentelemetry-instrumentation-fastapi>=0.42b0
Requires-Dist: opentelemetry-instrumentation-requests>=0.42b0
Requires-Dist: opentelemetry-instrumentation-aiohttp-client>=0.42b0
Requires-Dist: opentelemetry-instrumentation-logging>=0.42b0
Requires-Dist: opentelemetry-instrumentation-system-metrics>=0.42b0
Requires-Dist: opentelemetry-semantic-conventions>=0.42b0
Provides-Extra: postgres
Requires-Dist: asyncpg>=0.27.0; extra == "postgres"
Provides-Extra: crewai
Requires-Dist: crewai>=0.41.0; extra == "crewai"
Provides-Extra: langgraph
Requires-Dist: langgraph>=0.0.40; extra == "langgraph"
Provides-Extra: autogen
Requires-Dist: pyautogen>=0.2.0; extra == "autogen"
Provides-Extra: a2a
Requires-Dist: a2a-sdk>=0.2.0; extra == "a2a"
Provides-Extra: mcp
Requires-Dist: mcp>=1.0.0; extra == "mcp"
Provides-Extra: composio
Requires-Dist: composio-core>=0.5.0; extra == "composio"
Provides-Extra: zapier
Requires-Dist: httpx>=0.25.0; extra == "zapier"
Provides-Extra: claude-agent
Requires-Dist: claude-agent-sdk>=0.1.0; extra == "claude-agent"
Provides-Extra: openai-agents
Requires-Dist: openai-agents>=0.1.0; extra == "openai-agents"
Provides-Extra: codex
Requires-Dist: websockets>=14.0; extra == "codex"
Provides-Extra: scheduler
Requires-Dist: apscheduler>=3.10.0; extra == "scheduler"
Provides-Extra: slack
Requires-Dist: slack-sdk>=3.27.0; extra == "slack"
Provides-Extra: telegram
Requires-Dist: python-telegram-bot>=21.0; extra == "telegram"
Provides-Extra: teams
Requires-Dist: botframework-connector>=4.16.0; extra == "teams"
Provides-Extra: discord
Requires-Dist: pynacl>=1.5.0; extra == "discord"
Provides-Extra: kafka
Requires-Dist: aiokafka>=0.10.0; extra == "kafka"
Provides-Extra: sqs
Requires-Dist: aioboto3>=12.0.0; extra == "sqs"
Provides-Extra: mqtt
Requires-Dist: aiomqtt>=2.0; extra == "mqtt"
Provides-Extra: apns
Requires-Dist: httpx[http2]>=0.25.0; extra == "apns"
Provides-Extra: livekit
Requires-Dist: livekit>=1.0; extra == "livekit"
Provides-Extra: imap
Requires-Dist: aioimaplib>=1.1.0; extra == "imap"
Provides-Extra: listeners
Requires-Dist: aiokafka>=0.10.0; extra == "listeners"
Requires-Dist: aioboto3>=12.0.0; extra == "listeners"
Requires-Dist: aiomqtt>=2.0; extra == "listeners"
Requires-Dist: aioimaplib>=1.1.0; extra == "listeners"
Provides-Extra: email
Requires-Dist: aiosmtplib>=3.0; extra == "email"
Provides-Extra: email-cleaning
Requires-Dist: talon>=1.4.4; extra == "email-cleaning"
Provides-Extra: channels
Requires-Dist: slack-sdk>=3.27.0; extra == "channels"
Requires-Dist: python-telegram-bot>=21.0; extra == "channels"
Requires-Dist: botbuilder-core>=4.16.0; extra == "channels"
Requires-Dist: botframework-connector>=4.16.0; extra == "channels"
Requires-Dist: pynacl>=1.5.0; extra == "channels"
Requires-Dist: aiosmtplib>=3.0; extra == "channels"
Provides-Extra: knowledge-mongo
Provides-Extra: knowledge-postgres
Requires-Dist: asyncpg>=0.29.0; extra == "knowledge-postgres"
Provides-Extra: knowledge-pinecone
Requires-Dist: pinecone-client>=3.0.0; extra == "knowledge-pinecone"
Provides-Extra: knowledge-docs
Requires-Dist: PyPDF2>=3.0.0; extra == "knowledge-docs"
Requires-Dist: python-docx>=1.0.0; extra == "knowledge-docs"
Provides-Extra: knowledge
Requires-Dist: motor>=3.3.0; extra == "knowledge"
Requires-Dist: asyncpg>=0.29.0; extra == "knowledge"
Requires-Dist: pinecone-client>=3.0.0; extra == "knowledge"
Requires-Dist: PyPDF2>=3.0.0; extra == "knowledge"
Requires-Dist: python-docx>=1.0.0; extra == "knowledge"
Provides-Extra: connectors
Requires-Dist: crewai>=0.41.0; extra == "connectors"
Requires-Dist: langgraph>=0.0.40; extra == "connectors"
Requires-Dist: pyautogen>=0.2.0; extra == "connectors"
Requires-Dist: a2a-sdk>=0.2.0; extra == "connectors"
Requires-Dist: mcp>=1.0.0; extra == "connectors"
Requires-Dist: composio-core>=0.5.0; extra == "connectors"
Requires-Dist: httpx>=0.25.0; extra == "connectors"
Provides-Extra: all
Requires-Dist: aioboto3>=12.0.0; extra == "all"
Requires-Dist: livekit>=1.0; extra == "all"
Requires-Dist: aioimaplib>=1.1.0; extra == "all"
Requires-Dist: aiokafka>=0.10.0; extra == "all"
Requires-Dist: aiosmtplib>=3.0; extra == "all"
Requires-Dist: apscheduler>=3.10.0; extra == "all"
Requires-Dist: aiomqtt>=2.0; extra == "all"
Requires-Dist: asyncpg>=0.27.0; extra == "all"
Requires-Dist: botbuilder-core>=4.16.0; extra == "all"
Requires-Dist: botframework-connector>=4.16.0; extra == "all"
Requires-Dist: httpx>=0.25.0; extra == "all"
Requires-Dist: mcp>=1.0.0; extra == "all"
Requires-Dist: motor>=3.3.0; extra == "all"
Requires-Dist: pinecone-client>=3.0.0; extra == "all"
Requires-Dist: pynacl>=1.5.0; extra == "all"
Requires-Dist: PyPDF2>=3.0.0; extra == "all"
Requires-Dist: python-docx>=1.0.0; extra == "all"
Requires-Dist: python-telegram-bot>=21.0; extra == "all"
Requires-Dist: slack-sdk>=3.27.0; extra == "all"
Requires-Dist: websockets>=14.0; extra == "all"
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: pytest-mock>=3.10.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: isort>=5.12.0; extra == "dev"
Requires-Dist: flake8>=6.0.0; extra == "dev"
Dynamic: license-file

# LeafMesh — the ADK of the LeafCraft platform

**[LeafCraft](https://leafcraft.ai)** is a platform for running teams of AI agents and people
together on real business work. **LeafMesh** is its ADK (agent development kit): the
runtime that hosts those teams in your own infrastructure, on your own data.

- Website: https://leafcraft.ai
- Documentation: https://leafcraft.ai/product/docs

## What LeafMesh gives you

- **A team, not a pipeline.** Agents and people are members of one mesh. Each member
  says who it may hand work to, and the mesh routes, waits and follows up.
- **People in the loop by design.** A person is a full member, reached in the LeafCraft
  Inbox or on Slack, Microsoft Teams, Zoho Cliq, WhatsApp or email.
- **Agents from other frameworks.** CrewAI, LangGraph, AutoGen, n8n, A2A and other
  agents join the same team as external members.
- **Credentials kept out of config.** Keys and addresses live in an encrypted vault;
  configuration refers to them by name.
- **Change it while it runs.** The configuration is stored with every version kept, and
  a saved change applies on every pod without a restart.
- **See every step.** Each run is traced, with the cost of every model call.

## Install

```bash
pip install leafmesh
```

Python 3.10 to 3.15. LeafMesh keeps its state in Redis or PostgreSQL.

## Start a project

The quickest start is the project generator, which writes a working team you can edit:

```bash
pip install create-leafmesh
create-leafmesh my-project
```

To run a team from your own configuration file:

```python
from leafmesh import LeafMesh

mesh = LeafMesh.from_yaml("config.yaml")
await mesh.start()
```

Model provider keys (OpenAI, Anthropic, Google, OpenRouter and others) go in `.env`;
everything else is managed in LeafCraft Studio. See the
[documentation](https://leafcraft.ai/product/docs) for the full configuration reference.

## Licence

LeafMesh is commercial software owned by LeafCraft. Use requires a LeafCraft licence.
For licensing, visit https://leafcraft.ai or write to info@leafcraft.ai.

Copyright 2021–2026 LeafCraft. All rights reserved.
