Agent Guardrails and Triage Logic
In this lesson, you'll learn how to use InputGuardrail and agent handoffs to build a triaging agent that routes queries to specialized assistants, with logic...
In this lesson, you'll learn how to use InputGuardrail and agent handoffs to build a triaging agent that routes queries to specialized assistants, with logic...
In this lesson, you'll learn how to send an audio file to OpenAI’s gpt-4o-audio-preview model for transcription and analysis, and receive both textual and au...
In this lesson, you'll learn how to create a loop that lets the computerusepreview tool perform and visualize browser-based actions iteratively with model fe...
In this lesson, you'll learn how to submit long-running OpenAI response jobs to be processed in the background, ideal for large outputs like novels or report...
In this lesson, you’ll learn how to build a conversational chatbot using the OpenAI Chat Completions API. This chatbot will retain context across turns, maki...
In this lesson, you'll learn how to send a file along with a user prompt to GPT-4.1 using the inputfile and inputtext types. Have a file ready to upload (PDF...
In this lesson, we’ll use the file_search tool to allow GPT-4o to pull information from a specific vector store. This is perfect for querying private documen...
In this lesson, you'll learn how to build a persona-driven chatbot that uses slang and maintains conversation history across turns using previousresponseid....
In this lesson, you’ll learn how to use the OpenAI function-calling capability to dynamically fetch real-time weather data using external APIs. Make sure you:
In this lesson, you'll learn how to generate both text and audio output using OpenAI’s gpt-4o-audio-preview model, and save the audio as a .wav file. Install...
OpenAI Platform Overview Available Models Model Comparison
In this lesson, you'll learn how to use the image_generation tool in OpenAI’s API to generate images and save them to your local machine. Install the OpenAI...
In this final lesson, you’ll learn how to combine OpenAI’s embedding models with Pinecone to build a working semantic search pipeline. Install the required p...
In this lesson, you'll learn how to limit the number of documents GPT-4o considers from a vector store by setting maxnumresults. Make sure you have:
In this lesson, you'll learn how to use multimodal inputs (text and image together) with OpenAI’s GPT-4.1 API to analyze visual content. Ensure you have the...
In this lesson, you'll learn how to use OpenAI’s omni-moderation-latest model to classify both text and images for policy violations in a single moderation r...
In this lesson, you'll learn how to parse complex, nested responses into structured Python objects using Pydantic models and the OpenAI parse() method. Insta...
Batch processing allows you to submit multiple requests to the OpenAI API asynchronously and process them more efficiently, especially when working with larg...
Sample PDF File containing AWS course Information Sample PDF containing a company's info Sample PDF File containing CSV Records
In this lesson, you'll learn how to receive responses in real-time using OpenAI's streaming API, allowing your app to react immediately as the model generate...
In this lesson, you’ll learn how to extract structured data from user input using a Pydantic model with OpenAI’s parse() method. Install the required packages:
In this lesson, you'll learn how to create a new vector store, upload a file into it, and then query it using GPT-4o with the file_search tool. Make sure you...
In this lesson, we’ll explore how to use the Chat Completions API to have a multi-turn conversation with the model using roles like system, user, and assista...
In this lesson, you'll learn how to feed raw CSV data to GPT-4o and analyze it using the code_interpreter tool. Install the required packages:
In this lesson, you'll learn how to send a local image to the GPT-4.1 API by encoding it to Base64 and passing it as a data URI. Install the OpenAI SDK:
In this lesson, you’ll learn how to use the new Agent and Runner abstraction from OpenAI’s experimental agent framework to create assistants that can follow...
In this lesson, you’ll learn how to use OpenAI’s Moderation API to detect potentially harmful or policy-violating content in user input. Install the OpenAI SDK:
In this lesson, we’ll explore how to enable the websearchpreview tool to allow GPT-4o to fetch up-to-date information from the internet. Ensure you have:
In this lesson, you'll learn how to use OpenAI’s GPT-4o model to interpret and respond to image inputs. This is useful for building AI tools that understand...