class LLM::AdapterFactory

Overview

Factory for creating LLM adapters based on provider configuration.

Defined in:

llm/adapter.cr

Class Method Summary

Class Method Detail

def self.for(provider : String, model : String, api_key : String | Nil = nil, event_sink : Proc(String, Nil) | Nil = nil, native_tool_calling_allowlist : Array(String) | Nil = nil) : Adapter #

[View source]
def self.native_tool_calling_enabled_for_provider?(provider : String, allowlist : Array(String) | Nil = nil) : Bool #

[View source]