agentscope-ai / agentscope-ai/agentscope-java

[Bug]:使用@Tool定义工具时如果有其他注解无法注册到智能中

未關閉
#626 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area/core/tool bug
主要語言
Java
星號
5.6k
分支
1.3k
平均合併
4 天 12 小時
30 天內合併 PR
77

描述

@SaveToolResult
@Tool(name = "countCaseWall", description = "统计案例总数,返回案例总数,开始时间和结束时间的时间格式必须为yyyy-MM-dd HH:mm:ss")
public String countCaseWall(@ToolParam(name = "startTime", description = "开始时间", required = false) String startTime,
@ToolParam (name = "endTime", description = "结束时间", required = false)String endTime,
ToolExecutionContext toolContext) {
return "案例总数:" + caseWallService.countCaseWall(startTime,endTime);
}
@SaveToolResult是自定义注解

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。