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.
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.
from honcho import Client as HonchoClient
honcho = HonchoClient(base_url="http://localhost:8000")
user_id = "test"
session = honcho.create_session(user_id=user_id)
session_id = session["session_id"]
honcho.create_message_for_session(user_id=user_id, session_id=session_id, is_user=True, content="Hello")
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
honcho_ai-0.0.0.dev1.tar.gz
(14.4 kB
view hashes)
Built Distribution
Close
Hashes for honcho_ai-0.0.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 969ddda79f87044ba6728df9cce1a8e48487a46a582d2e59c184bbc13b90baa4 |
|
MD5 | d7dbe17a089d80984a2712c3c3add44e |
|
BLAKE2b-256 | b8a307162668b2851a254f0346bcd5e626975bde619726a85f2931d6b12ac2ed |