forked from Archives/langchain
blob42
55e0e2d6ac
- A type of parser where many strategies can be tried before exception - A strategy is a tuple like class of (parser, predicate, name=None) - Strategies are tried if predicate is True - Strategies are tried in order, allows for fallbacks - Base interface allows existing parsers to use multiple strategies - New strategies can be added for new output errors and covered by tests |
||
---|---|---|
.. | ||
bare_json | ||
bare_json_embed_code_block | ||
ignored_format_instructions | ||
json_nested_code_block |