MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_agent_definition_with_model

Function test_agent_definition_with_model

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

Source from the content-addressed store, hash-verified

1582
1583 #[test]
1584 fn test_agent_definition_with_model() {
1585 let model = ModelConfig {
1586 model: "claude-3-5-sonnet".to_string(),
1587 provider: Some("anthropic".to_string()),
1588 };
1589 let agent = AgentDefinition::new("test", "Test").with_model(model);
1590 assert!(agent.model.is_some());
1591 assert_eq!(agent.model.unwrap().provider, Some("anthropic".to_string()));
1592 }
1593
1594 #[test]
1595 fn test_model_config_from_model_ref() {

Callers

nothing calls this directly

Calls 1

with_modelMethod · 0.45

Tested by

no test coverage detected