added pydantic base model for Agent and Skill

pull/380/head
evelynmitchell 1 year ago
parent 5970c9babc
commit 8d3df0592f

@ -155,3 +155,12 @@ class Step(StepRequestBody):
False, False,
description="Whether this is the last step in the task.", description="Whether this is the last step in the task.",
) )
class Skill(BaseModel):
name: str
level: int
class Agent(BaseModel):
name: str
age: int
skills: List[Skill]
Loading…
Cancel
Save