Object TypeSchemaExtractor
-
- All Implemented Interfaces:
public class TypeSchemaExtractorExtracts type schema information for supervisor prompts.
This helps the LLM understand what each action produces and what artifacts are available, enabling informed composition decisions without strict type-based constraints.
-
-
Field Summary
Fields Modifier and Type Field Description public final static TypeSchemaExtractorINSTANCE
-
Method Summary
Modifier and Type Method Description final static StringextractSchema(String typeName)Extract a human-readable schema description for a type. final static StringextractSchema(KClass<?> klass)Extract schema from a Kotlin class. final static StringbuildActionSignature(Action action)Build action signature with schema info for the LLM. final static StringbuildArtifactsSummary(Blackboard blackboard, ObjectMapper objectMapper, Integer maxValueLength)Build a summary of current artifacts on the blackboard. -
-
Method Detail
-
extractSchema
final static String extractSchema(String typeName)
Extract a human-readable schema description for a type. Shows field names and their types.
-
extractSchema
final static String extractSchema(KClass<?> klass)
Extract schema from a Kotlin class.
-
buildActionSignature
final static String buildActionSignature(Action action)
Build action signature with schema info for the LLM.
-
buildArtifactsSummary
final static String buildArtifactsSummary(Blackboard blackboard, ObjectMapper objectMapper, Integer maxValueLength)
Build a summary of current artifacts on the blackboard.
-
-
-
-