honcho/sdk
Vineeth Voruganti 6330b735d5 READMEs 2024-02-01 09:48:10 -08:00
..
honcho Revert "fix: add missing args" 2024-02-01 11:44:58 -05:00
tests Revert "Revert "Add extra tests"" 2024-02-01 11:42:31 -05:00
CHANGELOG.md Update Changelogs Again 2024-02-01 09:32:27 -08:00
LICENSE location based queries 2024-01-18 02:48:05 -08:00
README.md READMEs 2024-02-01 09:48:10 -08:00
poetry.lock ♻️ orient the objects, tests, fix api 2024-01-23 15:33:01 -05:00
pyproject.toml Add Application Level Indexing 2024-01-31 01:45:52 -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.

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