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
Release history Release notifications | RSS feed
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.0.tar.gz
(99.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dobby_sdk-0.2.0-py3-none-any.whl
(40.8 kB
view details)
File details
Details for the file dobby_sdk-0.2.0.tar.gz.
File metadata
- Download URL: dobby_sdk-0.2.0.tar.gz
- Upload date:
- Size: 99.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dd99eee1db3163de52530e97e443dc2b4afd6c706afa73259145bf765c176e2
|
|
| MD5 |
f27f708644ea5927b9c024b3deea9b1e
|
|
| BLAKE2b-256 |
9e70f2a6fae8a4c2f5fd4cd44d9512e92e268742f0a188806d721b8af34d5d2a
|
File details
Details for the file dobby_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: dobby_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 40.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
726e5d9397c7829db21ba9889907bb1f8917eec9b7e5d55bd935aca16fb01381
|
|
| MD5 |
cabe2883a337882fad903a888ea2c619
|
|
| BLAKE2b-256 |
3fe1af0498dee8b53c942bc7f59df5c1862f315248f7c75a1ab89ecb1570c34a
|