This agent uses the Hive Agent Kit along with various tools to answer questions.
Join our Discord community for support and discussion.
- Python >= 3.11
- Node >= 20.10.0
-
Create a new file called .env
-
Copy the contents of .env.example into your new .env file
-
API keys for third party tools are not provided.
OPENAI_API_KEY
from OpenAI
You can use other LLMs, in which case you can add a corresponding API key
ANTHROPIC_API_KEY
from AnthropicMISTRAL_API_KEY
from Mistral- Most open source LLMs
-
Create a virtual Python environment
$ python -m venv ./venv
- Activate the Python virtual env.
- Windows:
- In cmd.exe:
venv\Scripts\activate.bat
- In PowerShell:
venv\Scripts\Activate.ps1
- In cmd.exe:
- Unix:
source venv/bin/activate
- Windows:
- Install dependencies.
$ pip install -r requirements.txt
- Clone the hive-agent-ui (Node.js) repo.
- Follow the setup instructions.
- Run it
(venv) $ python main.py
- Test your agent by calling it Chat API endpoint,
/api/chat
, to see the result:
curl --location 'localhost:8000/api/v1/chat' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "user123",
"session_id": "session123",
"chat_data": {
"messages": [
{ "role": "user", "content": "What's going on in Canada right now?" }
]
}
}'
Powered by HiveNetwork.ai.