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)
| 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 { |
no outgoing calls