Metadata-Version: 2.4
Name: llama-index-packs-gradio-react-agent-chatbot
Version: 0.3.1
Summary: llama-index packs gradio_react_agent_chatbot integration
Author-email: Your Name <you@example.com>
Maintainer: nerdai
License-Expression: MIT
License-File: LICENSE
Keywords: chatbot,gradio,react-agent,tools
Requires-Python: <4.0,>=3.9
Requires-Dist: llama-index-core<0.13,>=0.12.0
Requires-Dist: llama-index-llms-openai<0.5,>=0.4.0
Requires-Dist: llama-index-tools-arxiv<0.4,>=0.3.0
Requires-Dist: llama-index-tools-wikipedia<0.4,>=0.3.0
Description-Content-Type: text/markdown

# Gradio ReActAgent Chatbot Pack

Create a ReActAgent Chatbot equipped with two LlamaHub tools, namely:
[ArxivToolSpec](https://llamahub.ai/l/tools-arxiv) and Wikipedia tool and
[WikipediaToolSpec](https://llamahub.ai/l/tools-wikipedia).

This pack's Gradio app is built using Gradio `Blocks`. User messages are submitted
via a `TextBox` Block, which are then handled by a LlamaIndex `ReActAgent` to generate a
response (calling required tools). The result is then sent to a `Chatbot` Block —
additionally the agent's thoughts are captured in an `HTML` Block.

## CLI Usage

You can download llamapacks directly using `llamaindex-cli`, which comes installed with the `llama-index` python package:

```bash
llamaindex-cli download-llamapack GradioReActAgentPack --download-dir ./gradio_react_agent_chatbot
```

You can then inspect the files at `./gradio_react_agent_chatbot` and use them as a template for your own project!

To run the app directly, use in your terminal:

```bash
export OPENAI_API_KEY="sk-...
python ./gradio_react_agent_pack/base.py
```
