Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsCompactionLimitReachedErrorObject
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Sessions::BetaManagedAgentsCompactionLimitReachedErrorObject
- Defined in:
- lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rb,
sig/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rbs
Defined Under Namespace
Modules: RetryStatus
Instance Attribute Summary collapse
-
#message ⇒ String
Human-readable error description.
-
#retry_status ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsRetryStatusRetrying, ...
What the client should do next.
- #type ⇒ Symbol, :compaction_limit_reached_error
Instance Method Summary collapse
-
#initialize(message:, retry_status:, type: :compaction_limit_reached_error) ⇒ BetaManagedAgentsCompactionLimitReachedErrorObject
constructor
The turn stopped because the context was compacted the maximum number of times in a row without the model producing a message or a tool call, not because a request failed.
- #to_hash ⇒ { message: String, retry_status: Anthropic::Models::Beta::Sessions::BetaManagedAgentsCompactionLimitReachedErrorObject::retry_status, type: :compaction_limit_reached_error }
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(message:, retry_status:, type: :compaction_limit_reached_error) ⇒ BetaManagedAgentsCompactionLimitReachedErrorObject
The turn stopped because the context was compacted the maximum number of times
in a row without the model producing a message or a tool call, not because a
request failed. The thread goes idle with stop_reason: retries_exhausted (a
child thread then terminates); the next user.message starts a new turn.
|
|
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rb', line 26
|
Instance Attribute Details
#message ⇒ String
Human-readable error description.
12 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rb', line 12 required :message, String |
#retry_status ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsRetryStatusRetrying, ...
What the client should do next.
18 19 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rb', line 18 required :retry_status, union: -> { Anthropic::Beta::Sessions::BetaManagedAgentsCompactionLimitReachedErrorObject::RetryStatus } |
#type ⇒ Symbol, :compaction_limit_reached_error
24 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rb', line 24 required :type, const: :compaction_limit_reached_error |
Instance Method Details
#to_hash ⇒ { message: String, retry_status: Anthropic::Models::Beta::Sessions::BetaManagedAgentsCompactionLimitReachedErrorObject::retry_status, type: :compaction_limit_reached_error }
25 26 27 28 29 |
# File 'sig/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rbs', line 25
def to_hash: -> {
message: String,
retry_status: Anthropic::Models::Beta::Sessions::BetaManagedAgentsCompactionLimitReachedErrorObject::retry_status,
type: :compaction_limit_reached_error
}
|