feat: add max_turns to recipe and subagent settings (#6687)
Signed-off-by: Jonathan Hult <Jonathan@JonathanHult.com>
This commit is contained in:
@@ -53,4 +53,11 @@ impl TaskConfig {
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn with_max_turns(mut self, max_turns: Option<usize>) -> Self {
|
||||
if let Some(turns) = max_turns {
|
||||
self.max_turns = Some(turns);
|
||||
}
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user