Skip to main content

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.

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

Project details


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.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

honcho_ai-0.0.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file honcho_ai-0.0.1.tar.gz.

File metadata

  • Download URL: honcho_ai-0.0.1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.9.7 Darwin/22.3.0

File hashes

Hashes for honcho_ai-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5d6353044ea9055239a1d7ce19dabc885cb1797de24f0d95fbe6b3cd884f1bc0
MD5 3920d2d89cb519524e00d8f080a4c204
BLAKE2b-256 66b1c5b6db8eb7189b93568bab0415d5880831e1eefea300e20c26d88f532f95

See more details on using hashes here.

File details

Details for the file honcho_ai-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: honcho_ai-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.9 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

Hashes for honcho_ai-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17b6594610612e2f187f9b891f37cf11844dd43ebce592caea7de1553d6da5ee
MD5 6c354a98fa465d048a33f9c8c4a68a65
BLAKE2b-256 a05f4613a5d9c21fd42a7b88eb52bb60eb97e19718a323a8e3488e087a409526

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page