Interface RunItem

All Superinterfaces:
AgentInputItem
All Known Implementing Classes:
RunHandoffCallItem, RunHandoffOutputItem, RunItemBase, RunMessageInputItem, RunMessageOutputItem, RunReasoningItem, RunToolApprovalItem, RunToolCallItem, RunToolCallOutputItem

public interface RunItem extends AgentInputItem
RunItem

Union of all run item types that can occur during agent execution. In TypeScript: RunMessageOutputItem | RunToolCallItem | RunReasoningItem | etc.

RunItems are also AgentInputItems because they can be used as input for subsequent agent turns (conversation history).

Source: https://github.com/openai/openai-agents-js/blob/main/packages/agents-core/src/items.ts