mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 09:16:21 +02:00
use memory index to get the last user message
This commit is contained in:
parent
5d21d255e4
commit
d077cd0b2f
4 changed files with 16 additions and 27 deletions
|
|
@ -415,9 +415,6 @@ class Message(BaseModel):
|
|||
def is_ai_message(self) -> bool:
|
||||
return self.role == "assistant"
|
||||
|
||||
def is_real_user_message(self) -> bool:
|
||||
return self.is_user_message() and "UserRequirement" in self.cause_by
|
||||
|
||||
|
||||
class UserMessage(Message):
|
||||
"""便于支持OpenAI的消息
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue