module

Crig::Client::CompletionClient(M)

Shared client mixin for completion-capable providers. This is the ergonomic entry point used throughout the repo: choose a model, then branch into an agent or extractor builder.

Instance methods

agent(model : String) : Crig::AgentBuilder(M)

Build an agent directly from a provider client and model identifier.

Source
completion_model(model : String) : M
Source
extractor(type : T.class, model : String) : Crig::ExtractorBuilder(M, T) forall T

Build a structured extractor directly from a provider client and model identifier.

Source