module LLM::NativeToolCalling

Defined in:

llm/native_tool_calling.cr

Constant Summary

DEFAULT_ALLOWLIST = ["openai", "xai", "github"]
KNOWN_PROVIDERS = ["openai", "xai", "github", "azure", "ollama", "vllm", "lmstudio"]

Providers for which native tool-calling is actually wired up. Used to validate --ai-native-tools-allowlist so a typo (e.g. opena) surfaces a warning instead of silently never matching.

Class Method Summary

Class Method Detail

def self.canonical_provider(provider : String) : String #

[View source]
def self.default_allowlist : Array(String) #

[View source]
def self.default_allowlist_csv : String #

[View source]
def self.known_provider?(provider : String) : Bool #

[View source]
def self.normalize_allowlist(allowlist : Array(String) | Nil = nil) : Array(String) #

[View source]