mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-04 21:32:38 +02:00
feat: add metadata {"agent":xx} to assistant message
This commit is contained in:
parent
db34c6f458
commit
e37aa8e5bf
2 changed files with 4 additions and 1 deletions
|
|
@ -378,6 +378,7 @@ class AIMessage(Message):
|
|||
|
||||
def with_agent(self, name: str):
|
||||
self.add_metadata(key=AGENT, value=name)
|
||||
return self
|
||||
|
||||
@property
|
||||
def agent(self) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue