RetryAgentRun: Use this exception when you want to retry the agent run with a different set of instructions.StopAgentRun: Use this exception when you want to stop the agent run.AgentRunException: A generic exception that can be used to retry the tool call.
RetryAgentRun exception to retry the agent with additional instructions.
retry_in_tool_call.py