honcho/sdk
Vineeth Voruganti b5301e6f9d Documentation Fixes and Discord Example 2024-01-18 13:03:33 -08:00
..
honcho Documentation 2024-01-18 07:15:00 -08:00
CHANGELOG.md Documentation 2024-01-18 07:15:00 -08:00
LICENSE location based queries 2024-01-18 02:48:05 -08:00
README.md Documentation 2024-01-18 07:15:00 -08:00
poetry.lock MVP SDK 2024-01-17 14:23:46 -08:00
pyproject.toml Documentation Fixes and Discord Example 2024-01-18 13:03:33 -08:00

README.md

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