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.7.tar.gz (107.1 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.7-py3-none-any.whl (51.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dobby_sdk-0.2.7.tar.gz
Algorithm Hash digest
SHA256 0a16ff53429dae737773beddbee243b160e0788d17f81926e207a0acdef25e29
MD5 065a87c6085317f234d19f714425ff03
BLAKE2b-256 30c1de926b3467c5f0118c4d00348b1647ab66abe097619b6f6ae449b53fca20

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dobby_sdk-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6274aad095ed490ae6101bbd50e0e4b1b19b9a225ba27f9ba2e3ee3d743a1527
MD5 724e439609818f4f0e14ddc416bcc508
BLAKE2b-256 8848190d5970228924727a00768bfefc30196716c6b7b622ac5e0d5dd6c290f7

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