Removed list_messages method from thread (#564)

This commit is contained in:
Dmytro Struk
2025-08-29 15:51:52 -07:00
committed by GitHub
Unverified
parent a80db062b2
commit 2037e533b3
8 changed files with 16 additions and 33 deletions
@@ -632,7 +632,8 @@ class ChatClientAgent(AgentBase):
messages: list[ChatMessage] = []
if self.instructions:
messages.append(ChatMessage(role=ChatRole.SYSTEM, text=self.instructions))
messages.extend(await thread.list_messages() or [])
if thread.message_store:
messages.extend(await thread.message_store.list_messages() or [])
messages.extend(input_messages or [])
return thread, messages