Class: Telnyx::Models::WebSearch::ResearchRetrieveResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::WebSearch::ResearchRetrieveResponse::Data
- Defined in:
- lib/telnyx/models/web_search/research_retrieve_response.rb,
sig/telnyx/models/web_search/research_retrieve_response.rbs
Overview
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
-
#answer ⇒ String?
The synthesized research answer (present when status is
completed). -
#citations ⇒ Array<Telnyx::Models::WebSearch::ResearchCitation>?
Sources cited in the answer (present when status is
completed). -
#error ⇒ String?
Always present in poll responses;
nullunless the task failed. -
#status ⇒ Symbol, Telnyx::Models::WebSearch::ResearchRetrieveResponse::Data::Status
Current status of the research task.
-
#task_id ⇒ String
The research task identifier.
Instance Method Summary collapse
- #initialize(status:, task_id:, answer: nil, citations: nil, error: nil) ⇒ Object constructor
- #to_hash ⇒ {
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(status:, task_id:, answer: nil, citations: nil, error: nil) ⇒ Object
|
|
# File 'lib/telnyx/models/web_search/research_retrieve_response.rb', line 48
|
Instance Attribute Details
#answer ⇒ String?
The synthesized research answer (present when status is completed).
34 |
# File 'lib/telnyx/models/web_search/research_retrieve_response.rb', line 34 optional :answer, String |
#citations ⇒ Array<Telnyx::Models::WebSearch::ResearchCitation>?
Sources cited in the answer (present when status is completed).
40 |
# File 'lib/telnyx/models/web_search/research_retrieve_response.rb', line 40 optional :citations, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WebSearch::ResearchCitation] } |
#error ⇒ String?
Always present in poll responses; null unless the task failed.
46 |
# File 'lib/telnyx/models/web_search/research_retrieve_response.rb', line 46 optional :error, String, nil?: true |
#status ⇒ Symbol, Telnyx::Models::WebSearch::ResearchRetrieveResponse::Data::Status
Current status of the research task.
22 |
# File 'lib/telnyx/models/web_search/research_retrieve_response.rb', line 22 required :status, enum: -> { Telnyx::Models::WebSearch::ResearchRetrieveResponse::Data::Status } |
#task_id ⇒ String
The research task identifier.
28 |
# File 'lib/telnyx/models/web_search/research_retrieve_response.rb', line 28 required :task_id, String |
Instance Method Details
#to_hash ⇒ {
56 |
# File 'sig/telnyx/models/web_search/research_retrieve_response.rbs', line 56
def to_hash: -> {
|