mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 09:28:56 +00:00
142 lines
6.4 KiB
HTML
142 lines
6.4 KiB
HTML
<html>
|
|
<head>
|
|
<title>Code Execution</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div x-data>
|
|
<template x-if="config">
|
|
<div>
|
|
<div class="section-title">Code Execution</div>
|
|
<div class="section-description">
|
|
Configure execution timeouts and shell prompt and dialog detection.
|
|
</div>
|
|
|
|
<!-- Execution timeouts -->
|
|
<div class="section-title">Execution Timeouts</div>
|
|
<div class="section-description">
|
|
Timeouts (in seconds) for python, nodejs, and terminal runtimes.
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">First output timeout</div>
|
|
<div class="field-description">Seconds to wait for the first output before returning control to the agent.</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<input type="number" min="1" x-model.number="config.code_exec_first_output_timeout" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Between output timeout</div>
|
|
<div class="field-description">Seconds to wait between output chunks before returning control.</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<input type="number" min="1" x-model.number="config.code_exec_between_output_timeout" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Max execution timeout</div>
|
|
<div class="field-description">Hard cap on total execution time in seconds.</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<input type="number" min="1" x-model.number="config.code_exec_max_exec_timeout" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Dialog detection timeout</div>
|
|
<div class="field-description">Seconds of idle output before checking for dialog prompts.</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<input type="number" min="1" x-model.number="config.code_exec_dialog_timeout" />
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Output runtime timeouts -->
|
|
<div class="section-title">Output Runtime Timeouts</div>
|
|
<div class="section-description">
|
|
Timeouts (in seconds) for the "output" runtime (waiting for long-running processes).
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">First output timeout</div>
|
|
<div class="field-description">Seconds to wait for the first output.</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<input type="number" min="1" x-model.number="config.output_first_output_timeout" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Between output timeout</div>
|
|
<div class="field-description">Seconds to wait between output chunks.</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<input type="number" min="1" x-model.number="config.output_between_output_timeout" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Max execution timeout</div>
|
|
<div class="field-description">Hard cap on total wait time in seconds.</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<input type="number" min="1" x-model.number="config.output_max_exec_timeout" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Dialog detection timeout</div>
|
|
<div class="field-description">Seconds of idle output before checking for dialog prompts.</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<input type="number" min="1" x-model.number="config.output_dialog_timeout" />
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Patterns -->
|
|
<div class="section-title">Detection Patterns</div>
|
|
<div class="section-description">
|
|
Regular expressions used to detect shell prompts and interactive dialogs. One pattern per line.
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Prompt patterns</div>
|
|
<div class="field-description">
|
|
When any pattern matches the last output lines, execution is considered complete and output is returned immediately.
|
|
</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<textarea rows="5" x-model="config.prompt_patterns"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Dialog patterns</div>
|
|
<div class="field-description">
|
|
When any pattern matches after the dialog timeout, control is returned to the agent to handle the interactive prompt.
|
|
</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<textarea rows="4" x-model="config.dialog_patterns"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|