mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-18 13:55:17 +02:00
RAGObject interface add model_dump method; modify by pylint
This commit is contained in:
parent
dd82962937
commit
7eccb48adc
9 changed files with 60 additions and 30 deletions
|
|
@ -92,7 +92,7 @@ class RAGExample:
|
|||
tool: str = "Red Bull Energy Drink"
|
||||
|
||||
def rag_key(self) -> str:
|
||||
return "100m Sprint"
|
||||
return self.goal
|
||||
|
||||
foo = Player(name="foo")
|
||||
question = f"{foo.rag_key()}"
|
||||
|
|
@ -106,7 +106,7 @@ class RAGExample:
|
|||
|
||||
print("[Object Detail]")
|
||||
player: Player = nodes[0].metadata["obj"]
|
||||
print(f"{player.model_dump()}")
|
||||
print(player)
|
||||
|
||||
@staticmethod
|
||||
def _print_title(title):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue