On June 4, 2026, the curriculum transitioned from local scripts to network-connected architectures. We demystified APIs, request/response cycles, and JSON data formats.

1. Understanding APIs & Network Requests

We explored APIs (Application Programming Interfaces) as standardized protocol messengers enabling decoupled software systems to communicate. We compared the client-server request/response cycle to a restaurant, where the customer acts as the client, the waiter as the API gateway, the kitchen as the backend database, and the food as the delivered payload.

2. JSON Serialization & Schema Design

We analyzed JSON (JavaScript Object Notation) as the universal data exchange standard of web services. We mapped JSON structure to Python Dictionaries and Lists, noting its lightweight syntax, reliance on string double-quote keys, and strict data type values. This allows different runtimes to easily exchange messages and state.

3. Asynchronous Chatbot & Backend Frameworks

For our major project, Rashmi assigned a chatbot task utilizing the Gemini API, introducing Flask and FastAPI as backend frameworks. While the cohort struggled with JSON formatting, Divy and I created separate projects to implement the chatbot. I developed an asynchronous, type-safe FastAPI microservice. Using Pydantic for request validation, uvicorn for hosting, and the official Gemini API, I built a fully operational endpoint. Rashmi tested my chatbot and was deeply impressed by my dev speed and enterprise architectural choices.

Key Learnings

  • Explaining and diagramming client-server API request/response cycles.
  • Designing and parsing nested JSON data schemas mapped to Python collections.
  • Developing asynchronous FastAPI backends with robust Pydantic schemas.
  • Interfacing and authenticating Python codebases with the Google Gemini API downstream.

Tools & Stack

  • FastAPI
  • Uvicorn
  • Gemini API
  • JSON
  • Python 3.11

Challenges Overcome

  • Managing downstream generative model timeouts and API filter blocks.
  • Securing sensitive API authorization credentials using environment variables.

Task to be Performed

  • Understand HTTP client-server request-response parameters and JSON serialization.
  • Configure dynamic request-response schemas using Pydantic parameters.
  • Develop an asynchronous, type-safe FastAPI chatbot service integrating Google's Gemini-1.5-flash model.

Related Logs

Day 00

Onboarding & Exploration: Mapping the Core AI & Python Blueprint

Onboarding at Virtual Height, exploring Python-based AI development pipelines, setting up sandboxes, and defining our core AI & Prompt Engineering curriculum.

May 29, 20264 min readRead Log
Day 01

Day 01: Foundations of AI, Python Lab, and the Velocity of Domain Mastery

Onboarding under Senior AI Trainer Rashmi, mapping the formal pillars of AI from ML to DL, mastering cross-platform Python execution, and demonstrating custom LLM and reverse engineering portfolios to the cohort.

Jun 01, 20264 min readRead Log