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
- Creating a RAG tool call & establishing a
- 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
- Create a python environment
(^3.10)
in your top-level directory..conda/bin/python
- Ensure that its activated; i.e.
(.conda)
shows.
- 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
- Install the dependencies
(.conda) poetry install
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
anam_python_sdk-0.2.0.tar.gz
(269.6 kB
view details)
Built Distribution
File details
Details for the file anam_python_sdk-0.2.0.tar.gz
.
File metadata
- Download URL: anam_python_sdk-0.2.0.tar.gz
- Upload date:
- Size: 269.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.6 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bc0d70b47dc38ccb35a50b00ca0dc786fcdc5bb1463b2afbd520ff6fe333f0e |
|
MD5 | e3bc35ce996c62c23adc3e8f11f62469 |
|
BLAKE2b-256 | bd35a238a641723bdef1e90b194ef27a5811cb1ad026e09cf25960cc055fb533 |
File details
Details for the file anam_python_sdk-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: anam_python_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 284.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8616ce5328d9ede3c2fcf86e8862ac028d8d323f74e8ca6bfff4577192f8729d |
|
MD5 | 6525b4a89709f4a3127d358c6940bfeb |
|
BLAKE2b-256 | d8fba3ada1406d21a849b57ef8a5274b5ff36191fb5b3ea85303359be8ec2391 |