Return the input type for the parser.
Parse a list of candidate model Generation objects into a specific format.
Parse a list of candidate model Generation objects into a specific format.
Async parse a single string model output into some structure.
Parse the output of an LLM call with the input prompt for context.
Return dictionary representation of output parser.
The name of the Runnable. Used for debugging and tracing.
Input type.
Output Type.
The type of input this Runnable accepts specified as a Pydantic model.
Output schema.
List configurable fields for this Runnable.
Get the name of the Runnable.
Get a Pydantic model that can be used to validate input to the Runnable.
Get a JSON schema that represents the input to the Runnable.
Get a Pydantic model that can be used to validate output to the Runnable.
Parser to use for XML parsing.
Can be either 'defusedxml' or 'xml'.
'defusedxml' is the default parser and is used to prevent XML vulnerabilities
present in some distributions of Python's standard library xml. defusedxml is
a wrapper around the standard library parser that sets up the parser with secure
defaults.'xml' is the standard library parser.Use xml only if you are sure that your distribution of the standard library is
not vulnerable to XML vulnerabilities.
Review the following resources for more information:
The standard library relies on libexpat
for parsing XML.
Parse an output using xml format.
Returns a dictionary of tags.
Get a JSON schema that represents the output of the Runnable.