pub struct ToolsConfig {
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 conversations: ConversationLimits,
pub delegation: Option<DelegationContext>,
pub max_background: usize,
pub background: Option<Arc<BackgroundJobs>>,
pub chat_attach: Option<ChatAttachConfig>,
}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: u32Agent tools are offered only below this delegation depth.
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 an agent call may start 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.
Trait Implementations§
Source§impl Clone for ToolsConfig
impl Clone for ToolsConfig
Source§impl Debug for ToolsConfig
impl Debug for ToolsConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ToolsConfig
impl !UnwindSafe for ToolsConfig
impl Freeze for ToolsConfig
impl Send for ToolsConfig
impl Sync for ToolsConfig
impl Unpin for ToolsConfig
impl UnsafeUnpin for ToolsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more