A simple Python library for Google Gemini with memory support.
Project description
Dracula 🧛
A simple Python library for Google Gemini with conversation memory.
Installation
pip install dracula-ai
Usage
from dracula import Dracula
ai = Dracula( api_key="your-api-key", prompt="You are a helpful assistant.", temperature=1.0, max_output_tokens=1024, max_messages=10 )
Chat
response = ai.chat("Hello, who are you?") print(response)
Change prompt anytime
ai.set_prompt("You are a pirate.")
Change temperature anytime
ai.set_temperature(0.5)
Get stats
ai.get_stats()
Reset stats
ai.reset_stats()
Save and load conversation history
ai.save_history("conversation.json") ai.load_history("conversation.json")
Clear memory
ai.clear_memory()
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 dracula_ai-0.2.1.tar.gz.
File metadata
- Download URL: dracula_ai-0.2.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85215f58f006cacf7632f8ca04f9840dc5c821b95b849750e5134aa2c4b10d94
|
|
| MD5 |
6df7858fbec211f562a06f5235f095db
|
|
| BLAKE2b-256 |
f8d5c3a9e3e1124dfd4187749c1692a6b522d8e76aadbf6eda5d285692664cfd
|
File details
Details for the file dracula_ai-0.2.1-py3-none-any.whl.
File metadata
- Download URL: dracula_ai-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44d7a5f248c94c1983eaa5fb0f8f2f39602bb6fcdd36041f45daf8d3d9202736
|
|
| MD5 |
cfd593434b7029f423b7d0727e9d28f6
|
|
| BLAKE2b-256 |
96d7c89252a3f50a93d525c0918bca35987d51a68a426f91ecf79845d8368022
|