You're doing Agentic chat history wrong | OpenAI Agents SDK
Machine-readable: Markdown · JSON API · Site index
Описание видео
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.aurelio.ai/learn/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