Skip to main content

Lightweight multi-provider LLM SDK with streaming and tools

Project description

Dobby SDK

Lightweight multi-provider LLM SDK with streaming and tool support.

Installation

pip install dobby-sdk

# Or from GitHub
pip install git+https://github.com/TYNYBAY/dobby-sdk.git

# With uv
uv add dobby-sdk

Quick Start

from dobby import AgentExecutor, OpenAIProvider
from dobby.types import UserMessagePart, TextPart, TextDeltaEvent

provider = OpenAIProvider(model="gpt-4o", api_key="sk-...")
executor = AgentExecutor(provider="openai", llm=provider)

messages = [UserMessagePart(parts=[TextPart(text="Hello!")])]

async for event in executor.run_stream(messages):
    match event:
        case TextDeltaEvent(delta=delta):
            print(delta, end="")

Features

  • Multi-provider: OpenAI, Azure OpenAI, Anthropic
  • Streaming: Real-time token streaming with typed events
  • Tools: Dataclass-based tools with auto-generated schemas
  • Context injection: Pass runtime context to tools via Injected[T]
  • Structured output: Pydantic model validation for agent responses

Documentation

See docs/ for detailed documentation:

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

dobby_sdk-0.2.5.tar.gz (106.9 kB view details)

Uploaded Source

Built Distribution

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

dobby_sdk-0.2.5-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

Details for the file dobby_sdk-0.2.5.tar.gz.

File metadata

  • Download URL: dobby_sdk-0.2.5.tar.gz
  • Upload date:
  • Size: 106.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for dobby_sdk-0.2.5.tar.gz
Algorithm Hash digest
SHA256 cd3dba299860c3c9a579bd9097e3888c6d39b9662d67927eae88cc1d9347cc0b
MD5 23a3e51eb6f9cfbc13767506c7563a15
BLAKE2b-256 2294e7441f593173940ab4b9ba5e093f34a00a049733f541953ff268821dd600

See more details on using hashes here.

File details

Details for the file dobby_sdk-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: dobby_sdk-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 43.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for dobby_sdk-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ee854dbc10d8d250ef53209c4b8cebfefbda50f99620b2367cec2b6acb11a3ca
MD5 5e0b1b40a6abf737011702de3f7010f0
BLAKE2b-256 19b9d1d5bfc6bcf8e67cdd2422c5fcefb9b36fe9238a51ef4f8e5c55409013cc

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 Pingdom Monitoring Sentry Error logging StatusPage Status page