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 a078464 commit 3d67afdCopy full SHA for 3d67afd
tests/integrations/openai_agents/test_openai_agents.py
@@ -19,6 +19,11 @@
19
ResponseFunctionToolCall,
20
)
21
22
+from openai.types.responses.response_usage import (
23
+ InputTokensDetails,
24
+ OutputTokensDetails,
25
+)
26
+
27
test_run_config = agents.RunConfig(tracing_disabled=True)
28
29
@@ -29,8 +34,8 @@ def mock_usage():
34
input_tokens=10,
30
35
output_tokens=20,
31
36
total_tokens=30,
32
- input_tokens_details={"cached_tokens": 0},
33
- output_tokens_details={"reasoning_tokens": 5},
37
+ input_tokens_details=InputTokensDetails(cached_tokens=0),
38
+ output_tokens_details=OutputTokensDetails(reasoning_tokens=5),
39
40
41
0 commit comments