pub struct ToolsConfig {Show 14 fields
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 chat_attach: Option<ChatAttachConfig>,
pub chat_history: Option<ChatHistoryConfig>,
}Expand description
Limits and shared state for one session’s tools.
Fields§
§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.
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.