Invoke the retriever to get relevant documents.
Asynchronously invoke the retriever to get relevant documents.
Parse the result of an LLM call to a JSON object.
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.
Return True as this class is serializable.
Get the namespace of the LangChain object.
Return a unique identifier for this class for serialization purposes.
Convert the graph to a JSON-serializable format.
Serialize a "not implemented" object.
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.