struct

Crig::Providers::OpenAI::CompletionModel

Inherits Crig::Completion::CompletionModel < Struct < Value < Object

Constructors

new(client : CompletionsClient, model : String, strict_tools : Bool = false, tool_result_array_content : Bool = false)
Source
with_model(client : CompletionsClient, model : String) : self
Source

Instance methods

client
Source
composes_native_output_with_tools?

Whether the model supports native structured output alongside tool calls. OpenAI Chat Completions defers response_format while tools are present and no tool result exists yet, then applies it once tools have run. Override to true for providers where native output composes with tools.

Source
into_agent_builder
Source
model
Source
strict_tools?
Source
tool_result_array_content?
Source
with_model(model : String) : self
Source
with_strict_tools
Source
with_tool_result_array_content
Source