struct

Crig::Extractor(M, T)

Inherits Struct < Value < Object

Constructors

new(agent : Agent(M), retries : Int32 = 0)
Source

Instance methods

agent
Source
extract_with_chat_history(text : Crig::Completion::Message | String, chat_history : Array(Crig::Completion::Message)) : T
Source
extract_with_chat_history_with_usage(text : Crig::Completion::Message | String, chat_history : Array(Crig::Completion::Message)) : ExtractionResponse(T)
Source
extract_with_usage(text : Crig::Completion::Message | String) : ExtractionResponse(T)
Source
model
Source
retries
Source