Class: OpenAI::Models::BetaTool::Beta::BetaTool::Mcp

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_tool.rbs

Defined Under Namespace

Modules: AllowedCaller, AllowedTools, ConnectorID, RequireApproval

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



82
# File 'sig/openai/models/beta/beta_tool.rbs', line 82

def initialize: (

Instance Attribute Details

#allowed_callers::Array[OpenAI::Models::Beta::BetaTool::Mcp::allowed_caller]?

Returns the value of attribute allowed_callers.

Returns:

  • (::Array[OpenAI::Models::Beta::BetaTool::Mcp::allowed_caller], nil)


48
49
50
# File 'sig/openai/models/beta/beta_tool.rbs', line 48

def allowed_callers
  @allowed_callers
end

#allowed_toolsOpenAI::Models::Beta::BetaTool::Mcp::allowed_tools?

Returns the value of attribute allowed_tools.

Returns:

  • (OpenAI::Models::Beta::BetaTool::Mcp::allowed_tools, nil)


50
51
52
# File 'sig/openai/models/beta/beta_tool.rbs', line 50

def allowed_tools
  @allowed_tools
end

#authorizationString? (readonly)

Returns the value of attribute authorization.

Returns:

  • (String, nil)


52
53
54
# File 'sig/openai/models/beta/beta_tool.rbs', line 52

def authorization
  @authorization
end

#connector_idOpenAI::Models::Beta::BetaTool::Mcp::connector_id? (readonly)

Returns the value of attribute connector_id.

Returns:

  • (OpenAI::Models::Beta::BetaTool::Mcp::connector_id, nil)


56
57
58
# File 'sig/openai/models/beta/beta_tool.rbs', line 56

def connector_id
  @connector_id
end

#defer_loadingBoolean? (readonly)

Returns the value of attribute defer_loading.

Returns:



62
63
64
# File 'sig/openai/models/beta/beta_tool.rbs', line 62

def defer_loading
  @defer_loading
end

#headers::Hash[Symbol, String]?

Returns the value of attribute headers.

Returns:

  • (::Hash[Symbol, String], nil)


66
67
68
# File 'sig/openai/models/beta/beta_tool.rbs', line 66

def headers
  @headers
end

#require_approvalOpenAI::Models::Beta::BetaTool::Mcp::require_approval?

Returns the value of attribute require_approval.

Returns:

  • (OpenAI::Models::Beta::BetaTool::Mcp::require_approval, nil)


68
69
70
# File 'sig/openai/models/beta/beta_tool.rbs', line 68

def require_approval
  @require_approval
end

#server_descriptionString? (readonly)

Returns the value of attribute server_description.

Returns:

  • (String, nil)


70
71
72
# File 'sig/openai/models/beta/beta_tool.rbs', line 70

def server_description
  @server_description
end

#server_labelString

Returns the value of attribute server_label.

Returns:

  • (String)


44
45
46
# File 'sig/openai/models/beta/beta_tool.rbs', line 44

def server_label
  @server_label
end

#server_urlString? (readonly)

Returns the value of attribute server_url.

Returns:

  • (String, nil)


74
75
76
# File 'sig/openai/models/beta/beta_tool.rbs', line 74

def server_url
  @server_url
end

#tunnel_idString? (readonly)

Returns the value of attribute tunnel_id.

Returns:

  • (String, nil)


78
79
80
# File 'sig/openai/models/beta/beta_tool.rbs', line 78

def tunnel_id
  @tunnel_id
end

#type:mcp

Returns the value of attribute type.

Returns:

  • (:mcp)


46
47
48
# File 'sig/openai/models/beta/beta_tool.rbs', line 46

def type
  @type
end

Instance Method Details

#authorization=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


54
# File 'sig/openai/models/beta/beta_tool.rbs', line 54

def authorization=: (String) -> String

#connector_id=Object (readonly)



58
# File 'sig/openai/models/beta/beta_tool.rbs', line 58

def connector_id=: (

#defer_loading=Boolean (readonly)

Parameters:

Returns:



64
# File 'sig/openai/models/beta/beta_tool.rbs', line 64

def defer_loading=: (bool) -> bool

#server_description=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


72
# File 'sig/openai/models/beta/beta_tool.rbs', line 72

def server_description=: (String) -> String

#server_url=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


76
# File 'sig/openai/models/beta/beta_tool.rbs', line 76

def server_url=: (String) -> String

#to_hash{

Returns:

  • ({)


97
# File 'sig/openai/models/beta/beta_tool.rbs', line 97

def to_hash: -> {

#tunnel_id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


80
# File 'sig/openai/models/beta/beta_tool.rbs', line 80

def tunnel_id=: (String) -> String