Sub Module for AI Assistant Project
Project description
AI Assistant Provider
Version : 0.0.6
Installation
pip install ai-assistant-provider
Usage
from ai_assistant_provider import AiProvider
class MyAiProvider(AiProvider):
def __init__(self):
super().__init__()
# You must implement this method
@property
def name(self) -> str:
return "Some AI Provider"
def ask(self, prompt: str) -> str:
self.add_message("user", prompt)
response = f"Response to: {prompt}"
self.add_message("assistant", response)
self.answer = response
return response
# Usage
provider = MyAiProvider()
response = provider.ask("Hello, how are you?")
print(f"Status: {provider.status}")
print(f"Response: {response}")
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
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 ai_assistant_provider-0.0.6.tar.gz.
File metadata
- Download URL: ai_assistant_provider-0.0.6.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa97da8f271e092276a18fb5bc662a854e13fd721c1db1450dd3744aaeb2dfa8
|
|
| MD5 |
bfaab8a6e5f8cd5181a58d27edc72fac
|
|
| BLAKE2b-256 |
d30a02f7aefb362e36a6390d8e2424ce8231f855dce69432dda24006ea060cd2
|
File details
Details for the file ai_assistant_provider-0.0.6-py3-none-any.whl.
File metadata
- Download URL: ai_assistant_provider-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de354ef55da5727f1222b5043260a359fe2b86399dce62702f07002c098ce998
|
|
| MD5 |
faf4666fd30f7a83680d05cb6d017ea9
|
|
| BLAKE2b-256 |
557372a2270777666441c063f283dc3b754ef7358f954f6048fa3c01e8668a49
|