Skip to main content

Build AI Agents Fast

Project description

CyberChipped

PyPI - Version

CyberChipped Logo

CyberChipped is a Python library that provides an AI-powered conversation interface using OpenAI's Assistant API. It supports both text and audio-based interactions, with features like thread management, message persistence, and custom tool integration.

Features

  • Streaming text-based conversations with AI
  • Audio transcription and streaming text-to-speech conversion
  • Thread management for maintaining conversation context
  • Message persistence using SQLite or MongoDB
  • Custom tool integration for extending AI capabilities
  • Zep integration for tracking facts
  • Search Internet with Perplexity tool
  • Search Zep facts tool
  • Reasoning tool

Installation

You can install CyberChipped using pip:

pip install cyberchipped

Usage

Here's a basic example of how to use CyberChipped:

from cyberchipped import AI, SQLiteDatabase

async def main():
    database = SQLiteDatabase("conversations.db")
    async with AI("your_openai_api_key", "AI Assistant", "Your instructions here", database) as ai:
        user_id = "user123"
        response = await ai.text(user_id, "Hello, AI!")
        async for chunk in response:
            print(chunk, end="", flush=True)
        print()

# Run the async main function
import asyncio
asyncio.run(main())

Contributing

Contributions to CyberChipped are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

cyberchipped-3.0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

cyberchipped-3.0.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file cyberchipped-3.0.1.tar.gz.

File metadata

  • Download URL: cyberchipped-3.0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for cyberchipped-3.0.1.tar.gz
Algorithm Hash digest
SHA256 6b4a8eeb9e79cfcc2a3cd95804ee7d9a310f844743b1c7f033675da5fac37972
MD5 34b3f4d8030c4ff07ae2bb59035a9f69
BLAKE2b-256 cc13b7582d9d1774da6350a858e272f10b3c1b6e09c39d882a41dbcdc3444503

See more details on using hashes here.

File details

Details for the file cyberchipped-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: cyberchipped-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for cyberchipped-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3053db1d050587003d2ef85d215813b19c2f69e8013fc391b2f029499c4955c
MD5 4b6ac92e110f884c7950dc2d3b0d5e89
BLAKE2b-256 0e0c950489b4c3fac53ef284bad27159092e9e5c03d9be3958e273ac93e56f7a

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