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 details)
Built Distribution
File details
Details for the file honcho_ai-0.0.0.dev1.tar.gz
.
File metadata
- Download URL: honcho_ai-0.0.0.dev1.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.9.7 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c099a56853e34f7abb9292095b71f2e9a5f767fc484d29423773823621eeb924
|
|
MD5 |
4113bfa72e2810803f74a4e9d8f02b31
|
|
BLAKE2b-256 |
cd9eb8a87daec34bb855753c4067307eda82ffabdea2df0f680f6fc166b81d5d
|
File details
Details for the file honcho_ai-0.0.0.dev1-py3-none-any.whl
.
File metadata
- Download URL: honcho_ai-0.0.0.dev1-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.9.7 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
969ddda79f87044ba6728df9cce1a8e48487a46a582d2e59c184bbc13b90baa4
|
|
MD5 |
d7dbe17a089d80984a2712c3c3add44e
|
|
BLAKE2b-256 |
b8a307162668b2851a254f0346bcd5e626975bde619726a85f2931d6b12ac2ed
|