struct

Crig::Providers::OpenAI::CompletionResponsePayload

Inherits JSON::Serializable::Unmapped < JSON::Serializable < Struct < Value < Object

Constructors

new(id : String, object : ResponseObject, created_at : Int64, status : ResponseStatus, error : ResponseError | Nil = nil, incomplete_details : IncompleteDetailsReason | Nil = nil, instructions : String | Nil = nil, max_output_tokens : Int64 | Nil = nil, model : String = "", usage : ResponsesUsage | Nil = nil, output : Array(Output) = [] of Output, tools : Array(ResponsesToolDefinition) = [] of ResponsesToolDefinition)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

additional_parameters
Source
created_at
Source
error
Source
incomplete_details
Source
instructions
Source
max_output_tokens
Source
model
Source
object
Source
output
Source
reasoning_metadata
Source
status
Source
to_completion_response
Source
to_json_value
Source
tools
Source
usage
Source