Skip to content

Commit d6f8b8a

Browse files
fix non strict test
1 parent 049c697 commit d6f8b8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/openai_agents/basic/test_non_strict_output_workflow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515

1616

1717
def non_strict_output_test_model():
18+
# NOTE: AgentOutputSchema (used in the workflow definition), has a schema where the outer
19+
# object must be "response". Therefore, mocked model responses must use "response", just as the real model does.
1820
return TestModel.returning_responses(
1921
[
2022
ResponseBuilders.output_message(
21-
'{"jokes": {"1": "Why do programmers prefer dark mode? Because light attracts bugs!", "2": "How many programmers does it take to change a light bulb? None, that\'s a hardware problem.", "3": "Why do Java developers wear glasses? Because they can\'t C#!"}}'
23+
'{"response": {"jokes": {"1": "Why do programmers prefer dark mode? Because light attracts bugs!", "2": "How many programmers does it take to change a light bulb? None, that\'s a hardware problem.", "3": "Why do Java developers wear glasses? Because they can\'t C#!"}}}'
2224
)
2325
]
2426
)

0 commit comments

Comments
 (0)