Skip to content

Commit 088debf

Browse files
committed
fix(agent): hoist structured output defs to tool root
1 parent 8b2f451 commit 088debf

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

agentscope-core/src/main/java/io/agentscope/core/agent/StructuredOutputCapableAgent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,4 +342,4 @@ private Msg mergeCollectedMetadata(Msg msg, ChatUsage chatUsage, ThinkingBlock t
342342
.timestamp(msg.getTimestamp())
343343
.build();
344344
}
345-
}
345+
}

agentscope-core/src/main/java/io/agentscope/core/tool/ToolSchemaGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,4 @@ private static class ParameterInfo {
138138
this.required = required;
139139
}
140140
}
141-
}
141+
}

agentscope-core/src/main/java/io/agentscope/core/util/JsonSchemaUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ public static <T> T convertToObject(Object data, Class<T> targetClass) {
162162
throw new RuntimeException("Failed to convert metadata to " + targetClass.getName(), e);
163163
}
164164
}
165-
}
165+
}

agentscope-core/src/test/java/io/agentscope/core/agent/StructuredOutputDynamicDefineTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,4 @@ private static MockModel getMockModel() {
241241
});
242242
return mockModel;
243243
}
244-
}
244+
}

agentscope-core/src/test/java/io/agentscope/core/util/JsonSchemaUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@ void testGenerateSchemaFromType() {
156156
assertNotNull(mapSchema);
157157
assertEquals("object", mapSchema.get("type"));
158158
}
159-
}
159+
}

0 commit comments

Comments
 (0)