mirror of
https://github.com/openai/codex.git
synced 2026-10-31 19:28:49 +00:00
[4/6] Expose dedicated Python goal operations
This commit is contained in:
@@ -72,6 +72,17 @@ with Codex() as codex:
|
||||
Use `Thread.turn(...)` when you need a `TurnHandle` for streaming, steering,
|
||||
or interrupting an active turn.
|
||||
|
||||
For a longer objective on an idle, persisted thread, run a dedicated goal
|
||||
operation:
|
||||
|
||||
```python
|
||||
result = thread.run_goal("Improve the benchmark coverage in this repository.")
|
||||
```
|
||||
|
||||
A goal may continue working internally, but it streams and returns as one
|
||||
logical turn. It uses the thread's existing configuration and replaces any
|
||||
stored goal.
|
||||
|
||||
## 4. Choose Sandbox Access
|
||||
|
||||
Use one enum for the initial thread and later turn overrides:
|
||||
|
||||
Reference in New Issue
Block a user