pub struct ToolsConfig {Show 22 fields
pub allow_no_timeout: bool,
pub command_timeout: Duration,
pub agent_timeout: Duration,
pub max_timeout: Duration,
pub output_limit_bytes: usize,
pub max_read_bytes: usize,
pub max_write_bytes: usize,
pub max_delegation_depth: u32,
pub prefer: Vec<String>,
pub conversations: ConversationLimits,
pub delegation: Option<DelegationContext>,
pub max_background: usize,
pub background: Option<Arc<BackgroundJobs>>,
pub reviews: Option<PathBuf>,
pub chat_attach: Option<ChatAttachConfig>,
pub chat_history: Option<ChatHistoryConfig>,
pub precheck_agent_models: bool,
pub worktrees: Option<PathBuf>,
pub workbench: Option<Arc<Workbench>>,
pub label: String,
pub jobs: Option<PathBuf>,
pub workspace: PathBuf,
}Expand description
Limits and shared state for one session’s tools.
Fields§
§allow_no_timeout: boolLet background agent calls set no_timeout to run with no main
deadline. Off by default.
command_timeout: DurationDefault bash timeout when a call does not choose one.
agent_timeout: DurationDefault native-agent timeout when a call does not choose one.
max_timeout: DurationThe longest timeout any single call may request.
output_limit_bytes: usize§max_read_bytes: usize§max_write_bytes: usize§max_delegation_depth: u32The agent tool is offered only below this delegation depth.
prefer: Vec<String>Agents the user prefers, in order ([agent] prefer); the first one
offered runs an agent call that names none.
conversations: ConversationLimitsHow many delegated conversations a session remembers, and for how long.
delegation: Option<DelegationContext>Records delegated runs for listing and cleanup; None runs them untracked.
max_background: usizeBackground jobs agent calls may run at once (background: true);
0 turns background calls and agent_wait / agent_status /
agent_cancel off.
background: Option<Arc<BackgroundJobs>>The session’s background job store, when the server reports finished jobs; otherwise the registry makes its own.
reviews: Option<PathBuf>Where reviewed jobs keep their journals ($SCV_HOME/state/reviews);
None leaves review out of the agent tool.
chat_attach: Option<ChatAttachConfig>Offers chat_attach when the session answers on a chat channel.
chat_history: Option<ChatHistoryConfig>Offers chat_history and chat_keep when the session answers a
conversation that has a chat log.
precheck_agent_models: boolRefuse a model an ACP agent’s saved list lacks before the call starts.
scv agents check turns it off so the agent’s own list decides.
worktrees: Option<PathBuf>Where agent calls with worktree: true get their git worktrees
($SCV_HOME/worktrees); None leaves worktree out of the tool.
workbench: Option<Arc<Workbench>>The daemon’s workbench, which lists the session’s jobs and lets the
owner send its conversations prompts; None outside the daemon.
label: StringWho the session serves, such as TUI or WeChat, for the job
ledger and the workbench.
jobs: Option<PathBuf>The session’s background jobs are recorded in this job ledger
directory ($SCV_HOME/state/jobs), when the registry makes the job
store itself; None keeps no record.
workspace: PathBufThe session’s workspace, which the job ledger records.