Week 1 · D4🔒 LockedAbout 4 hours
The OpenAI Agents SDK: Agents, Handoffs, Guardrails, Sessions, Tracing
Fold yesterday's hand-written loop into a few lines of API with the official Agents SDK: how agents hand off to each other, how to put guardrails at the entry and exit, how to remember multiple turns, and how to see every step clearly.
Fold yesterday's hand-written loop into a few lines of API with the official Agents SDK: how agents hand off to each other, how to put guardrails at the entry and exit, how to remember multiple turns, and how to see every step clearly.
Interview questions
When should you split one agent into several connected by handoffs, and when is a single agent with many tools the better design?什么时候该把一个 Agent 拆成多个、用 handoff 交接?什么时候「一个大 Agent 加很多工具」反而更好?
Common in ChinaCommon overseasIntermediate#agents-sdk#handoffs#architecture🔒 Unlock this chapter to see the answer keys.
Should guardrails sit on the input side or the output side? What does each cost, what does it catch, and what slips through?guardrail 应该放在输入侧还是输出侧?各自的成本、能拦住什么、拦不住什么?
Common in ChinaCommon overseasDeep dive#agents-sdk#guardrails#safety🔒 Unlock this chapter to see the answer keys.
Both Agents SDK sessions and the Responses API's previous_response_id remember multi-turn state. How do you choose, and what role does tracing play?Agents SDK 的 session 和 Responses API 的 previous_response_id 都能记住多轮,怎么选?tracing 在这里起什么作用?
Common in ChinaCommon overseasIntermediate#agents-sdk#sessions#tracing🔒 Unlock this chapter to see the answer keys.
