Python SDK for the Mixgarden API
Project description
Mixgarden Python SDK
pip install mixgarden
- Use
get_models()to get a list of available models. - Use
get_plugins()to get a list of available plugins. - Use
get_conversations()to get a list of available conversations. - Use
get_conversation(id)to get a specific conversation. - Use
chat(model, messages)when you’re building a conversational UI, or want the platform to maintain context for you. - Use
get_completion(model, messages)when you need a quick, stateless generation and want absolute control over the prompt and token usage.
import os
from mixgarden import MixgardenSDK
sdk = MixgardenSDK(api_key=os.getenv("MIXGARDEN_API_KEY"))
# List available models
models = sdk.get_models()
# Stateful chat (conversation is stored server-side)
chat = sdk.chat(
model="gpt-4o-mini",
content="Hello mixgarden!",
pluginId="tone-pro",
pluginSettings={
"emotion-type": "neutral",
"emotion-intensity": 6,
"personality-type": "friendly",
},
)
# Other helper calls
plugins = sdk.get_plugins()
conversations = sdk.get_conversations()
conversation = sdk.get_conversation(conversations[0]["id"])
# Stateless, one-shot completion (OpenAI-style)
completion = sdk.get_completion(
model= models[0]["id"],
messages=[{"role": "user", "content": "Hi there!"}],
maxTokens=100,
temperature=0.7,
)
print(chat)
print(completion)
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
mixgarden-0.1.1.tar.gz
(2.3 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
File details
Details for the file mixgarden-0.1.1.tar.gz.
File metadata
- Download URL: mixgarden-0.1.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f7963d7523707fd26e80d72c8f4c5c7b41e2d29c949cbfe85416df62320e643
|
|
| MD5 |
1dd55250ee1e5a2f7db87c3fdb5e5529
|
|
| BLAKE2b-256 |
bf34be166b260609b1e7305b3c57d420520f8a6ccdc789abbbc7c06084a4bbfc
|
File details
Details for the file mixgarden-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mixgarden-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51e565604df828829236066cb5ba251d8b4401ac6469732c70d780caed511717
|
|
| MD5 |
144e8e124e527763a3d08c0120c8cdf9
|
|
| BLAKE2b-256 |
63f87ef0e573f46efb279a560aad3d38d836a571f14dc4b86255ada107f0f3cd
|