Zero-boilerplate multi-provider LLM agent framework
Project description
LazyBridge
Zero-boilerplate multi-provider LLM agent framework. One class for every LLM interaction, automatic tool schema generation, composable context injection, and serializable multi-agent pipelines.
Quick start
from lazybridge import LazyAgent
ai = LazyAgent("anthropic")
print(ai.text("What is the capital of France?"))
Same code on any provider — change one string:
LazyAgent("openai")
LazyAgent("google")
LazyAgent("deepseek")
Tool loop
from lazybridge import LazyAgent, LazyTool
def get_weather(city: str) -> str:
"""Get current weather for a city."""
return f"{city}: 22°C, sunny"
result = LazyAgent("anthropic").loop(
"What's the weather in Rome and Paris?",
tools=[LazyTool.from_function(get_weather)],
)
print(result.content)
Schema generated automatically from type hints and docstring. No JSON dict, no decorator boilerplate.
Conversational memory
from lazybridge import LazyAgent, Memory
ai = LazyAgent("anthropic")
mem = Memory()
ai.chat("My name is Marco", memory=mem)
resp = ai.chat("What's my name?", memory=mem)
print(resp.content) # "Marco"
Structured output
from pydantic import BaseModel
class Article(BaseModel):
title: str
summary: str
tags: list[str]
article = LazyAgent("openai").json("Summarise AI in 2025", Article)
print(article.title)
Multi-agent pipeline
from lazybridge import LazyAgent, LazySession, LazyContext, LazyTool
sess = LazySession()
researcher = LazyAgent("anthropic", name="researcher", session=sess)
writer = LazyAgent("openai", name="writer", session=sess)
search_tool = LazyTool.from_function(lambda query: f"Papers about {query}")
researcher.loop("Find top 3 AI papers this week", tools=[search_tool])
result = writer.chat(
"Write a blog post",
context=LazyContext.from_agent(researcher),
)
print(result.content)
print(sess.graph.to_json()) # serializable pipeline topology for GUI
Native provider tools (web search, code execution, …)
from lazybridge.core.types import NativeTool
resp = ai.chat(
"What happened in AI this week?",
native_tools=[NativeTool.WEB_SEARCH],
)
for src in resp.grounding_sources:
print(src.url, src.title)
Supported providers
| Provider | String | Default model |
|---|---|---|
| Anthropic | "anthropic" / "claude" |
claude-sonnet-4-6 |
| OpenAI | "openai" / "gpt" |
gpt-5.4 |
"google" / "gemini" |
gemini-2.5-flash | |
| DeepSeek | "deepseek" |
deepseek-chat |
Installation
pip install lazybridge
# Provider extras (choose what you need)
pip install lazybridge[anthropic] # Anthropic / Claude
pip install lazybridge[openai] # OpenAI / GPT
pip install lazybridge[google] # Google / Gemini
pip install lazybridge[all] # all providers
Ready-made tools
Drop-in tools for common agent tasks — each in its own folder with a README and tests.
| Module | What it does |
|---|---|
lazybridge.tools.doc_skills |
Index local docs with BM25, query from any agent. No vector DB, no embeddings API. |
lazybridge.tools.read_docs |
Read .txt .md .pdf .docx .html from a folder or single file. pip install lazybridge[tools] |
doc_skills — example
from lazybridge.tools.doc_skills import build_skill, skill_tool
from lazybridge import LazyAgent
# Index your docs once — bundle persists to disk
meta = build_skill(["./docs"], "my-project")
# Load and use — works across restarts, no re-indexing
tool = skill_tool(meta["skill_dir"])
resp = LazyAgent("anthropic").loop("How does X work?", tools=[tool])
print(resp.content)
read_docs — example
from lazybridge.tools.read_docs import read_folder_docs
from lazybridge import LazyAgent, LazyTool
docs_tool = LazyTool.from_function(read_folder_docs)
resp = LazyAgent("anthropic").loop(
"Summarise all PDFs in /reports",
tools=[docs_tool],
)
print(resp.content)
Project structure
LazyBridge/
├── lazybridge/ # Installable package (pip install lazybridge)
│ ├── lazy_agent.py # LazyAgent — single entry point for LLM calls
│ ├── lazy_session.py # LazySession — shared store, events, graph
│ ├── lazy_tool.py # LazyTool — tool schema + execution
│ ├── lazy_context.py # LazyContext — composable system prompt injection
│ ├── lazy_store.py # LazyStore — flat key-value blackboard (SQLite or in-memory)
│ ├── lazy_router.py # LazyRouter — conditional branching node
│ ├── memory.py # Memory — stateful conversation history
│ ├── graph/ # GraphSchema — serializable pipeline topology
│ └── core/ # Provider adapters, executor, tool schema builder
├── tools/ # Tests and READMEs for lazybridge.tools
│ ├── doc_skills/ # test_doc_skills.py + README
│ └── read_docs/ # README
└── lazy_wiki/
├── bot/ # LLM-optimised reference (exhaustive, structured)
└── human/ # Human-readable guides and SDK comparison
Documentation
| Audience | Entry point |
|---|---|
| Developer | lazy_wiki/human/quickstart.md |
| SDK comparison | lazy_wiki/human/comparison.md |
| LLM / AI assistant | lazy_wiki/bot/INDEX.md |
| Full API reference | lazy_wiki/bot/00_quickref.md |
License
Project details
Release history Release notifications | RSS feed
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 lazybridge-0.4.0.tar.gz.
File metadata
- Download URL: lazybridge-0.4.0.tar.gz
- Upload date:
- Size: 202.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fddb5c15ed86cf84c1181ae7e539e1559db9e543fa4fb2f6e0b7833019f1c8e1
|
|
| MD5 |
03a82ad18f54cdfedc4b5c623c432703
|
|
| BLAKE2b-256 |
5c19c9eaba81b01e598d70aadc585db056545013248dfd6fd9ec414a0cde44d7
|
File details
Details for the file lazybridge-0.4.0-py3-none-any.whl.
File metadata
- Download URL: lazybridge-0.4.0-py3-none-any.whl
- Upload date:
- Size: 106.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c0a5aee9ca047aedda898b4a0a0d32c775b2d322de686b971f69910ab8589c3
|
|
| MD5 |
0a76ac9526127eb4b48b01c7eee0a1b4
|
|
| BLAKE2b-256 |
3e39fcdcc71a55ce2c692147cb7c746f9d8c4400a095812b74e4efc3a505ff0e
|