Class: Cerca::Models::ContentBlock::ToolUseContentBlock

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

#idString

Returns:

  • (String)


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

required :id, String

#inputObject

Any JSON value. Generated SDKs may expose this value boundary as unknown or Any.

Returns:

  • (Object)


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

required :input, Cerca::Internal::Type::Unknown

#nameSymbol, Cerca::Models::ToolName

Returns:



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

required :name, enum: -> { Cerca::ToolName }

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

Returns:

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


71
72
73
# File 'lib/cerca/models/content_block.rb', line 71

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

#typeSymbol, :tool_use

Returns:

  • (Symbol, :tool_use)


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

required :type, const: :tool_use