Class: Zavudev::Models::AgentTestResponse::ExecutedToolCall
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::AgentTestResponse::ExecutedToolCall
- Defined in:
- lib/zavudev/models/agent_test_response.rb,
sig/zavudev/models/agent_test_response.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(name:, ok:, error: nil) ⇒ ExecutedToolCall
constructor
A new instance of ExecutedToolCall.
- #to_hash ⇒ { name: String, ok: bool, error: 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(name:, ok:, error: nil) ⇒ ExecutedToolCall
Returns a new instance of ExecutedToolCall.
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/zavudev/models/agent_test_response.rb', line 94 class ExecutedToolCall < Zavudev::Internal::Type::BaseModel # @!attribute name # # @return [String] required :name, String # @!attribute ok # # @return [Boolean] required :ok, Zavudev::Internal::Type::Boolean # @!attribute error # # @return [String, nil] optional :error, String, nil?: true # @!method initialize(name:, ok:, error: nil) # @param name [String] # @param ok [Boolean] # @param error [String, nil] end |
Instance Attribute Details
#error ⇒ String?
108 |
# File 'lib/zavudev/models/agent_test_response.rb', line 108 optional :error, String, nil?: true |
#name ⇒ String
98 |
# File 'lib/zavudev/models/agent_test_response.rb', line 98 required :name, String |
#ok ⇒ Boolean
103 |
# File 'lib/zavudev/models/agent_test_response.rb', line 103 required :ok, Zavudev::Internal::Type::Boolean |
Instance Method Details
#to_hash ⇒ { name: String, ok: bool, error: String? }
74 |
# File 'sig/zavudev/models/agent_test_response.rbs', line 74
def to_hash: -> { name: String, ok: bool, error: String? }
|