Skip to main content

A provider-agnostic LLM toolkit with tool calling, skills, and parallel execution.

Project description

llmstitch

A provider-agnostic LLM toolkit with tool calling, skills, and parallel execution.

Stitch together Anthropic, OpenAI, and Gemini behind one Agent loop. Define tools with a decorator, compose behaviors as skills, and execute tool calls concurrently — all with a tiny, typed core.

Install

pip install llmstitch[anthropic]       # just the Anthropic SDK
pip install llmstitch[openai]          # just the OpenAI SDK
pip install llmstitch[gemini]          # just the Gemini SDK
pip install llmstitch[all]             # all three

The bare pip install llmstitch has zero runtime dependencies — provider SDKs are opt-in extras.

30-second example

import asyncio
from llmstitch import Agent, tool
from llmstitch.providers.anthropic import AnthropicAdapter

@tool
def get_weather(city: str) -> str:
    """Return a canned weather report for the given city."""
    return f"{city}: 72°F and sunny"

agent = Agent(
    provider=AnthropicAdapter(),
    model="claude-opus-4-7",
    system="You are a helpful weather assistant.",
)
agent.tools.register(get_weather)

messages = asyncio.run(agent.run("What's the weather in Tokyo?"))
print(messages[-1].content)

Features

  • Provider-agnostic — swap AnthropicAdapter for OpenAIAdapter or GeminiAdapter without touching your agent code.
  • Typed @tool decorator — JSON Schema generated from type hints (Optional, Literal, defaults, async).
  • Parallel tool execution — when a model returns multiple tool calls in one turn, they run concurrently.
  • Skills — bundle a system prompt with a set of tools; compose with .extend().
  • PEP 561 typed — ships with py.typed, fully checked under mypy --strict.

Status

v0.1.0 alpha. Streaming, retries, and MCP support are on the roadmap. See CHANGELOG.md and the project plan.

License

MIT

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

llmstitch-0.1.0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

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

llmstitch-0.1.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file llmstitch-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for llmstitch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1f6070e0909bc4f9fd0a14522c2c75f94bf97b143e6090f86468517e5467f31
MD5 a34be4f55025c872d17329acc5eb4090
BLAKE2b-256 dafcf510d226ce3c8790986250a3cfe6ed626fd56a9fe23c011d39928de143fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmstitch-0.1.0.tar.gz:

Publisher: release.yml on bengeos/llmstitch

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

File details

Details for the file llmstitch-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: llmstitch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for llmstitch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81dd6e2fb43bb9846a71ecb03f000c18bf2c7a7ca3dcaf282d021132dbe819a3
MD5 b3424508bc7605d6e06e9542664132d0
BLAKE2b-256 367aa013eb38b476938bda793a63918c98e4128b08bd534aba5790cd8fb59ca8

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmstitch-0.1.0-py3-none-any.whl:

Publisher: release.yml on bengeos/llmstitch

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