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
python3 -m pip install verahession
🔑 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 toolsintents.json– Training data for intent classificationmodel.pth– Output model file after training
📄 License
MIT License
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file verahession-0.1.26.tar.gz.
File metadata
- Download URL: verahession-0.1.26.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e23a3b5017dd3fcac3f7778e13a1f9e7e10af00ac1f6449b5bc3e58ddc9ecf6c
|
|
| MD5 |
4f325148861c320c0b3135fced4f7c34
|
|
| BLAKE2b-256 |
e77c01176301f6fab03c8337a1abfe74c0276212748dc9fdd9e8835fddc80470
|
File details
Details for the file verahession-0.1.26-py3-none-any.whl.
File metadata
- Download URL: verahession-0.1.26-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0b287e5718b5db6ff04d15664da27e0bc75bf0279733ad60d3dc149d20b2ecd
|
|
| MD5 |
ca0b967c331c53f3e3521eb28c22b3b8
|
|
| BLAKE2b-256 |
8422779da97321b0728e5b9b9e9dd22e5735e695865ad3979de5a82f239c9fa2
|