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

Function session_options_maps_parallel_delegation_controls

sdk/node/src/lib.rs:6037–6058  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6035
6036 #[test]
6037 fn session_options_maps_parallel_delegation_controls() {
6038 let opts = js_session_options_to_rust(Some(SessionOptions {
6039 max_parallel_tasks: Some(3),
6040 auto_delegation: Some(AutoDelegationOptions {
6041 enabled: Some(true),
6042 auto_parallel: Some(true),
6043 min_confidence: Some(0.8),
6044 max_tasks: Some(2),
6045 }),
6046 auto_parallel: Some(false),
6047 ..Default::default()
6048 }))
6049 .unwrap();
6050
6051 assert_eq!(opts.max_parallel_tasks, Some(3));
6052 assert_eq!(opts.auto_parallel_delegation, Some(false));
6053 let auto = opts.auto_delegation.expect("auto delegation options");
6054 assert!(auto.enabled);
6055 assert!(!auto.auto_parallel);
6056 assert!((auto.min_confidence - 0.8).abs() < f32::EPSILON);
6057 assert_eq!(auto.max_tasks, 2);
6058 }
6059
6060 #[test]
6061 fn session_options_maps_active_skill_tool_restriction_control() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80

Tested by

no test coverage detected