Loading Events

« All Events

  • This event has passed.

7 PM – AI Agent – Joel (Gamas Sub)

November 12 @ 7:00 pm - 8:00 pm
Today We Did
  1. We learned how to force AI to return in JSON format.
  2. We learned about JSON
  3. We learned how to use Python json parser.
Homework
  1. Modify app.py so it will parse the json string and get the outcome.
    1. if outcome is equal to DEAD display Snow Flake in streamlit. You need to research how to do this in Streamlit.
    2. if outcome is equal to ALIVE display Balloon in streamlit.
  2. Modify spaceship_game.py
    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 AI_JUDGE_SCHEMA, you need to create PERSON_SCHEMA and pass this to the AI.

Details

  • Date: November 12
  • Time:
    7:00 pm - 8:00 pm