File tree Expand file tree Collapse file tree
src/main/java/com/javaaidev/agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 <properties >
1818 <java .version>21</java .version>
1919 <spring-ai .version>1.0.0-M5</spring-ai .version>
20- <chat-agent-ui .version>0.10.0</chat-agent-ui .version>
20+ <chat-agent-ui .version>0.11.0</chat-agent-ui .version>
21+ <llm-agent-spec .version>0.1.0</llm-agent-spec .version>
2122 </properties >
2223 <dependencies >
2324 <dependency >
3536 <version >${chat-agent-ui.version} </version >
3637 </dependency >
3738 <dependency >
38- <groupId >com.javaaidev.chatagentui </groupId >
39+ <groupId >com.javaaidev.llmagentspec </groupId >
3940 <artifactId >spring-ai-adapter</artifactId >
40- <version >${chat -agent-ui .version} </version >
41+ <version >${llm -agent-spec .version} </version >
4142 </dependency >
4243
4344 <dependency >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1313@ Configuration
1414public class AppConfiguration {
1515
16+ public static final String SYSTEM_TEXT = """
17+ You are a chef who is proficient in various cuisines. Please answer users' questions about cooking.
18+ For other unrelated inputs, simply tell the user that you don't know.
19+ """ ;
20+
1621 private static final Duration API_TIMEOUT = Duration .ofMinutes (5 );
1722
1823 @ Bean
Original file line number Diff line number Diff line change 11package com .javaaidev .agent ;
22
3+ import static com .javaaidev .agent .AppConfiguration .SYSTEM_TEXT ;
4+
35import com .javaaidev .chatagent .model .ChatAgentRequest ;
46import com .javaaidev .chatagent .model .ChatAgentResponse ;
57import com .javaaidev .chatagent .springai .ModelAdapter ;
1416
1517@ RestController
1618@ RequestMapping ("/chat_non_streaming" )
17- public class ChatAgentController extends AbstractChatAgentController {
19+ public class ChatAgentController {
1820
1921 private final ChatClient chatClient ;
2022
Original file line number Diff line number Diff line change 11package com .javaaidev .agent ;
22
3+ import static com .javaaidev .agent .AppConfiguration .SYSTEM_TEXT ;
4+
35import com .javaaidev .chatagent .model .ChatAgentRequest ;
46import com .javaaidev .chatagent .model .ChatAgentResponse ;
57import com .javaaidev .chatagent .springai .ModelAdapter ;
1517
1618@ RestController
1719@ RequestMapping ("/chat" )
18- public class ChatAgentStreamingController extends AbstractChatAgentController {
20+ public class ChatAgentStreamingController {
1921
2022 private final ChatClient chatClient ;
2123
You can’t perform that action at this time.
0 commit comments