refactor: update component registration method in Context class to use private method

This commit is contained in:
Soulter
2025-11-27 16:47:57 +08:00
parent 9e6888201a
commit 21a7e742f1
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ class Context(BaseContext):
super().__init__()
self.conversation_manager = conversation_manager
# Auto-register the conversation manager
self.register_component(self.conversation_manager)
self._register_component(self.conversation_manager)
@classmethod
def default_context(cls, runner: StarRunner) -> Context:

View File

@@ -27,7 +27,7 @@ class TestContext(Context):
def __init__(self, conversation_manager: ConversationManager):
super().__init__()
self.conversation_manager = conversation_manager
self.register_component(self.conversation_manager)
self._register_component(self.conversation_manager)
async def amain():