Optional
callbacksOptional set of callbacks for outline lifecycle events. Allows customization of attempt, document, and validation handling.
The name of the completion for JSON
Optional
docOptional description for documentation purposes. Aids in understanding the purpose or behavior of the outline.
The format/schema definition for the outline data. Specifies the expected structure, required fields, and property metadata for validation and documentation.
Optional
maxOptional maximum number of attempts for the outline operation. Limits the number of retries if validations fail.
The unique name of the outline within the system. Identifies the specific outline configuration.
The prompt used to initiate the outline operation. Can be a static string or a function that generates the prompt dynamically based on the outline name. If a function is provided, it may return a string or a Promise resolving to a string. This prompt is typically sent to the completion engine or model to guide the generation process.
Optional
systemThe system prompt(s) provided to the language model for the outline operation. Can be a static array of strings or a function that generates the system prompts dynamically based on the outline name. These prompts are typically used to set context, instructions, or constraints for the model before user or assistant messages.
Optional
validationsArray of validation functions or configurations to apply to the outline data. Supports both direct validation functions and structured validation configurations.
Interface representing the schema for configuring an outline operation. Defines the structure and behavior of an outline, including data generation and validation.