Package com.embabel.agent.api.tool
Class TypeBasedInputSchema
-
- All Implemented Interfaces:
-
com.embabel.agent.api.tool.Tool.InputSchema
public final class TypeBasedInputSchema implements Tool.InputSchema
InputSchema implementation that generates JSON schema from a Class type. Uses reflection to extract properties and their types.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<Tool.Parameter>parameters
-
Constructor Summary
Constructors Constructor Description TypeBasedInputSchema(Class<?> type)
-
Method Summary
Modifier and Type Method Description List<Tool.Parameter>getParameters()Parameter definitions StringtoJsonSchema()JSON Schema representation for LLM consumption final static TypeBasedInputSchemaof(Class<?> type)final static TypeBasedInputSchemaof(KClass<?> type)-
-
Constructor Detail
-
TypeBasedInputSchema
TypeBasedInputSchema(Class<?> type)
-
-
Method Detail
-
getParameters
List<Tool.Parameter> getParameters()
Parameter definitions
-
toJsonSchema
String toJsonSchema()
JSON Schema representation for LLM consumption
-
of
final static TypeBasedInputSchema of(Class<?> type)
-
of
final static TypeBasedInputSchema of(KClass<?> type)
-
-
-
-