Fix scaffold errors and apply ToolHint annotations
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 33s
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 33s
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
package io.shinhanlife.dap.mcc.biz.sms.dto;
|
||||
|
||||
|
||||
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import org.springframework.ai.mcp.annotation.McpToolParam;
|
||||
import lombok.Builder;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
||||
import io.shinhanlife.dap.lib.annotation.McpParameter;
|
||||
import io.shinhanlife.dap.lib.annotation.McpValidation;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@@ -30,12 +33,13 @@ import lombok.Setter;
|
||||
@AllArgsConstructor
|
||||
public class SmsSendRequest {
|
||||
|
||||
@McpParameter(description = "수신자 전화번호", required = true)
|
||||
@McpValidation(pattern = "^01[0-9]-?\\d{3,4}-?\\d{4}$", examples = {"01012345678"})
|
||||
@McpToolParam(description = "수신자 전화번호", required = true)
|
||||
@Schema(pattern = "^01[0-9]-?\\d{3,4}-?\\d{4}$", example = "01012345678")
|
||||
private String phoneNumber;
|
||||
|
||||
@McpParameter(description = "전송할 메시지 내용", required = true)
|
||||
@McpValidation(pattern = "\\S", examples = {"테스트 메시지입니다."})
|
||||
|
||||
@McpToolParam(description = "전송할 메시지 내용", required = true)
|
||||
@Schema(pattern = "\\S", example = "테스트 메시지입니다.")
|
||||
private String message;
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
package io.shinhanlife.dap.mcc.biz.sms.usecase;
|
||||
|
||||
import io.shinhanlife.dap.lib.annotation.McpTool;
|
||||
import io.shinhanlife.dap.lib.annotation.McpFunction;
|
||||
import org.springframework.ai.mcp.annotation.McpTool;
|
||||
import io.shinhanlife.dap.lib.annotation.ToolHint;
|
||||
import io.shinhanlife.dap.mcc.biz.sms.dto.*;
|
||||
|
||||
@McpTool(routingType = "EAI", categoryKey = "notification")
|
||||
public interface SmsToolUseCase {
|
||||
@McpTool(name = "sms.send", title = "SMS 발송 툴", description = "SMS 발송 기능을 제공합니다.")
|
||||
@ToolHint(register = false, categoryKey = "notification", mappingId = "SMS_SEND")
|
||||
Object sendSms(SmsSendRequest req);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user