Commit Graph

1 Commits (55e0e2d6acc98f61eb1d02756c297c584d6dcad4)

Author SHA1 Message Date
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