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 hashes)

Uploaded Python 3

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