feat(schemas): add folder_id field to AgentBase and Agent schemas
This commit is contained in:
parent
d17f241967
commit
e279b4afa2
@ -78,6 +78,9 @@ class AgentBase(BaseModel):
|
|||||||
agent_card_url: Optional[str] = Field(
|
agent_card_url: Optional[str] = Field(
|
||||||
None, description="Agent card URL (required for a2a type)"
|
None, description="Agent card URL (required for a2a type)"
|
||||||
)
|
)
|
||||||
|
folder_id: Optional[UUID4] = Field(
|
||||||
|
None, description="ID of the folder this agent belongs to"
|
||||||
|
)
|
||||||
config: Any = Field(None, description="Agent configuration based on type")
|
config: Any = Field(None, description="Agent configuration based on type")
|
||||||
|
|
||||||
@validator("name")
|
@validator("name")
|
||||||
@ -182,6 +185,7 @@ class Agent(AgentBase):
|
|||||||
created_at: datetime
|
created_at: datetime
|
||||||
updated_at: Optional[datetime] = None
|
updated_at: Optional[datetime] = None
|
||||||
agent_card_url: Optional[str] = None
|
agent_card_url: Optional[str] = None
|
||||||
|
folder_id: Optional[UUID4] = None
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
from_attributes = True
|
from_attributes = True
|
||||||
|
Loading…
Reference in New Issue
Block a user