mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
refactor: brain memory
This commit is contained in:
parent
1b71081c74
commit
2c3ab2fae4
1 changed files with 0 additions and 12 deletions
|
|
@ -14,15 +14,3 @@ class MetaGPTLLMAPI(OpenAIGPTAPI):
|
|||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
||||
async def get_summary(self, memory, max_words=200, keep_language: bool = False, **kwargs) -> str:
|
||||
"""
|
||||
Return string in the following format:
|
||||
[
|
||||
{"role": "system", "content": "You are a helpful assistant."},
|
||||
{"role": "user", "content": "Knock knock."},
|
||||
{"role": "assistant", "content": "Who's there?"},
|
||||
{"role": "user", "content": "Orange."},
|
||||
]
|
||||
"""
|
||||
return memory.dumps_raw_messages(max_length=max_words)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue