mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
ObjectNodeMetadata add obj field
This commit is contained in:
parent
63a3a760e9
commit
4712b2136b
1 changed files with 1 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ class ObjectNodeMetadata(BaseModel):
|
|||
"""Metadata of ObjectNode."""
|
||||
|
||||
is_obj: bool = Field(default=True)
|
||||
obj: Any = Field(default=None, description="When retrieve, will reconstruct obj from obj_dict")
|
||||
obj_dict: dict = Field(..., description="Inplement rag.interface.RAGObject.model_dump(), e.g. obj.model_dump()")
|
||||
obj_cls_name: str = Field(..., description="The class name of object, e.g. obj.__class__.__name__")
|
||||
obj_mod_name: str = Field(..., description="The module name of class, e.g. obj.__class__.__module__")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue