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

Function test_config

core/src/agent_api/tests.rs:271–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269}
270
271fn test_config() -> CodeConfig {
272 CodeConfig {
273 default_model: Some("anthropic/claude-sonnet-4-20250514".to_string()),
274 providers: vec![
275 ProviderConfig {
276 name: "anthropic".to_string(),
277 api_key: Some("test-key".to_string()),
278 base_url: None,
279 headers: std::collections::HashMap::new(),
280 session_id_header: None,
281 models: vec![ModelConfig {
282 id: "claude-sonnet-4-20250514".to_string(),
283 name: "Claude Sonnet 4".to_string(),
284 family: "claude-sonnet".to_string(),
285 api_key: None,
286 base_url: None,
287 headers: std::collections::HashMap::new(),
288 session_id_header: None,
289 attachment: false,
290 reasoning: false,
291 tool_call: true,
292 temperature: true,
293 release_date: None,
294 modalities: ModelModalities::default(),
295 cost: Default::default(),
296 limit: Default::default(),
297 }],
298 },
299 ProviderConfig {
300 name: "openai".to_string(),
301 api_key: Some("test-openai-key".to_string()),
302 base_url: None,
303 headers: std::collections::HashMap::new(),
304 session_id_header: None,
305 models: vec![ModelConfig {
306 id: "gpt-4o".to_string(),
307 name: "GPT-4o".to_string(),
308 family: "gpt-4".to_string(),
309 api_key: None,
310 base_url: None,
311 headers: std::collections::HashMap::new(),
312 session_id_header: None,
313 attachment: false,
314 reasoning: false,
315 tool_call: true,
316 temperature: true,
317 release_date: None,
318 modalities: ModelModalities::default(),
319 cost: Default::default(),
320 limit: Default::default(),
321 }],
322 },
323 ],
324 ..Default::default()
325 }
326}
327
328fn build_effective_registry_for_test(

Calls

no outgoing calls

Tested by

no test coverage detected