
- This event has passed.
7 PM – AI Agent – Gamas
April 27 @ 7:00 pm - 8:00 pm
Today We Did
- We made survive_or_not_survive function
- We learned, we have to include the scenario when asking ai to evaluate the survival strategy.
- We learned how to force AI to response in JSON format.
- We learned how to use Python JSON built-in library.
Homework
- Create a new function, create_a_new_person()
- Inside the function ask AI to create a new person every you call the function, which will return a JSON in the following format
{ "name": "Gamas", "phone": "626-476-3067", "age": 49, "gender": "male" }
- If the age is between 13 and 19 then said “Gamas you are a teenager with phone number of 626-476-3067”. If not then just say “Gamas your phone number is 626-476-3067.
- Similar to JUDGE_SCHEMA, you need to create PERSON_SCHEMA and pass this to the AI.
- Inside the function ask AI to create a new person every you call the function, which will return a JSON in the following format
- Call the function from the main.