最終更新:2026-05-14 (木) 19:47:27 (28d)  

agents.RunHooks.on_llm_start
Top / agents.RunHooks.on_llm_start

Called just before invoking the LLM for this agent.

https://openai.github.io/openai-agents-python/ref/lifecycle/#agents.lifecycle.RunHooksBase.on_llm_start

on_llm_start(
    context: RunContextWrapper[TContext],
    agent: Agent[TContext],
    system_prompt: str | None,
    input_items: list[TResponseInputItem],
) -> None

input_items

  • Responses API に渡される input items