pub fn supports_thinking(model: Option<&ModelSource>) -> boolExpand description
Whether reasoning can be configured for model: true for a model
instance or router; for a string, whether its provider and model take any reasoning level.
None is the harness default model.
use strands_harness::supports_thinking;
assert!(supports_thinking(Some(&"anthropic/claude-haiku-4-5-20251001".into())));
assert!(!supports_thinking(Some(&"bedrock/us.anthropic.claude-3-haiku-20240307-v1:0".into())));
assert!(supports_thinking(None));