Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Enhancement // strategy is now a module, not function capture #12

Merged
merged 3 commits into from
Mar 8, 2024

Conversation

stuartjohnpage
Copy link
Collaborator

@stuartjohnpage stuartjohnpage commented Mar 8, 2024

connects to #11

Overview

Refactors the code to use a module which implements the TextChunker.ChunkerBehaviour, instead of a function captures, for the :strategy option.

This would be a breaking change for anyone passing in their own strategy - however, there is only one strategy to choose from at the moment, so I think it's fine 👍

@stuartjohnpage stuartjohnpage self-assigned this Mar 8, 2024
Copy link
Member

@lukeledet lukeledet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good behaviour behavior 👍

Copy link

@grossvogel grossvogel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@stuartjohnpage stuartjohnpage merged commit e785e4b into main Mar 8, 2024
1 check passed
@stuartjohnpage stuartjohnpage deleted the 11-api-design branch March 8, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants