Feat v1.5.2 已经发布,高性能 Java Web 服务框架。
Feat v1.5.2 Release Notes
What's New
Feat AI: Enhanced Hook Mechanism for Observable AI Agents
We've significantly upgraded the Hook interface with three new streaming response methods, making AI Agent reasoning processes visible, observable, and interactive.
New Hook Methods
onModelReasoning(String) - Capture the model's "inner monologue" (e.g., DeepSeek-R1's reasoning_content)
onAgentReasoning(String) - Capture the ReAct agent's step-by-step thinking process
onFinalAnswer(String) - Receive the final answer content
Why This Matters
When using reasoning models like DeepSeek-R1, users want to see AI's thought process without waiting for the complete response. v1.5.2 solves this by separating reasoning and final answers in real-time.
Quick Example
ReActAgent agent = new ReActAgent(opts -> {
opts.hook(new Hook() {
@Override
public void onModelReasoning(String reasoning) {
// Show deep thinking indicator
System.out.println(" Deep reasoning: " + reasoning);
}
@Override
public void onAgentReasoning(String reasoning) {
// Show step-by-step analysis
System.out.println(" Analyzing: " + reasoning);
}
@Override
public void onFinalAnswer(String answer) {
// Display final result
System.out.println("✅ Answer: " + answer);
}
});
});
New AI-Powered Website Design
The official website homepage has been completely redesigned with:
- Dynamic gradient backgrounds with flowing light orbs
- Terminal-style code showcase with live editor effects
- F-E-A-T feature cards highlighting:
- Free - Open source freedom
- Elastic - Auto-scaling capabilities
- Advanced - Cutting-edge technology
- Tiny - Lightweight and fast
- Fully responsive design from desktop to mobile
Installation
Maven
<dependency>
<groupId>tech.smartboot.feat</groupId>
<artifactId>feat-core</artifactId>
<version>1.5.2</version>
</dependency>
<dependency>
<groupId>tech.smartboot.feat</groupId>
<artifactId>feat-cloud-starter</artifactId>
<version>1.5.2</version>
</dependency>
<dependency>
<groupId>tech.smartboot.feat</groupId>
<artifactId>feat-ai</artifactId>
<version>1.5.2</version>
</dependency>
详情查看:https://gitee.com/smartboot/feat/releases/v1.5.2