Skip to main content

An unofficial package to interact with Anam's Avatar engine.

Project description

Getting Started

This client uses Poetry for Python package & dependency management.

Backlog

  • Core API
    • Establishing a P2P Websocket to the Anam engine
    • Configuring the API with a Pythonic interface
    • Plug and play with
      • Gradio, Streamlit or FastHTML
      • Fast API
  • Character Dev
    • Create 3 to 4 personas
  • Brains
    • Creating a RAG tool call & establishing a talk() command
    • Langchain integration
  • Persona API
    • Configuring a new persona using the client (i.e. what you do in Anam Lab)
    • Selecting a persona

Installation (Package)

    pip install anam-python-sdk
    from anamai.core import AnamClient
    from anamai.config import DEFAULT_FILTER_PHRASES_EN
    from dotenv import dotenv_values

    ENV = dotenv_values(".env.example")

    anc = AnamClient(ENV)

    eva = anc.Persona(
        personality = """
        You are role-playing as a text chatbot hotel receptionist at The Sunset Hotel. 
        Your name is Eva.
        """, 
        system_prompt="""
        You are role-playing as a text chatbot hotel receptionist at The Sunset Hotel. 
        Your name is Eva. Start with 'Hi, this is The Sunset Hotel reception, how may I help you?' 
        Be mindful of the hotel's availability: single and double rooms 
        are still available all next week, except Tuesday. 
        Dogs are allowed. There's a restaurant and bar in the lobby. 
        If communication breaks down, ask if they want to speak to a human. 
        Finish every response with a question to drive the conversation. 
        Do not repeat yourself.
        """, 
        filter_phrases=DEFAULT_FILTER_PHRASES_EN
    )

Installation (Local)

Using Conda

  1. Create a python environment (^3.10) in your top-level directory.
    • .conda/bin/python
    • Ensure that its activated; i.e. (.conda) shows.
  2. Configure poetry to use .conda/bin/python:
    (.conda) poetry config virtualenvs.path $CONDA_ENV_PATH
    (.conda) poetry config virtualenvs.create false
    (.conda) poetry env use .conda/bin/python
  1. Install the dependencies
    (.conda) poetry install

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

anam_python_sdk-0.3.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

anam_python_sdk-0.3.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file anam_python_sdk-0.3.0.tar.gz.

File metadata

  • Download URL: anam_python_sdk-0.3.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.6 Darwin/24.0.0

File hashes

Hashes for anam_python_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a91771d23e41267c8b1b66c9e8fa126459bc6d6167782714ac565dec7e48542e
MD5 db87856ccc9afe20925eec3c0af808c8
BLAKE2b-256 d4f154732c3877da6e3e19a04f25622a2a9a59940b9626fb84eae9bce64f4d30

See more details on using hashes here.

File details

Details for the file anam_python_sdk-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: anam_python_sdk-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.6 Darwin/24.0.0

File hashes

Hashes for anam_python_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d0187de6ee85850bef3db78e5ec1a755e096f262817989c893c5dfa265eee1b
MD5 db84b678b8add73c94046ed259546774
BLAKE2b-256 ef12c035476b48ec2d0d66cfdd6cb389ab0676272a51813e4103ba592b7252ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page