Package com.tnsai.parser
package com.tnsai.parser
LLM output parsing with retry and validation support.
-
ClassDescriptionOutput parser that supports multiple formats (JSON, YAML, TOON, TONL).Builder for FormatAwareOutputParser with fluent API.JSON-based output parser that converts LLM JSON output into Java objects.Builder for JsonOutputParser.OutputParser<T>Type-safe output parser interface for parsing LLM responses into structured Java objects.Validates parsed output objects against field constraints.Specifies maximum numeric value.Specifies maximum string length.Specifies minimum numeric value.Specifies minimum string length.Marks a field as must not be empty.Specifies a regex pattern for string validation.Marks a field as required (must not be null).Specifies size constraints for collections, arrays, or strings.Exception thrown when LLM output cannot be parsed into the expected type.ParseResult<T>Result of a parsing operation, containing either a successfully parsed value or error details.Wrapper that adds retry-with-error-correction capability to any OutputParser.Builder for RetryableParser.Record of a single parse attempt.