Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsAgentAutoEvaluatedPermissionDeny

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb,
sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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(reason_code:, type: :deny) ⇒ BetaManagedAgentsAgentAutoEvaluatedPermissionDeny

The server judged the invocation high-risk; it does not execute and a synthetic error tool result is appended.

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Sessions::BetaManagedAgentsAgentAutoEvaluatedPermissionDeny for more details.

"high_

Parameters:

  • reason_code (String)

    The judgement's grounds in registry-bound terms. Open registry; currently

  • type (Symbol, :deny) (defaults to: :deny)
  • reason_code: (String)
  • type: (:deny) (defaults to: :deny)


# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb', line 21


Instance Attribute Details

#reason_codeString

The judgement's grounds in registry-bound terms. Open registry; currently "high_risk" (judged high-risk; the call does not run). Clients must tolerate values outside this set.

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb', line 14

required :reason_code, String

#typeSymbol, :deny

Parameters:

  • value (:deny)

Returns:

  • (Symbol, :deny)


19
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb', line 19

required :type, const: :deny

Instance Method Details

#to_hash{ reason_code: String, type: :deny }

Returns:

  • ({ reason_code: String, type: :deny })


15
# File 'sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbs', line 15

def to_hash: -> { reason_code: String, type: :deny }