################ Adding project root to PYTHONPATH ################################
@ -40,7 +36,7 @@ class PersonInfo(BaseModel):
}
"""
name:str=Field(...,title="Name of the person")
agent:int=Field(...,title="Age of the person")
age:int=Field(...,title="Age of the person")
is_student:bool=Field(...,title="Whether the person is a student")
courses:list[str]=Field(
...,title="List of courses the person is taking"
@ -61,7 +57,7 @@ agent = Agent(
)
# Define the task to generate a person's information
task="Generate a person's information"
task="Generate a person's information for Paul Graham 56 years old and is a student at Harvard University and is taking 3 courses: Math, Science, and History."
# Run the agent to generate the person's information