Class: Cadenya::Models::Objectives::ObjectiveToolCallResultImageBlock

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/objectives/objective_tool_call_result_image_block.rb,
sig/cadenya/models/objectives/objective_tool_call_result_image_block.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

#initializeObject



18
# File 'sig/cadenya/models/objectives/objective_tool_call_result_image_block.rbs', line 18

def initialize: (

Instance Attribute Details

#expires_atTime

Returns the value of attribute expires_at.

Returns:

  • (Time)


10
11
12
# File 'sig/cadenya/models/objectives/objective_tool_call_result_image_block.rbs', line 10

def expires_at
  @expires_at
end

#mime_typeString

Returns the value of attribute mime_type.

Returns:

  • (String)


12
13
14
# File 'sig/cadenya/models/objectives/objective_tool_call_result_image_block.rbs', line 12

def mime_type
  @mime_type
end

#size_bytesString

Returns the value of attribute size_bytes.

Returns:

  • (String)


14
15
16
# File 'sig/cadenya/models/objectives/objective_tool_call_result_image_block.rbs', line 14

def size_bytes
  @size_bytes
end

#urlString

Returns the value of attribute url.

Returns:

  • (String)


16
17
18
# File 'sig/cadenya/models/objectives/objective_tool_call_result_image_block.rbs', line 16

def url
  @url
end

Instance Method Details

#to_hash{

Returns:

  • ({)


25
# File 'sig/cadenya/models/objectives/objective_tool_call_result_image_block.rbs', line 25

def to_hash: -> {