Skip to main content

ToolSupportDetectorPort

Trait ToolSupportDetectorPort 

Source
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§

Source

fn detect(&self, input: ToolSupportDetectionInput<'_>) -> ToolSupportDetection

Detect tool support based on model metadata.

Implementors§