An official 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.1.0.tar.gz
(10.8 kB
view details)
Built Distribution
File details
Details for the file anam_python_sdk-0.1.0.tar.gz
.
File metadata
- Download URL: anam_python_sdk-0.1.0.tar.gz
- Upload date:
- Size: 10.8 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 | 844bb6e8a321553790131e0577de96f93ff50dc34fe1e3b8382e971f054db4f7 |
|
MD5 | 64048e7dcae51c860fef53908582b82a |
|
BLAKE2b-256 | aca38bb5370b4b4d00f3771e0f122816f180f355ec8544e36afd85ff5d645442 |
File details
Details for the file anam_python_sdk-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: anam_python_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.2 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 | 709553d8c2eb7e1ea09fe6bf1c0122964c31ad69ecfcc3a46f9faf1ad2ac7234 |
|
MD5 | 008b546c5a8d8f6b8fdfb95e24d3bd6b |
|
BLAKE2b-256 | f9e1a231988448487cab0b46dda09673c213d08ffdb26fd338ef945c4b1ceb8a |