honcho/sdk
Vineeth Voruganti d368139b2a
v0.0.3 (#19)
* 🧪 asyncify tests

*  asyncify client

* Basic Test for Page based pagination

* add sync buildstep and client

* add vscode DX

* Added Testing for generators and updated examples

* feat: example updates

* readme exists now

* Stylistic changes and generic message

* Metamessages with other refactoring - untested

* Work with unit tests

* Fix Examples

* MEME-78 Update Changelogs

* Docstrings to client

* 🧪 autogenerate sync tests (#16)

* Vector Support (#18)

* Scaffold for PGVector support

* Buggy crud with logic skeleton on api

* Crud logic and schema definition for pgvector

* Populate all routes and refactor to name Collection

* vince's progress

* AsyncCollection progress

* Local PGVector Docker Container

* client methods for sdk except document delete and update

* Vector Support Passing All Test Cases

* Docs Updates

---------

Co-authored-by: vintro <vince@plasticlabs.ai>

---------

Co-authored-by: hyusap <paulayush@gmail.com>
Co-authored-by: vintro <vince@plasticlabs.ai>
2024-02-15 09:53:51 -08:00
..
.vscode v0.0.2 (#15) 2024-02-08 11:05:56 -08:00
honcho v0.0.3 (#19) 2024-02-15 09:53:51 -08:00
tests v0.0.3 (#19) 2024-02-15 09:53:51 -08:00
CHANGELOG.md v0.0.3 (#19) 2024-02-15 09:53:51 -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 v0.0.2 (#15) 2024-02-08 11:05:56 -08:00
pyproject.toml v0.0.3 (#19) 2024-02-15 09:53:51 -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