TypeSchemaExtractor

Extracts 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.

Functions

Link copied to clipboard

Build action signature with schema info for the LLM.

Link copied to clipboard
fun buildArtifactsSummary(blackboard: Blackboard, objectMapper: <Error class: unknown class>, maxValueLength: Int = 500): String

Build a summary of current artifacts on the blackboard.

Link copied to clipboard
fun extractSchema(typeName: String): String

Extract a human-readable schema description for a type. Shows field names and their types.

fun extractSchema(klass: KClass<*>): String

Extract schema from a Kotlin class.