openai-agents-python — what reaches the model on each turn

openai-agents-python — what reaches the model on each turn A data-flow diagram generated by Archify. 01 / Sources 02 / Run state 03 / Assemble 04 / Last hook 05 / Request Session history · get_items(limit) · 01 / Sources Session history get_items(limit) New input · str or items · 01 / Sources New input str or items Turn outputs · model + tool items · 01 / Sources Turn outputs model + tool items Agent config · prompt sources · 01 / Sources Agent config prompt sources original_input · history + input · 02 / Run state original_input history + input generated items · this run's items · 02 / Run state generated items this run's items System prompt · per turn · 03 / Assemble System prompt per turn process_context · SandboxAgent only · 03 / Assemble process_context SandboxAgent only prepare input · drop orphan calls · 03 / Assemble prepare input drop orphan calls input filter · RunConfig hook · 04 / Last hook input filter RunConfig hook Model request · items + tools · 05 / Request Model request items + tools Server state · deltas only · 05 / Request Server state deltas only prepend append each turn resolve caller items kept items replay items instructions ModelInputData server-managed: deltas Legend primary data async batch data store data flow