Class: OpenAI::Models::BetaResponseInputItem::Beta::BetaResponseInputItem::McpCall

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

Defined Under Namespace

Modules: Status Classes: Agent

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, 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

#initializeObject



1818
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1818

def initialize: (

Instance Attribute Details

#agentOpenAI::Beta::BetaResponseInputItem::McpCall::Agent?

Returns the value of attribute agent.

Returns:

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


1804
1805
1806
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1804

def agent
  @agent
end

#approval_request_idString?

Returns the value of attribute approval_request_id.

Returns:

  • (String, nil)


1806
1807
1808
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1806

def approval_request_id
  @approval_request_id
end

#argumentsString

Returns the value of attribute arguments.

Returns:

  • (String)


1796
1797
1798
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1796

def arguments
  @arguments
end

#errorOpenAI::Models::Beta::beta_mcp_tool_call_error?

Returns the value of attribute error.

Returns:

  • (OpenAI::Models::Beta::beta_mcp_tool_call_error, nil)


1808
1809
1810
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1808

def error
  @error
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


1794
1795
1796
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1794

def id
  @id
end

#nameString

Returns the value of attribute name.

Returns:

  • (String)


1798
1799
1800
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1798

def name
  @name
end

#outputString?

Returns the value of attribute output.

Returns:

  • (String, nil)


1810
1811
1812
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1810

def output
  @output
end

#server_labelString

Returns the value of attribute server_label.

Returns:

  • (String)


1800
1801
1802
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1800

def server_label
  @server_label
end

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

Returns the value of attribute status.

Returns:

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


1812
1813
1814
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1812

def status
  @status
end

#type:mcp_call

Returns the value of attribute type.

Returns:

  • (:mcp_call)


1802
1803
1804
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1802

def type
  @type
end

Instance Method Details

#status=Object (readonly)



1814
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1814

def status=: (

#to_hash{

Returns:

  • ({)


1831
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1831

def to_hash: -> {