American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – AI Agent – Gamas

April 27 @ 7:00 pm - 8:00 pm

Today We Did
  1. We made survive_or_not_survive function
  2. We learned, we have to include the scenario when asking ai to evaluate the survival strategy.
  3. We learned how to force AI to response in JSON format.
  4. We learned how to use Python JSON built-in library.
Homework
  1. Create a new function, create_a_new_person()
    1. Inside the function ask AI to create a new person every 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. 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.
    3. Similar to JUDGE_SCHEMA, you need to create PERSON_SCHEMA and pass this to the AI.
  2. Call the function from the main.

Details

Date:
April 27
Time:
7:00 pm - 8:00 pm