Class: OpenAI::Models::Responses::ResponseCompactParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/openai/models/responses/response_compact_params.rb

Overview

Defined Under Namespace

Modules: Input, Model

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(model:, input: nil, instructions: nil, previous_response_id: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Responses::ResponseCompactParams for more details.

Parameters:



# File 'lib/openai/models/responses/response_compact_params.rb', line 45

Instance Attribute Details

#inputString, ...

Text, image, or file inputs to the model, used to generate a response

Returns:



25
# File 'lib/openai/models/responses/response_compact_params.rb', line 25

optional :input, union: -> { OpenAI::Responses::ResponseCompactParams::Input }, nil?: true

#instructionsString?

A system (or developer) message inserted into the model’s context. When used along with ‘previous_response_id`, the instructions from a previous response will not be carried over to the next response. This makes it simple to swap out system (or developer) messages in new responses.

Returns:

  • (String, nil)


34
# File 'lib/openai/models/responses/response_compact_params.rb', line 34

optional :instructions, String, nil?: true

#modelSymbol, ...

Model ID used to generate the response, like ‘gpt-5` or `o3`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](platform.openai.com/docs/models) to browse and compare available models.



19
# File 'lib/openai/models/responses/response_compact_params.rb', line 19

required :model, union: -> { OpenAI::Responses::ResponseCompactParams::Model }, nil?: true

#previous_response_idString?

The unique ID of the previous response to the model. Use this to create multi-turn conversations. Learn more about [conversation state](platform.openai.com/docs/guides/conversation-state). Cannot be used in conjunction with ‘conversation`.

Returns:

  • (String, nil)


43
# File 'lib/openai/models/responses/response_compact_params.rb', line 43

optional :previous_response_id, String, nil?: true