最終更新:2026-05-14 (木) 20:04:42 (34d)
agents.RunItemStreamEvent
Top / agents.RunItemStreamEvent
Streaming events that wrap a RunItem?. As the agent processes the LLM response, it will generate these events for new messages, tool calls, tool outputs, handoffs, etc.
メモ
- event.type == "run_item_stream_event"
- event.item.type == "tool_call_item"
- event.item.type == "tool_call_output_item"
- event.item.type == "message_output_item"
フィールド
type run_item_stream_event name Literal (定義済みの文字) item agents.items.RunItem?
nameの一覧
name item message_output_created agents.items.MessageOutputItem? handoff_requested handoff_occured tool_called agents.items.ToolCallItem tool_search_called tool_search_output_created tool_output agents.items.ToolCallOutputItem? reasoning_item_created mcp_approval_requested mcp_approval_response mcp_list_tools
呼ばれる順番
name type item tool_called tool_call_item agents.items.ToolCallItem message_output_created message_output_item agents.items.MessageOutputItem? tool_output tool_call_output_item agents.items.ToolCallOutputItem? ツールの実行結果

