struct

Crig::ExtractorBuilder(M, T)

Inherits Struct < Value < Object

Constructors

new(model : M, agent_builder : AgentBuilder(M) = (((AgentBuilder(M).new(model)) .preamble(EXTRACTOR_PREAMBLE)) .output_schema(T)) .tool_choice(Crig::Completion::ToolChoice.required), retries_value : Int32 = 0)
Source

Instance methods

additional_params(params : JSON::Any) : self
Source
agent_builder
Source
build
Source
context(doc : String) : self
Source
dynamic_context(sample : Int32, dynamic_context) : self
Source
max_tokens(max_tokens : Int64) : self
Source
preamble(preamble : String) : self
Source
retries(retries : Int32) : self
Source
retries_value
Source
tool_choice(choice : Crig::Completion::ToolChoice) : self
Source