We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d57c99 commit c7d10a2Copy full SHA for c7d10a2
tests/integrations/openai_agents/test_openai_agents.py
@@ -80,13 +80,13 @@ def test_agent():
80
81
82
@pytest.fixture
83
-def test_agent_custom_model():
+def test_agent_custom_model() -> Agent:
84
"""Create a real Agent instance for testing."""
85
return Agent(
86
name="test_agent_custom_model",
87
instructions="You are a helpful test assistant.",
88
# the model could be agents.OpenAIChatCompletionsModel()
89
- model=MagicMock(model="my-custom-model"),
+ model=MagicMock(spec=agents.Model, model="my-custom-model"),
90
model_settings=ModelSettings(
91
max_tokens=100,
92
temperature=0.7,
0 commit comments