class

Smith::LLM::Provider

Inherits Reference < Object

Instance methods

complete(request : Request) : Response
Source
complete_streaming(request : Request, &on_delta : String -> Nil) : Response

Streaming entry point. The default does no streaming at all — it runs complete() and hands the text over in one piece.

That default is what makes deltas universal: callers always see them, whether or not the provider streams, so neither the agent loop nor the renderers need a special case. Providers override this; when streaming is switched off they call super.

Source
default_model
Source
name
Source
on_thinking

Live thinking chunks, when a provider produces them. A property rather than a second block parameter, so the streaming signature every adapter implements stays as it is.

Source
on_thinking=(on_thinking : Proc(String, Nil) | Nil)

Live thinking chunks, when a provider produces them. A property rather than a second block parameter, so the streaming signature every adapter implements stays as it is.

Source
timeouts
Source