File tree Expand file tree Collapse file tree
agentscope-core/src/test/java/io/agentscope/core/tool Expand file tree Collapse file tree Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments