agentscope-ai / agentscope-ai/agentscope-java

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

Open
#626 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.