Skip to main content

Sub Module for AI Assistant Project

Project description

AI Assistant Provider

Version : 0.0.7

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.7.tar.gz (3.7 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.7-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file ai_assistant_provider-0.0.7.tar.gz.

File metadata

  • Download URL: ai_assistant_provider-0.0.7.tar.gz
  • Upload date:
  • Size: 3.7 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.7.tar.gz
Algorithm Hash digest
SHA256 2c46cc9f8aeac02827ed2bb94efabd36d2152d031d0189045fc374a04a16366f
MD5 1caf9805a95f93e218345ca2c32412c2
BLAKE2b-256 fd851b6e1fa8e2ef81f6c8ebfbe9d6de7fbd73580e4770f68aac6142823caac8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ai_assistant_provider-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d512299f64a4cfd8eb7189a19939ebfd5710a679eaadddc250589194b096a8db
MD5 79eafc08d5a34c3c21db037f958affef
BLAKE2b-256 ab734f6a0011044d8315ff7cbc7faee79ed8adb5935906b4551e44f0d7dc20c9

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