Back to Spring Ai Alibaba

ReAct Agent Example

examples/chatbot/README.md

1.1.2.2966 B
Original Source

ReAct Agent Example

This example showcases basic ReactAgent usage in Spring AI Alibaba.

Quick Start

Prerequisites

  • Requires JDK 17+.
  • Choose your LLM provider and get the API-KEY.
shell
export AI_DASHSCOPE_API_KEY=your-api-key

Run the ChatBot

  1. Download the code.
shell
git clone https://github.com/alibaba/spring-ai-alibaba.git
cd spring-ai-alibaba
  1. Start the ChatBot.
shell
# Run from repository root.
./mvnw -pl examples/chatbot spring-boot:run
  1. Chat with ChatBot. Open the browser and visit http://localhost:8080/chatui/index.html to chat with the ChatBot.
<p align="center"> </p>

More Examples

Check spring-ai-alibaba-examples for more sophisticated examples.