agentscope-ai / agentscope-ai/agentscope-java
[Bug]:使用@Tool定义工具时如果有其他注解无法注册到智能中
Open
area/core/tool
bug
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 1.3k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 77
Description
@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是自定义注解
Contributor guide
Assessment
This issue has not been assessed yet.