feat: enhance context management with component registration and RPC function handling

This commit is contained in:
Soulter
2025-11-11 20:22:13 +08:00
parent 8b34403587
commit 363fda5a69
10 changed files with 215 additions and 43 deletions

View File

@@ -11,4 +11,4 @@ class HelloCommand(CommandComponent):
async def hello(self, event: AstrMessageEvent):
ret = await self.context.conversation_manager.new_conversation("hello")
print(f"New conversation created: {ret}")
yield event.plain_result("Hello, Astrbot!")
yield event.plain_result(f"Hello, Astrbot! Created conversation ID: {ret}")