Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.21 KB

README.md

File metadata and controls

44 lines (27 loc) · 1.21 KB

hive-agent-client-py

Client library to interact with Hive Agents.

Project Requirements

  • Python 3.6 or higher

Setup

To use the HiveAgentClient library, you first need to ensure that you have Python installed on your system and then install the required dependencies.

  1. Install Python

    Make sure you have Python 3.6 or higher installed on your system. You can download Python from the official website.

  2. Install Dependencies

    $ pip install -r requirements.txt

Usage

To use the HiveAgentClient library in your project, you need to import the HiveAgentClient class from the library and then create an instance of the class with the appropriate configuration.

from hive_agent_client import HiveAgentClient

# initialize the client with the base URL of your Hive Agent's chat API
client = HiveAgentClient(base_url="http://localhost:8000", timeout=30)

# send a message and receive the response
try:
    response = client.chat("Hello, Hive Agent!")
    print(response)
except Exception as e:
    print(f"an error occurred: {e}")

Tutorial

The complete tutorial can be found at ./tutorial.md.

Learn More

https://hivenetwork.ai