American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – AI Agent – Gamas

July 15 @ 6:00 pm - 7:00 pm

Today We Did
  1. We learned how to force the AI to return JSON response text. This way it would easier to parse AI response consistently.
Homework
  1. Inside spaceship_game.py, create a new function, create_a_new_person()
    1. Inside the function ask AI to create a new person every time you call the function, which will return a JSON in the following format
      1. {
            "name": "Gamas",
            "phone": "626-476-3067",
            "age": 49,
            "gender": "male"
        }

         

    2. Call this function inside the __main__ block
    3. 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.
    4. Similar to AI_JUDGE_SCHEMA, you need to create PERSON_SCHEMA and pass this to the AI.

Details

Date:
July 15
Time:
6:00 pm - 7:00 pm