Python Client SDK for Honcho
Project description
Honcho
A User context management solution for building AI Agents and LLM powered applications.
Read about the motivation of this project here.
Read the full documentation of this project here
Installation
Install honcho:
pip install honcho-ai
or
poetry add honcho-ai
Getting Started
The Honcho SDK exposes a top level client that contains methods for managing the lifecycle of different conversations and sessions in an LLM powered application.
There is a demo server being run at https://demo.honcho.dev that the client uses by default if no other string is provided.
from uuid import uuid4
from honcho import Client as HonchoClient
app_id = str(uuid4())
honcho = HonchoClient(app_id=app_id)
user_id = "test"
session = honcho.create_session(user_id=user_id)
session.create_message(is_user=True, content="Hello I'm a human")
session.create_message(is_user=False, content="Hello I'm an AI")
The honcho sdk code contains docstrings — see the full sdk on GitHub
See more examples of how to use the SDK on GitHub
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
Built Distribution
Hashes for honcho_ai-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e38c2e58f1acd62a9c027877e5871b8246e79c84b2f96eba918178496e5871f8 |
|
MD5 | 7130402693eed846822ab57ef456beb8 |
|
BLAKE2b-256 | 7cd27b0fb0a02de5e3afcf1dbcabf78f0a76a96e979df48832b6d48b5dfe3719 |