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

Function test_apply_to_sets_max_steps

core/src/subagent.rs:1750–1759  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1748
1749 #[test]
1750 fn test_apply_to_sets_max_steps() {
1751 use crate::agent::AgentConfig;
1752
1753 let def = AgentDefinition::new("fast", "Fast agent").with_max_steps(7);
1754 let mut config = AgentConfig::default();
1755
1756 def.apply_to(&mut config);
1757
1758 assert_eq!(config.max_tool_rounds, 7);
1759 }
1760
1761 #[test]
1762 fn test_apply_to_respects_host_overrides() {

Callers

nothing calls this directly

Calls 2

with_max_stepsMethod · 0.45
apply_toMethod · 0.45

Tested by

no test coverage detected