From d2e3718a43ce1ce4e566cb3b67a318c85e6b279d Mon Sep 17 00:00:00 2001 From: Michelangelo D'Agostino Date: Thu, 24 Jul 2025 17:57:14 -0500 Subject: [PATCH 1/2] Fix wrong import. --- examples/reasoning_content/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/reasoning_content/main.py b/examples/reasoning_content/main.py index c23b04254..65b1fd3a2 100644 --- a/examples/reasoning_content/main.py +++ b/examples/reasoning_content/main.py @@ -16,7 +16,7 @@ from agents import ModelSettings from agents.models.interface import ModelTracing from agents.models.openai_provider import OpenAIProvider -from agents.types import ResponseOutputRefusal, ResponseOutputText # type: ignore +from openai.types.responses import ResponseOutputRefusal, ResponseOutputText # type: ignore MODEL_NAME = os.getenv("EXAMPLE_MODEL_NAME") or "deepseek-reasoner" From 9408cbda3a2271a406436e2bc45d54786ccbdd36 Mon Sep 17 00:00:00 2001 From: Michelangelo D'Agostino Date: Thu, 24 Jul 2025 19:30:52 -0500 Subject: [PATCH 2/2] Linting. --- examples/reasoning_content/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/reasoning_content/main.py b/examples/reasoning_content/main.py index 65b1fd3a2..a250aa9ca 100644 --- a/examples/reasoning_content/main.py +++ b/examples/reasoning_content/main.py @@ -13,10 +13,11 @@ import os from typing import Any, cast +from openai.types.responses import ResponseOutputRefusal, ResponseOutputText + from agents import ModelSettings from agents.models.interface import ModelTracing from agents.models.openai_provider import OpenAIProvider -from openai.types.responses import ResponseOutputRefusal, ResponseOutputText # type: ignore MODEL_NAME = os.getenv("EXAMPLE_MODEL_NAME") or "deepseek-reasoner"