pub fn widened(was: &AgentDefinition, now: &AgentDefinition) -> Vec<String>Expand description
What now lets an agent do that was did not (spec 3.3 §5.7): a looser mode, more
uses, a higher or no daily limit. Empty when the change only makes it do less or the
same; its name, colour, line, instructions and model never count.
§Example
use adk_kernel::agents::{AgentDefinition, AgentUses, FileAccess, widened};
use adk_kernel::PartitionMode;
let was = AgentDefinition::new("Finance", "default").with_mode(PartitionMode::Ask);
assert!(widened(&was, &was.clone().with_mode(PartitionMode::Plan)).is_empty());
let more = was.clone().with_uses(AgentUses::default().with_files(FileAccess::Read));
assert_eq!(widened(&was, &more), ["reading files"]);