MCQ 100 - Handoff Parameter Structure
The MCQ was intentionally big with useless scenario but the core question was: Which parameter structure correctly represents the difference between agent-level and run-level hook implementations?¶
Answer: D¶
Agent Hooks¶
| Python | |
|---|---|
Run Hooks¶
| Python | |
|---|---|
Note: Source Agent in on_handoff of RunHooks is the third parameter while fourth in AgentHooks.
Source: openai-agents-python/src/agents/lifecycle.py