Class: OpenAI::Models::Responses::ResponseInputItem::McpListTools

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_input_item.rb

Defined Under Namespace

Classes: Tool

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, 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 OpenAI::Internal::Type::BaseModel

Instance Attribute Details

#errorString?

Error message if the server could not list tools.

Returns:

  • (String, nil)


616
# File 'lib/openai/models/responses/response_input_item.rb', line 616

optional :error, String, nil?: true

#idString

The unique ID of the list.

Returns:

  • (String)


589
# File 'lib/openai/models/responses/response_input_item.rb', line 589

required :id, String

#server_labelString

The label of the MCP server.

Returns:

  • (String)


595
# File 'lib/openai/models/responses/response_input_item.rb', line 595

required :server_label, String

#toolsArray<OpenAI::Models::Responses::ResponseInputItem::McpListTools::Tool>

The tools available on the server.



601
602
603
604
# File 'lib/openai/models/responses/response_input_item.rb', line 601

required :tools,
-> {
  OpenAI::Internal::Type::ArrayOf[OpenAI::Responses::ResponseInputItem::McpListTools::Tool]
}

#typeSymbol, :mcp_list_tools

The type of the item. Always ‘mcp_list_tools`.

Returns:

  • (Symbol, :mcp_list_tools)


610
# File 'lib/openai/models/responses/response_input_item.rb', line 610

required :type, const: :mcp_list_tools