Skip to main content

A Python SDK for interacting with the Reigent API.

Project description

Rei Core SDK (Python)

A Python SDK for interacting with the Reigent, providing a simple interface for chat completions and agent management.

Features

  • Chat completion functionality
  • Agent management

Installation

Install the package using pip:

pip install reicore_sdk

Quick Start

from reicore_sdk import ReiCoreSdk

# Initialize the SDK with your Reigent Secret key
rei_agent = ReiCoreSdk("your-reiagent-secret-key")

# Get agent details
agent = rei_agent.get_agent()
print("Agent Details:", agent)

# Send a chat completion request
message = {
    "messages": [
        {
            "role": "user",
            "content": "Hello world"
        }
    ],
    "tools": []
}
response = rei_agent.chat.completion(message)
print("Chat Completion:", response)

Error Handling

The SDK includes built-in error handling for API requests. All methods will raise exceptions with descriptive messages if there are any issues with the API calls.

Requirements

  • Python >= 3.6
  • requests >= 2.25.1

License

MIT License

Support

For support, please contact rei.analoglabs@proton.me

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

reicore_sdk-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reicore_sdk-0.1.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file reicore_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: reicore_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for reicore_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ca46e0015cab5cf6d6bb3d3ac1b671f1a49938bb97b813c6ae0d72e73e5d79f5
MD5 cba42acb9bb828fb8099282ee45dfc12
BLAKE2b-256 197b49436eb4c3e61c97c04d8fbf46d91e87236177847341740f76161864084c

See more details on using hashes here.

File details

Details for the file reicore_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: reicore_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for reicore_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4f583d0e448758191ae22d9922b64ad3614be11ebd45b8593bca628cc03f406
MD5 e3d7a0e4c20dfb65484c3f59a0338abb
BLAKE2b-256 725637247b6dcf569d1030e1da261b8561843eaaaae088d2fd8fc8109301b148

See more details on using hashes here.

Supported by

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