A Python SDK for interacting with the GearMind API
Project description
GearMind SDK
A Python SDK for interacting with the GearMind API.
Installation
pip install gearmind-sdk
Usage
from gearmind_sdk import GearMindSDK, Message
sdk = GearMindSDK(api_key="your_api_key_here")
messages = [
Message(role="user", content="Hello, how are you?")
]
try:
response = sdk.chat(messages)
print(f"Assistant: {response.content}")
except GearMindError as e:
print(f"Error: {e}")
if e.status_code:
print(f"Status code: {e.status_code}")
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file gearmind_sdk-0.0.post1-py3-none-any.whl
.
File metadata
- Download URL: gearmind_sdk-0.0.post1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95281fa5a79f5fecdae9b1a336c857856e01f0b6c52b3645349f123a419dc532 |
|
MD5 | ee9a7abe99e58ebbb5b620e49589646c |
|
BLAKE2b-256 | 0e52876851910508ae7820f25bea90112701e2470387c5b2a024d1669c8ec14c |