Spaces:
Paused

File size: 2,146 Bytes
bc9f3e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Shared preset option sets for the chat tabs' Generation Settings
// controls β€” the "category selection" replacement for the old raw number
// inputs (step budgets / whole-run timeouts / per-step exec timeouts).
// Every option is { value, labelKey } β€” the label resolves through the
// bilingual t() store (numbers are plain digits, language-neutral); the
// AUTO option (value null) is rendered separately by PresetSelect so it
// can show the control's real default.

/** Per-step code-execution timeout presets (seconds) β€” shared by every
 * agentic tab's "Exec timeout" control. AUTO (null) = the tab's own
 * factory default. Runs up to 10 minutes. */
export const EXEC_TIMEOUT_OPTIONS = [
  { value: 30, labelKey: "exec_timeout_30s" },
  { value: 60, labelKey: "exec_timeout_60s" },
  { value: 120, labelKey: "exec_timeout_120s" },
  { value: 300, labelKey: "exec_timeout_300s" },
  { value: 600, labelKey: "exec_timeout_600s" },
];

/** Manager-agent step-budget presets (General / RAG / Deep Research /
 * Data): 1–30, common values only β€” a category pick, not a free number. */
export const STEP_OPTIONS = [2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 30].map((n) => ({
  value: n,
  labelKey: String(n),
}));

/** Sub-agent step-budget presets (RAG searcher / DR search / Data
 * worker): 1–15. */
export const SUBSTEP_OPTIONS = [2, 3, 4, 5, 6, 8, 10, 12, 15].map((n) => ({
  value: n,
  labelKey: String(n),
}));

/** Whole-run generation-timeout presets (seconds) β€” General / RAG /
 * Vision / Deep Research's "Timeout" control. AUTO (null) = no explicit
 * deadline (web_no_limit). Covers the common durations up to the 5-hour
 * max. */
export const RUN_TIMEOUT_OPTIONS = [
  { value: 60, labelKey: "exec_timeout_60s" },
  { value: 120, labelKey: "exec_timeout_120s" },
  { value: 300, labelKey: "exec_timeout_300s" },
  { value: 600, labelKey: "exec_timeout_600s" },
  { value: 900, labelKey: "exec_timeout_900s" },
  { value: 1800, labelKey: "exec_timeout_1800s" },
  { value: 3600, labelKey: "exec_timeout_3600s" },
  { value: 7200, labelKey: "exec_timeout_7200s" },
  { value: 18000, labelKey: "exec_timeout_18000s" },
];