openai-agents-python — core abstractions and who owns what

openai-agents-python — core abstractions and who owns what An architecture diagram generated by Archify. RunConfig · run-wide policy · Architecture component RunConfig run-wide policy RunContextWrapper · app context · usage · Architecture component RunContextWrapper app context · usage Runner · drives the loop · Architecture component Runner drives the loop RunResult · final_output · new_items · Architecture component RunResult final_output · new_items RunState · schema 1.20 JSON · Architecture component RunState schema 1.20 JSON Model · get_response / stream · Architecture component Model get_response / stream Agent · instructions · tools · handoffs · output_type · guardrails · Architecture component Agent instructions · tools · handoffs · output_type · guardrails Handoff · tool that switches agent · Architecture component Handoff tool that switches agent Tool · FunctionTool + hosted · Architecture component Tool FunctionTool + hosted SandboxAgent · Agent + manifest · Architecture component SandboxAgent Agent + manifest Capability · tools · prompt · params · Architecture component Capability tools · prompt · params configures wraps context returns to_state() runs current model handoffs tools subclass capabilities adds tools Legend Frontend Backend Database Cloud Security