Skip to main content

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

ai_assistant_provider-0.0.6.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

ai_assistant_provider-0.0.6-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for ai_assistant_provider-0.0.6.tar.gz
Algorithm Hash digest
SHA256 aa97da8f271e092276a18fb5bc662a854e13fd721c1db1450dd3744aaeb2dfa8
MD5 bfaab8a6e5f8cd5181a58d27edc72fac
BLAKE2b-256 d30a02f7aefb362e36a6390d8e2424ce8231f855dce69432dda24006ea060cd2

See more details on using hashes here.

File details

Details for the file ai_assistant_provider-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_assistant_provider-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 de354ef55da5727f1222b5043260a359fe2b86399dce62702f07002c098ce998
MD5 faf4666fd30f7a83680d05cb6d017ea9
BLAKE2b-256 557372a2270777666441c063f283dc3b754ef7358f954f6048fa3c01e8668a49

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