You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for per-prompt execution timeout (prompt_timeout_seconds)
Supports setting prompt_timeout_seconds across Agent CLI generators (gemini_cli, claude_code, codex_cli, agy_cli) to terminate prompt turns that spin indefinitely. Configurable per scenario JSON, per model YAML, or per run_config YAML.
TAG=agy
CONV=4229555b-deeb-44bb-a481-c751dab59476
Copy file name to clipboardExpand all lines: docs/codex_cli_agent_testing.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,6 +213,7 @@ The model config defines the Codex CLI version, model, auth, sandbox/approval po
213
213
| `profile` | Optional | Codex profile name (forwarded as `--profile <name>`) |
214
214
| `json_flag` | Optional | `"--json"` (default, newer Codex versions) or `"--experimental-json"` (older versions). Codex requires NDJSON for the eval pipeline to extract tool calls and tokens. |
215
215
| `pricing` | Optional | Per-model rates used to compute `cost_usd` per turn. See [Pricing & Cost Tracking](#pricing--cost-tracking). |
216
+
| `prompt_timeout_seconds` | Optional | Timeout limit in seconds for each CLI prompt turn (e.g., `180`) |
216
217
| `env` | Optional | Environment variables passed to the CLI process (e.g., `GOOGLE_CLOUD_PROJECT` for Cloud SQL MCP) |
217
218
| `setup.mcp_servers` | Optional | MCP server configurations (see [MCP Servers](#mcp-servers)) |
218
219
| `setup.config` | Optional | Free-form key/value pairs written to the top of `~/.codex/config.toml`. Merged on top of the default `forced_login_method = "api"`. |
Copy file name to clipboardExpand all lines: docs/configs/model-config.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ These settings are passed to all generators, regardless of the specific engine u
15
15
|`max_tokens`| Optional | N/A | Specifies the maximum number of tokens the model can generate in a single output. |
16
16
|`execs_per_minute`| Optional |`60`| Sets the maximum number of executions allowed per minute. If not provided, it defaults to `60`. This helps throttle the rate of query generation. |
17
17
|`max_attempts`| Optional |`3`| Specifies the maximum number of attempts for query generation in case of failures. Defaults to `3` if not provided. |
18
+
|`prompt_timeout_seconds`| Optional | N/A | Timeout limit in seconds for each CLI prompt execution turn (e.g. `180`). Overrides run config `runners.prompt_timeout_seconds`. |
Copy file name to clipboardExpand all lines: docs/configs/run-config.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ This section defines the primary resources used during evaluation, including the
17
17
|`num_trials`| Optional | Number of trials to run for each prompt. |
18
18
|`scenarios`| Optional | A list of specific scenario IDs to run (only applies to scenario-based agentic datasets like `gemini-cli-format` or `cortado-format`). Defaults to empty (runs all scenarios). |
19
19
|`scenario_pattern`| Optional | A glob pattern of scenario IDs to run (only applies to scenario-based agentic datasets). Defaults to None (runs all scenarios). |
20
+
|`runners`| Optional | Dictionary configuring concurrency and timeouts. <br>• `agent_runners`: Concurrency level for agent scenario runners (default: 10).<br>• `prompt_timeout_seconds`: Global timeout limit in seconds for a single agent prompt CLI execution turn (e.g. `300`). |
| `max_turns` | Yes | Maximum number of conversation turns before the evaluation stops |
256
+
| `prompt_timeout_seconds` | Optional | Timeout limit in seconds for each CLI prompt turn in this scenario. Overrides model config and run config timeout settings. |
0 commit comments