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

Function test_session_with_model_override

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

Source from the content-addressed store, hash-verified

459
460#[tokio::test]
461async fn test_session_with_model_override() {
462 let agent = Agent::from_config(test_config()).await.unwrap();
463 let opts = SessionOptions::new().with_model("openai/gpt-4o");
464 let session = agent.session("/tmp/test-workspace", Some(opts));
465 assert!(session.is_ok());
466}
467
468#[tokio::test]
469async fn test_session_with_invalid_model_format() {

Callers

nothing calls this directly

Calls 3

test_configFunction · 0.70
with_modelMethod · 0.45
sessionMethod · 0.45

Tested by

no test coverage detected