@@ -1,13 +0,0 @@
-package com.mangoo.rating.recommend.ai.model;
-
-import lombok.*;
-import java.util.List;
-/** 一条对话消息(统一模型,与厂商无关) */
-@Data @Builder @NoArgsConstructor @AllArgsConstructor
-public class ChatMessage {
- private Role role;
- private String content; // 文本
- private List<ToolCall> toolCalls; // 仅 assistant 决定调工具时
- private String toolCallId; // 仅 role=TOOL:对应 ToolCall.id
-}
@@ -1,12 +0,0 @@
-/** 模型一轮调用的结果 */
-public class ChatResult {
- private String stopReason; // "tool_use" | "end_turn"
- private String text; // 本轮文本
- private List<ToolCall> toolCalls;// stopReason=tool_use 时
@@ -1,4 +0,0 @@
-/** 对话角色(模型无关) */
-public enum Role { USER, ASSISTANT, SYSTEM, TOOL }
-/** 流式文本增量回调 */
-public interface StreamCallback { void onTextDelta(String delta); }
@@ -1,11 +0,0 @@
-/** 模型发起的一次工具调用 */
-public class ToolCall {
- private String id; // 工具调用 id(Claude tool_use.id)
- private String name; // 工具名
- private String argumentsJson; // 入参 JSON 字符串
-/** 给模型的工具声明 */
-public class ToolSpec {
- private String name;
- private String description;
- private String inputSchemaJson; // JSON Schema 字符串