LanguageModel
Produces structured output for decomposition and rehearsal.
type LanguageModel interface {
GenerateStructured(ctx context.Context, request StructuredRequest) (string, error)
}The request carries a schema name, a JSON schema, an instruction and the subject. bluememo owns the prompts and schemas (DecompositionInstruction, DecompositionSchemaDocument, TriggerInstruction, TriggerSchemaDocument); the host only moves them to a model and returns the JSON it produced.