agentscope-ai / agentscope-ai/agentscope-java
[Bug]:使用@Tool定义工具时如果有其他注解无法注册到智能中
未關閉
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 還沒有評估資料。