pub trait ToolSupportDetectorPort: Send + Sync {
// Required method
fn detect(
&self,
input: ToolSupportDetectionInput<'_>,
) -> ToolSupportDetection;
}Expand description
Port for detecting tool/function calling support in models.
Implementations analyze model metadata (chat templates, tags, names) to determine if a model supports tool calling capabilities.
Required Methods§
Sourcefn detect(&self, input: ToolSupportDetectionInput<'_>) -> ToolSupportDetection
fn detect(&self, input: ToolSupportDetectionInput<'_>) -> ToolSupportDetection
Detect tool support based on model metadata.