Class: Zavudev::Models::AgentTestResponse::ExecutedToolCall

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/zavudev/models/agent_test_response.rb,
sig/zavudev/models/agent_test_response.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(name:, ok:, error: nil) ⇒ ExecutedToolCall

Returns a new instance of ExecutedToolCall.

Parameters:

  • (defaults to: nil)
  • (defaults to: nil)


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?

Parameters:

Returns:



108
# File 'lib/zavudev/models/agent_test_response.rb', line 108

optional :error, String, nil?: true

#name ⇒ String

Parameters:

Returns:



98
# File 'lib/zavudev/models/agent_test_response.rb', line 98

required :name, String

#ok ⇒ Boolean

Parameters:

Returns:



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? }

Returns:



74
# File 'sig/zavudev/models/agent_test_response.rbs', line 74

def to_hash: -> { name: String, ok: bool, error: String? }