Skip to main content

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


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

gearmind_sdk-0.0.post1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file gearmind_sdk-0.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for gearmind_sdk-0.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 95281fa5a79f5fecdae9b1a336c857856e01f0b6c52b3645349f123a419dc532
MD5 ee9a7abe99e58ebbb5b620e49589646c
BLAKE2b-256 0e52876851910508ae7820f25bea90112701e2470387c5b2a024d1669c8ec14c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page