Class: OpenAI::Models::BetaResponseOutputItem::Beta::BetaResponseOutputItem::McpCall

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_response_output_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



852
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 852

def initialize: (

Instance Attribute Details

#agentOpenAI::Beta::BetaResponseOutputItem::McpCall::Agent?

Returns the value of attribute agent.

Returns:

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


838
839
840
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 838

def agent
  @agent
end

#approval_request_idString?

Returns the value of attribute approval_request_id.

Returns:

  • (String, nil)


840
841
842
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 840

def approval_request_id
  @approval_request_id
end

#argumentsString

Returns the value of attribute arguments.

Returns:

  • (String)


830
831
832
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 830

def arguments
  @arguments
end

#errorString?

Returns the value of attribute error.

Returns:

  • (String, nil)


842
843
844
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 842

def error
  @error
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


828
829
830
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 828

def id
  @id
end

#nameString

Returns the value of attribute name.

Returns:

  • (String)


832
833
834
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 832

def name
  @name
end

#outputString?

Returns the value of attribute output.

Returns:

  • (String, nil)


844
845
846
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 844

def output
  @output
end

#server_labelString

Returns the value of attribute server_label.

Returns:

  • (String)


834
835
836
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 834

def server_label
  @server_label
end

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

Returns the value of attribute status.

Returns:

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


846
847
848
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 846

def status
  @status
end

#type:mcp_call

Returns the value of attribute type.

Returns:

  • (:mcp_call)


836
837
838
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 836

def type
  @type
end

Instance Method Details

#status=Object (readonly)



848
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 848

def status=: (

#to_hash{

Returns:

  • ({)


865
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 865

def to_hash: -> {