You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/langchain/output_parsers/multi_strategy
blob42 55e0e2d6ac feat: add MultiStrategy output parser
- 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
11 months ago
..
__init__.py feat: add MultiStrategy output parser 11 months ago
agent.py feat: add MultiStrategy output parser 11 months ago
base.py feat: add MultiStrategy output parser 11 months ago
strategies.py feat: add MultiStrategy output parser 11 months ago