Class: OpenAI::Models::ConversationItem::Conversations::ConversationItem::McpListTools

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/conversations/conversation_item.rbs

Defined Under Namespace

Classes: Tool

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



381
# File 'sig/openai/models/conversations/conversation_item.rbs', line 381

def initialize: (

Instance Attribute Details

#errorString?

Returns the value of attribute error.

Returns:

  • (String, nil)


379
380
381
# File 'sig/openai/models/conversations/conversation_item.rbs', line 379

def error
  @error
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


371
372
373
# File 'sig/openai/models/conversations/conversation_item.rbs', line 371

def id
  @id
end

#server_labelString

Returns the value of attribute server_label.

Returns:

  • (String)


373
374
375
# File 'sig/openai/models/conversations/conversation_item.rbs', line 373

def server_label
  @server_label
end

#tools::Array[OpenAI::Conversations::ConversationItem::McpListTools::Tool]

Returns the value of attribute tools.

Returns:

  • (::Array[OpenAI::Conversations::ConversationItem::McpListTools::Tool])


375
376
377
# File 'sig/openai/models/conversations/conversation_item.rbs', line 375

def tools
  @tools
end

#type:mcp_list_tools

Returns the value of attribute type.

Returns:

  • (:mcp_list_tools)


377
378
379
# File 'sig/openai/models/conversations/conversation_item.rbs', line 377

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


389
# File 'sig/openai/models/conversations/conversation_item.rbs', line 389

def to_hash: -> {