mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-30 11:26:23 +02:00
feat: + comments
This commit is contained in:
parent
fc06cc3b1f
commit
1ec7a9d969
1 changed files with 13 additions and 0 deletions
|
|
@ -322,6 +322,19 @@ class Message(BaseModel):
|
|||
return None
|
||||
|
||||
async def parse_resources(self, llm: "BaseLLM", key_descriptions: Dict[str, str] = None) -> Dict:
|
||||
"""
|
||||
`parse_resources` corresponds to the in-context adaptation capability of the input of the atomic action,
|
||||
which will be migrated to the context builder later.
|
||||
|
||||
Args:
|
||||
llm (BaseLLM): The instance of the BaseLLM class.
|
||||
key_descriptions (Dict[str, str], optional): A dictionary containing descriptions for each key,
|
||||
if provided. Defaults to None.
|
||||
|
||||
Returns:
|
||||
Dict: A dictionary containing parsed resources.
|
||||
|
||||
"""
|
||||
if not self.content:
|
||||
return {}
|
||||
content = f"## Original Requirement\n```text\n{self.content}\n```\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue