02. OpenAI Agents SDK for Beginners : Learn to Call External APIs and Get Structured Outputs

Опубликовано: 17 Февраль 2026
на канале: TechyTacos
598
17

In Part 2 of our OpenAI Agent SDK series, discover how to enhance your AI agents with advanced features: learn to integrate external tools and APIs like a weather service to provide real-time data, customize your agent's model by specifying models like GPT-4o-mini, and structure your agent's output into clean JSON format using Pydantic classes for easy data handling. We'll also explore how to use the OpenAI platform's tracing features to debug and verify the implementation of tools, custom models, and structured outputs, empowering you to build smarter and more sophisticated AI agents.

Chapters :
*************************************************
[00:00:00] Introduction & Advanced Features
[00:00:14] Basic Agent Setup & Initial Query
[00:01:11] Integrating Tools for Real-Time Data
[00:04:15] Agent with Tools & Tracing Verification
[00:05:26] Customizing Model Name & Tracing
[00:06:06] Structured Output with Pydantic
[07:06] Structured Output in Response & Traces
[08:05] Summary & Outro

Please refer the code here :
*********************************************************
https://github.com/PraveenKS30/openai...

Interested to learn more, check these playlists :
*********************************************************
OpenAI Agent SDK Series :    • Getting started with OpenAI Agents SDK !  

Spring AI Tutorials : Generative AI for Java Developers :    • Spring AI  Tutorials : Generative AI for J...  

Gen AI using Open Source Models :    • Gen AI using Open Source Models !  

Generative AI using Native APIs :    • Generative AI using OpenAI API !  

Getting Started with Azure AI Services :    • Getting Started with Azure AI Foundary !