Structs§
- Boolean
Output Parser - Parses yes/no, true/false, y/n style responses into a boolean.
- Enum
Output Parser - Validates that the trimmed input matches one of the allowed enum values.
- Json
Output Parser - Parses a string as JSON, returning a
serde_json::Value. - List
Output Parser - Parses a string into a list of strings by splitting on the configured separator.
- Markdown
List Output Parser - Parses markdown-formatted lists (both
- itemand* item). - Numbered
List Output Parser - Parses numbered lists like
1. item,2. item. - Output
Fixing Parser - A parser that uses an LLM to fix outputs that fail to parse.
- Retry
Output Parser - A parser that uses an LLM to fix outputs that fail to parse, including the original prompt context for better correction.
- StrOutput
Parser - Extracts the text content from a Message.
- Structured
Output Parser - Parses a JSON string and deserializes it into type
T. - XmlElement
- Represents a parsed XML element.
- XmlOutput
Parser - Parses XML-formatted LLM output into an
XmlElementtree.
Enums§
- List
Separator - Separator used to split the input into a list.
Traits§
- Format
Instructions - Trait for parsers that can provide format instructions to include in prompts.