Generate structured output from a prompt. Used by chat() for response+appraisal extraction, and by generatePersona().
System prompt, context, and history
JSON Schema or Zod schema for structured output
User message
Parsed structured output matching the schema
Generate plain text from a prompt. Used for reflection and other free-form text generation.
System prompt and context
User prompt text
Generated text string
LLM Adapter interface for molroo SDK.
Abstracts text generation so consumers can: