Class: OpenAI::Models::Conversations::ConversationItem::McpApprovalRequest

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/conversations/conversation_item.rb

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_with_error, 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 OpenAI::Internal::Type::BaseModel

Instance Attribute Details

#argumentsString

A JSON string of arguments for the tool.

Returns:

  • (String)


788
# File 'lib/openai/models/conversations/conversation_item.rb', line 788

required :arguments, String

#idString

The unique ID of the approval request.

Returns:

  • (String)


782
# File 'lib/openai/models/conversations/conversation_item.rb', line 782

required :id, String

#nameString

The name of the tool to run.

Returns:

  • (String)


794
# File 'lib/openai/models/conversations/conversation_item.rb', line 794

required :name, String

#server_labelString

The label of the MCP server making the request.

Returns:

  • (String)


800
# File 'lib/openai/models/conversations/conversation_item.rb', line 800

required :server_label, String

#typeSymbol, :mcp_approval_request

The type of the item. Always mcp_approval_request.

Returns:

  • (Symbol, :mcp_approval_request)


806
# File 'lib/openai/models/conversations/conversation_item.rb', line 806

required :type, const: :mcp_approval_request