Class: Cerca::Models::ThreadStreamEvent::ThreadStreamContentMessage::Message::Content::ToolUse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cerca/models/thread_stream_event.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)


197
# File 'lib/cerca/models/thread_stream_event.rb', line 197

required :id, String

#inputString

JSON-serialized tool input payload. Parse as JSON before reading tool-specific fields.

Returns:

  • (String)


204
# File 'lib/cerca/models/thread_stream_event.rb', line 204

required :input, String

#nameSymbol, Cerca::Models::ToolName

Returns:



209
# File 'lib/cerca/models/thread_stream_event.rb', line 209

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

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

Returns:

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


219
220
221
# File 'lib/cerca/models/thread_stream_event.rb', line 219

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

#typeSymbol, :tool_use

Returns:

  • (Symbol, :tool_use)


214
# File 'lib/cerca/models/thread_stream_event.rb', line 214

required :type, const: :tool_use