Class: OpenAI::Models::BetaResponseItem::Beta::BetaResponseItem::McpCall

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

Defined Under Namespace

Modules: Status Classes: Agent

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



1041
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1041

def initialize: (

Instance Attribute Details

#agentOpenAI::Beta::BetaResponseItem::McpCall::Agent?

Returns the value of attribute agent.

Returns:

  • (OpenAI::Beta::BetaResponseItem::McpCall::Agent, nil)


1027
1028
1029
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1027

def agent
  @agent
end

#approval_request_idString?

Returns the value of attribute approval_request_id.

Returns:

  • (String, nil)


1029
1030
1031
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1029

def approval_request_id
  @approval_request_id
end

#argumentsString

Returns the value of attribute arguments.

Returns:

  • (String)


1019
1020
1021
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1019

def arguments
  @arguments
end

#errorString?

Returns the value of attribute error.

Returns:

  • (String, nil)


1031
1032
1033
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1031

def error
  @error
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


1017
1018
1019
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1017

def id
  @id
end

#nameString

Returns the value of attribute name.

Returns:

  • (String)


1021
1022
1023
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1021

def name
  @name
end

#outputString?

Returns the value of attribute output.

Returns:

  • (String, nil)


1033
1034
1035
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1033

def output
  @output
end

#server_labelString

Returns the value of attribute server_label.

Returns:

  • (String)


1023
1024
1025
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1023

def server_label
  @server_label
end

#statusOpenAI::Models::Beta::BetaResponseItem::McpCall::status? (readonly)

Returns the value of attribute status.

Returns:

  • (OpenAI::Models::Beta::BetaResponseItem::McpCall::status, nil)


1035
1036
1037
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1035

def status
  @status
end

#type:mcp_call

Returns the value of attribute type.

Returns:

  • (:mcp_call)


1025
1026
1027
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1025

def type
  @type
end

Instance Method Details

#status=Object (readonly)



1037
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1037

def status=: (

#to_hash{

Returns:

  • ({)


1054
# File 'sig/openai/models/beta/beta_response_item.rbs', line 1054

def to_hash: -> {