Uses of Class
com.tnsai.parser.ParseResult
Packages that use ParseResult
-
Uses of ParseResult in com.tnsai.parser
Methods in com.tnsai.parser that return ParseResultModifier and TypeMethodDescriptionstatic <T> ParseResult<T> Creates a failed parse result.<U> ParseResult<U> ParseResult.flatMap(Function<? super T, ParseResult<U>> mapper) Flat maps the successful value to a new ParseResult.Performs the given action if this is a failure result.Performs the given action if this is a success result.<U> ParseResult<U> Maps the successful value to a new type.Parses the raw LLM output into the target type.RetryableParser.parseWithRetry(String initialOutput, Function<String, String> llmFunction) Parses with automatic retry using the provided LLM function.static <T> ParseResult<T> ParseResult.success(T value) Creates a successful parse result with default timing.static <T> ParseResult<T> Creates a successful parse result.static <T> ParseResult<T> ParseResult.validationFailure(String error, List<String> validationErrors, String rawOutput) Creates a failed parse result with validation errors.Method parameters in com.tnsai.parser with type arguments of type ParseResultModifier and TypeMethodDescription<U> ParseResult<U> ParseResult.flatMap(Function<? super T, ParseResult<U>> mapper) Flat maps the successful value to a new ParseResult.