backboard and function test

This commit is contained in:
CakeCN
2025-09-11 21:19:33 +08:00
parent f6a2e3dce9
commit 3c38f510fa
3 changed files with 16 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ class ChatManager:
self.raw_score_prompts = raw_score_prompts
self.chapter_chain = load_chapters(raw_markdown, raw_markdown_prompts, raw_score_prompts)
self.function_manager = FunctionManager()
self.bb = None
def next_chapter(self):
assert self.chapter_chain_now + 1 < len(self.chapter_chain), "chapter_chain_now out of range"
@@ -46,6 +46,8 @@ class ChatManager:
self.chapter_chain[chapter_index].Focus()
self.ase_client.loadmarkdown(self.chapter_chain[chapter_index].chapter, self.chapter_chain[chapter_index].chapter_prompt, self.chapter_chain[chapter_index].score_prompt)
def upload_bb(self):
self.ase_client.send_text('backboard-in', self.bb.get_info_prompt())
def message_pass(self, messagetype, message):
print("message_pass", self.user_uuid, messagetype, message)