Skip to main content

Python client library for Vera AI chatbot by Hession Dynamics

Project description

Verahession

Verahession is a lightweight Python interface for interacting with V.E.R.A. (Vocally Enhanced Research Assistant), an AI-powered conversational agent. This module provides simple tools to connect to the VERA API, send messages, rewrite input, and run local intent classification using your own training data.



🔧 Features

  • 🧠 Send and receive messages using an API-based LLM
  • ✍️ Rewrite user input intelligently
  • 🏋️‍♂️ Train a local intent classification model
  • 🔍 Detect user intent with confidence scoring

📦 Installation

git clone https://github.com/yourusername/verahession.git
cd verahession
pip install -r requirements.txt

🔑 API Key

To use the Vera API (LLM), you need an API key.
Visit hessiondynamics.com to request your key.


🚀 Example Usage

from verahession.api import vera_interface
from verahession.assistant import *

# Initialize Vera interface
vera = vera_interface(API_KEY="your_api_key_here", AGENT_NAME="Brian", USER_NAME="Jack")

# Send a message
message = input("You: ")
result = vera.send(message)
print("Vera says:", result.get("response", result))

# Rewrite a message (or text, whatever)
message = input("Text: ")
result = vera.rewrite(message)
print("Vera rewrites:", result.get("response", result))

# Train the intent classifier
bot_trainer = trainer("./intents.json", "./model.pth")
bot_trainer.train()

# Classify a new input
classifier = Classifier("./model.pth")
message = input("You: ")
intent, confidence = classifier.classify(message)
print(intent)
print(confidence)

📁 File Structure

  • verahession/api.py – Vera API interface (LLM)
  • verahession/assistant.py – Local trainer & classifier tools
  • intents.json – Training data for intent classification
  • model.pth – Output model file after training

📄 License

MIT License


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

verahession-0.1.9.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

verahession-0.1.9-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file verahession-0.1.9.tar.gz.

File metadata

  • Download URL: verahession-0.1.9.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for verahession-0.1.9.tar.gz
Algorithm Hash digest
SHA256 5f3412a48acaa16fa47165d3403768af4c6a6aaec9efcf89fbeaf21e25bedf61
MD5 07bf9a97599f92da7fae7390bfb39eb9
BLAKE2b-256 ac75ffcd5a939ec53d7da82347350e40575df7281111072b1eb82922ae9be679

See more details on using hashes here.

File details

Details for the file verahession-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: verahession-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for verahession-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 78a32a37674c032a0294ca46ad7321813a44ce83afd501c0de6fb48dbdb27475
MD5 ca76f8ef95b25dce24d91f3e7ccec5ff
BLAKE2b-256 1c17ccf9a60d8597e7238a747236c90e59cb7cdaf2ed3919b791907fd2c0ce76

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