Skip to content

Commit ded0ff1

Browse files
authored
fix(ut): Fix ToolkitTest (#454)
1 parent ec4d74a commit ded0ff1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

agentscope-core/src/test/java/io/agentscope/core/tool/ToolkitTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ void testParseConverterFromAnnotation_CustomConverter() {
835835
ToolUseBlock.builder()
836836
.name("tool_with_custom_converter")
837837
.input(Map.of("input", "test"))
838+
.content(JsonUtils.getJsonCodec().toJson(Map.of("input", "test")))
838839
.build();
839840

840841
ToolResultBlock result =
@@ -863,6 +864,7 @@ void testParseConverterFromAnnotation_DefaultConverter() {
863864
ToolUseBlock.builder()
864865
.name("tool_with_default_converter")
865866
.input(Map.of("input", "test"))
867+
.content(JsonUtils.getJsonCodec().toJson(Map.of("input", "test")))
866868
.build();
867869

868870
ToolResultBlock result =
@@ -927,6 +929,7 @@ void testInstantiateConverter_WithNoArgConstructor() {
927929
ToolUseBlock.builder()
928930
.name("tool_with_custom_converter")
929931
.input(Map.of("input", "validation"))
932+
.content(JsonUtils.getJsonCodec().toJson(Map.of("input", "validation")))
930933
.build();
931934

932935
ToolResultBlock result =

0 commit comments

Comments
 (0)