Class: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage
- Defined in:
- lib/openai/models/decision_create_params.rb,
sig/openai/models/decision_create_params.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#content ⇒ OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::content
A text string or an ordered list of output text and refusal parts.
-
#phase ⇒ OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::phase?
The phase of an assistant message.
- #role ⇒ Symbol, :assistant
- #type ⇒ Symbol, ...
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content:, phase: nil, type: nil, role: :assistant) ⇒ DecisionInputAssistantMessage
constructor
A new instance of DecisionInputAssistantMessage.
- #to_hash ⇒ { content: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::content, ?role: :assistant, ?phase: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::phase?, ?type: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::type_ }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(content:, phase: nil, type: nil, role: :assistant) ⇒ DecisionInputAssistantMessage
Returns a new instance of DecisionInputAssistantMessage.
|
|
# File 'lib/openai/models/decision_create_params.rb', line 363
|
Instance Attribute Details
#content ⇒ OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::content
A text string or an ordered list of output text and refusal parts.
333 334 335 336 |
# File 'lib/openai/models/decision_create_params.rb', line 333 required( :content, union: -> { OpenAI::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::Content } ) |
#phase ⇒ OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::phase?
The phase of an assistant message.
347 348 349 350 351 352 353 |
# File 'lib/openai/models/decision_create_params.rb', line 347 optional( :phase, enum: -> { OpenAI::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::Phase }, nil?: true ) |
#role ⇒ Symbol, :assistant
341 |
# File 'lib/openai/models/decision_create_params.rb', line 341 required :role, const: :assistant |
#type ⇒ Symbol, ...
358 359 360 361 |
# File 'lib/openai/models/decision_create_params.rb', line 358 optional( :type, enum: -> { OpenAI::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::Type } ) |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/decision_create_params.rb', line 465
|
Instance Method Details
#to_hash ⇒ { content: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::content, ?role: :assistant, ?phase: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::phase?, ?type: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::type_ }
379 380 381 382 383 384 |
# File 'sig/openai/models/decision_create_params.rbs', line 379
def to_hash: -> {
content: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::content,
?role: :assistant,
?phase: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::phase?,
?type: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::DecisionInputAssistantMessage::type_
}
|