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 and find the SDK reference 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 Honcho

app_name = str(uuid4())
honcho = Honcho(app_name=app_name)
honcho.initialize()
user_name = "test"
user = honcho.create_user(user_name)
session = user.create_session()


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

Uploaded Source

Built Distribution

honcho_ai-0.0.6-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for honcho_ai-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ec9c699c87496807cfe997a659f642dd95861160262775a14bfd6bc6f82f5abd
MD5 f385eefece4f273ffa8b4661b1fde62f
BLAKE2b-256 62cd5f41c903b06a959a2f66364ecad15eb4579ef1e307a0fade8bc0477af76c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: honcho_ai-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 29.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.9.7 Darwin/23.4.0

File hashes

Hashes for honcho_ai-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7b6b9d062430fbeb5d311c9a272ea878f5cc8ab2feb4722b319fbe610019bce8
MD5 ae919f2cc5e47d1b99dc2aa67c12fb31
BLAKE2b-256 0d4d69b82f66caadbd126077aeb80cd7e803b665b3eee8f54bdb5c97a2cd9685

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