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

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

# With uv
uv add git+https://github.com/TYNYBAY/dobby-sdk.git

Quick Start

from dobby import AgentExecutor, OpenAIProvider

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

messages = [{"role": "user", "parts": [{"text": "Hello!"}]}]

async for event in executor.run_stream(messages):
    if event.type == "text-delta":
        print(event.delta, end="")

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dobby_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6756c3586e3ea4c0cad16b9ee501660e4634983f1d205121b6c55d6f13e429be
MD5 057fa9d99b5329dc0ee6e9ddfb9b78f6
BLAKE2b-256 b21b40f86d237b2e2299924ab25a3a5432fa12c15623a97e22ae7ebe5c546e8f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dobby_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d051d3c1f39553d99d9266feafbb175d5d019aa3f3c955fd99f8673ce0010ec8
MD5 c8a43c5c77fa19d17ec6251b406d1aa1
BLAKE2b-256 615a5fab03680f75773a25b66181ca5aa760fbada5c513c727f22c7bee38b638

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