-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat:pipeline plugin factory #12
Conversation
WalkthroughThe changes in this pull request involve significant modifications to the Changes
Possibly related PRs
Suggested labels
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- ovos_adapt/opm.py (7 hunks)
🧰 Additional context used
🔇 Additional comments (8)
ovos_adapt/opm.py (8)
18-19
: Imports updated to include typing hintsThe necessary typing modules
List
,Optional
,Iterable
,Union
, andDict
have been imported to support the type annotations added throughout the code.
20-21
: Added imports for messaging supportImports for
MessageBusClient
andFakeBus
have been added fromovos_bus_client.client
andovos_utils.fakebus
respectively. This change indicates that the pipeline can now handle different types of message buses.
28-28
: Imported required classes for pipeline functionalityThe classes
IntentMatch
andConfidenceMatcherPipeline
have been imported fromovos_plugin_manager.templates.pipeline
to support the new class inheritance and intent matching functionality.
51-51
: Updated base class toConfidenceMatcherPipeline
The
AdaptPipeline
class now inherits fromConfidenceMatcherPipeline
instead ofPipelinePlugin
. This change may affect inherited methods and attributes. Please verify that all necessary functionalities from the previous base class are available or have been appropriately adapted.
54-55
: Constructor updated to acceptbus
parameterThe
__init__
method has been updated to include abus
parameter of typeOptional[Union[MessageBusClient, FakeBus]]
. This allows the class to handle messaging more flexibly. Ensure that thebus
parameter is utilized correctly within the class and that this change aligns with the base class's constructor expectations.
58-58
: Ensured proper initialization of the base classThe call to
super().__init__(bus, config)
passes the new parameters to the base class. Verify thatConfidenceMatcherPipeline
accepts these parameters and initializes as intended.
183-183
: Changedutterances
parameter type inmatch_intent
The
utterances
parameter in thematch_intent
method has been changed fromTuple[str]
toIterable[str]
. This allows for more flexibility in the types of iterables that can be passed to the method.
254-256
: ConstructingIntentMatch
with updated parametersThe
IntentMatch
object is now constructed withmatch_type
,match_data
,skill_id
, andutterance
. Ensure that these parameters align with the expected signature ofIntentMatch
and contain all necessary information.
companion to OpenVoiceOS/ovos-plugin-manager#270
Summary by CodeRabbit
New Features
AdaptPipeline
class for improved messaging system integration.Deprecations