mirror of
https://github.com/openai/codex.git
synced 2026-05-26 22:15:13 +00:00
Return TurnResult from Python turn handles
This commit is contained in:
@@ -34,8 +34,9 @@ with Codex() as codex:
|
||||
print(len(result.items))
|
||||
```
|
||||
|
||||
`result.final_response` is `None` when the turn completes without a final-answer
|
||||
or phase-less assistant message item.
|
||||
`thread.run(...)` and `thread.turn(...).run()` return `TurnResult`. Its
|
||||
`final_response` is `None` when the turn completes without a final-answer or
|
||||
phase-less assistant message item.
|
||||
|
||||
## Login
|
||||
|
||||
|
||||
Reference in New Issue
Block a user