class

Cri::Provider

Inherits Reference < Object

Generic provider runtime. Provider identity/configuration comes from the registration; wire semantics come from the selected APIClient.

Constructors

new(registration : ProviderRegistration, client : APIClient)
Source
new

The no-argument initializer keeps the public Provider seam usable for custom/native implementations that override complete.

Source

Instance methods

client
Source
complete(messages : Array(Message), tools : Array(ToolSpec), settings : ModelSettings) : AssistantResponse
Source
complete(messages : Array(Message), tools : Array(ToolSpec)) : AssistantResponse
Source
complete_stream(messages : Array(Message), tools : Array(ToolSpec), settings : ModelSettings = ModelSettings.new, &on_text : String -> Nil) : AssistantResponse
Source
registration
Source
supports_streaming?
Source