BaseOutputParser<ParserInput extends Object?, CallOptions extends OutputParserOptions, ParserOutput extends Object?> class abstract

Class to parse the output of a Runnable invocation.

Inheritance
  • Object
  • Runnable<ParserInput, CallOptions, ParserOutput>
  • BaseOutputParser
Implementers

Constructors

BaseOutputParser({required CallOptions defaultOptions})
Class to parse the output of a Runnable invocation.
const

Properties

defaultOptions → CallOptions
The default options to use when invoking the Runnable.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

batch(List<ParserInput> inputs, {List<CallOptions>? options}) Future<List<ParserOutput>>
Batches the invocation of the Runnable on the given inputs.
inherited
bind(CallOptions options) RunnableBinding<ParserInput, CallOptions, ParserOutput>
Binds the Runnable to the given options.
inherited
close() → void
Cleans up any resources associated with it the Runnable.
inherited
getCompatibleOptions(RunnableOptions? options) → CallOptions?
Returns the given options if they are compatible with the Runnable, otherwise returns null.
inherited
invoke(ParserInput input, {CallOptions? options}) Future<ParserOutput>
Invokes the output parser on the given input.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pipe<NewRunOutput extends Object?, NewCallOptions extends RunnableOptions>(Runnable<ParserOutput, NewCallOptions, NewRunOutput> next) RunnableSequence<ParserInput, NewRunOutput>
Pipes the output of this Runnable into another Runnable using a RunnableSequence.
inherited
stream(ParserInput input, {CallOptions? options}) Stream<ParserOutput>
Streams the output of invoking the Runnable on the given input.
inherited
streamFromInputStream(Stream<ParserInput> inputStream, {CallOptions? options}) Stream<ParserOutput>
Streams the output of invoking the Runnable on the given inputStream.
inherited
toString() String
A string representation of this object.
inherited
withFallbacks(List<Runnable<ParserInput, RunnableOptions, ParserOutput>> fallbacks) RunnableWithFallback<ParserInput, ParserOutput>
Adds fallback runnables to be invoked if the primary runnable fails.
inherited
withRetry({int maxRetries = 3, FutureOr<bool> retryIf(Object e)?, List<Duration?>? delayDurations, bool addJitter = false}) RunnableRetry<ParserInput, ParserOutput>
Adds retry logic to an existing runnable.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited