Commit d052c1f
[Bugfix] Fix wrong imports in examples (#1241)
The current script gives
```
Traceback (most recent call last):
File "/Users/xmxd289/code/openai-agents-python/examples/reasoning_content/main.py", line 19, in <module>
from agents.types import ResponseOutputRefusal, ResponseOutputText # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'agents.types'
```
because it should be
`from openai.types.responses import ResponseOutputRefusal,
ResponseOutputText`
rather than
`from agents.types import ResponseOutputRefusal, ResponseOutputText`
---------
Co-authored-by: Michelangelo D'Agostino <[email protected]>1 parent 44042e1 commit d052c1f
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments