MCPcopy Create free account
hub / github.com/AI45Lab/Code / with_max_tool_rounds

Method with_max_tool_rounds

core/src/agent_api/session_options.rs:499–502  ·  view source on GitHub ↗

Override the maximum number of tool execution rounds for this session. Useful when binding a markdown-defined subagent to a session — pass the agent definition's `max_steps` value here to enforce its step budget.

(mut self, rounds: usize)

Source from the content-addressed store, hash-verified

497 /// Useful when binding a markdown-defined subagent to a session —
498 /// pass the agent definition's `max_steps` value here to enforce its step budget.
499 pub fn with_max_tool_rounds(mut self, rounds: usize) -> Self {
500 self.max_tool_rounds = Some(rounds);
501 self
502 }
503
504 /// Override the maximum number of sibling parallel branches for this session.
505 pub fn with_max_parallel_tasks(mut self, tasks: usize) -> Self {

Calls

no outgoing calls