Class: Cerca::Models::ContentBlock::ToolResultContentBlock

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cerca/models/content_block.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Cerca::Internal::Type::BaseModel

Instance Attribute Details

#contentString

Returns:

  • (String)


94
# File 'lib/cerca/models/content_block.rb', line 94

required :content, String

#denied_by_userBoolean?

Returns:

  • (Boolean, nil)


114
# File 'lib/cerca/models/content_block.rb', line 114

optional :denied_by_user, Cerca::Internal::Type::Boolean, api_name: :deniedByUser

#is_errorBoolean

Returns:

  • (Boolean)


99
# File 'lib/cerca/models/content_block.rb', line 99

required :is_error, Cerca::Internal::Type::Boolean, api_name: :isError

#provider_metadataHash{Symbol=>Hash{Symbol=>String}}?

Returns:

  • (Hash{Symbol=>Hash{Symbol=>String}}, nil)


119
120
121
# File 'lib/cerca/models/content_block.rb', line 119

optional :provider_metadata,
Cerca::Internal::Type::HashOf[Cerca::Internal::Type::HashOf[String]],
api_name: :providerMetadata

#tool_use_idString

Returns:

  • (String)


104
# File 'lib/cerca/models/content_block.rb', line 104

required :tool_use_id, String, api_name: :toolUseId

#typeSymbol, :tool_result

Returns:

  • (Symbol, :tool_result)


109
# File 'lib/cerca/models/content_block.rb', line 109

required :type, const: :tool_result