Class: OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/beta/agent_session_input_param.rb,
sig/openai/models/beta/agent_session_input_param.rbs

Overview

See Also:

  • OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult#response

Defined Under Namespace

Modules: Decision

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_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(decision:, type: :mcp_tool_call) ⇒ Response

Returns a new instance of Response.

Parameters:

  • decision —

    Cancel dismisses this request without cancelling the session or turn.

  • type (defaults to: :mcp_tool_call) —

    The type of the object. Always mcp_tool_call.

  • decision: (OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response::decision)
  • type: (:mcp_tool_call) (defaults to: :mcp_tool_call)


# File 'lib/openai/models/beta/agent_session_input_param.rb', line 97

Instance Attribute Details

#decision ⇒ OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response::decision

Cancel dismisses this request without cancelling the session or turn.

Returns:

  • (OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response::decision)


84
85
86
87
88
89
# File 'lib/openai/models/beta/agent_session_input_param.rb', line 84

required(
  :decision,
  enum: -> {
    OpenAI::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response::Decision
  }
)

#type ⇒ :mcp_tool_call

The type of the object. Always mcp_tool_call.

Returns:

  • (:mcp_tool_call)


95
# File 'lib/openai/models/beta/agent_session_input_param.rb', line 95

required :type, const: :mcp_tool_call

Instance Method Details

#to_hash ⇒ { decision: OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response::decision, ?type: :mcp_tool_call }

Returns:

  • ({ decision: OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response::decision, ?type: :mcp_tool_call })


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

def to_hash: -> {
  decision: OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response::decision,
  ?type: :mcp_tool_call
}