Class: Anthropic::Models::Beta::BetaDiagnosticsParam
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaDiagnosticsParam
- Defined in:
- lib/anthropic/models/beta/beta_diagnostics_param.rb,
sig/anthropic/models/beta/beta_diagnostics_param.rbs
Instance Attribute Summary collapse
-
#previous_message_id ⇒ String?
The
id(msg_...) from this client's previous /v1/messages response.
Instance Method Summary collapse
-
#initialize ⇒ BetaDiagnosticsParam
constructor
A new instance of BetaDiagnosticsParam.
- #to_hash ⇒ { previous_message_id: String? }
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 ⇒ BetaDiagnosticsParam
Returns a new instance of BetaDiagnosticsParam.
11 |
# File 'sig/anthropic/models/beta/beta_diagnostics_param.rbs', line 11
def initialize: (?previous_message_id: String?) -> void
|
Instance Attribute Details
#previous_message_id ⇒ String?
The id (msg_...) from this client's previous /v1/messages response. The
server compares that request's prompt fingerprint against this one and returns
diagnostics.cache_miss_reason when the prompt-cache prefix could not be
reused. Pass null on the first turn to opt in without a prior message to
compare.
15 |
# File 'lib/anthropic/models/beta/beta_diagnostics_param.rb', line 15 optional :previous_message_id, String, nil?: true |
Instance Method Details
#to_hash ⇒ { previous_message_id: String? }
13 |
# File 'sig/anthropic/models/beta/beta_diagnostics_param.rbs', line 13
def to_hash: -> { previous_message_id: String? }
|