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

Function test_apply_to_sets_prompt

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

Source from the content-addressed store, hash-verified

1736
1737 #[test]
1738 fn test_apply_to_sets_prompt() {
1739 use crate::agent::AgentConfig;
1740
1741 let def = AgentDefinition::new("helper", "Help").with_prompt("Be helpful.");
1742 let mut config = AgentConfig::default();
1743
1744 def.apply_to(&mut config);
1745
1746 assert_eq!(config.prompt_slots.extra.as_deref(), Some("Be helpful."));
1747 }
1748
1749 #[test]
1750 fn test_apply_to_sets_max_steps() {

Callers

nothing calls this directly

Calls 2

with_promptMethod · 0.80
apply_toMethod · 0.45

Tested by

no test coverage detected