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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dobby_sdk-0.2.10.tar.gz
  • Upload date:
  • Size: 119.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dobby_sdk-0.2.10.tar.gz
Algorithm Hash digest
SHA256 29b02bc5f1dd2b0cab35fa9e315e2d879da10c0437e0639494d2121147adedb9
MD5 9611d224cb7990733e3cdc4b2e2f0a04
BLAKE2b-256 1fa0da27dc1ac7a9fd21528172af9fdf92d8ef2dd40c70ac3c320a906eda1704

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dobby_sdk-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 54.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dobby_sdk-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 01ee5e7a21f278064eb4e1c46c5386f1ca6d47fa2cccdf2fc25e9077966381a5
MD5 3489757bbfc7fa1a5c83b98e58504f4a
BLAKE2b-256 71fc069599ce777966f73513e3e11a34960c0b9a94d1a0d0c09fd250d745446c

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