You're doing Agentic chat history wrong | OpenAI Agents SDK

From the creator

Prompting is an essential component when working with LLMs, and Agents SDK naturally has its own way of handling various components of prompts. In this chapter, we'll examine how to utilise static and dynamic prompting, as well as how to correctly use system, user, assistant, and tool prompts to build event-based conversations, not interaction-based conversations. Then, we'll see how these come together to create advanced conversational agents that use chat history the right way. 📌 Code: https://github.com/aurelio-labs/agents-sdk-course/blob/main/chapters/01-prompting.ipynb 📖 Article: https://www.jamesbriggs.io/agents-sdk-prompting Twitter: https://twitter.com/jamescalam LinkedIn: https://www.linkedin.com/in/jamescalam/ #aiagents #openai #ai #coding #artificialintellegence #programming 00:00 OpenAI Agents SDK 00:56 Agents SDK Setup 01:56 Static Instructions 06:03 Dynamic Prompts 08:38 Rethinking Agentic Chat History 11:09 Message Types 20:25 How to Use SDK Message Types 22:09 Developer Messages 24:31 Assistant Messages 26:37 Chat History 27:53 Function Calls 31:03 Conclusion for Agents SDK Prompting

Choose to Build with AI
Matched to OpenAI Agents

AI Maker Residence 3

The third AI workshop taught by our legendary teacher, Nick Sarafa. This is a full-day hands-on training workshop for purposeful co-creation with AI using Claude Code. Imagine having access to hundreds of billions of dollars of computing power and knowing exactly how to make it work for you through the power of super intelligence.

◆ Fri 09 Oct 2026 ◆ KOKO Cafe, London ◆ With Nick Sarafa
AI Maker Residence 3
Live event
AI Maker Residence 3
Fri 09 Oct 2026

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.