Class: OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult
- Defined in:
- lib/openai/models/beta/agent_session_input_param.rb,
sig/openai/models/beta/agent_session_input_param.rbs
Defined Under Namespace
Classes: Response
Instance Attribute Summary collapse
-
#request_id ⇒ String
The opaque approval ID from the required action.
-
#response ⇒ OpenAI::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response
The user's decision for a pending MCP tool call.
-
#type ⇒ :"agent.session.input.mcp_approval_request_result"
The type of the object.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(request_id:, response:, type: :"agent.session.input.mcp_approval_request_result") ⇒ AgentSessionInputMcpApprovalRequestResult
constructor
A new instance of AgentSessionInputMcpApprovalRequestResult.
- #to_hash ⇒ { request_id: String, response: OpenAI::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response, ?type: :"agent.session.input.mcp_approval_request_result" }
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(request_id:, response:, type: :"agent.session.input.mcp_approval_request_result") ⇒ AgentSessionInputMcpApprovalRequestResult
Returns a new instance of AgentSessionInputMcpApprovalRequestResult.
|
|
# File 'lib/openai/models/beta/agent_session_input_param.rb', line 65
|
Instance Attribute Details
#request_id ⇒ String
The opaque approval ID from the required action.
47 |
# File 'lib/openai/models/beta/agent_session_input_param.rb', line 47 required :request_id, String |
#response ⇒ OpenAI::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response
The user's decision for a pending MCP tool call.
53 54 55 56 |
# File 'lib/openai/models/beta/agent_session_input_param.rb', line 53 required( :response, -> { OpenAI::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response } ) |
#type ⇒ :"agent.session.input.mcp_approval_request_result"
The type of the object. Always
agent.session.input.mcp_approval_request_result.
63 |
# File 'lib/openai/models/beta/agent_session_input_param.rb', line 63 required :type, const: :"agent.session.input.mcp_approval_request_result" |
Instance Method Details
#to_hash ⇒ { request_id: String, response: OpenAI::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response, ?type: :"agent.session.input.mcp_approval_request_result" }
45 46 47 48 49 |
# File 'sig/openai/models/beta/agent_session_input_param.rbs', line 45
def to_hash: -> {
request_id: String,
response: OpenAI::Beta::AgentSessionInputParam::AgentSessionInputMcpApprovalRequestResult::Response,
?type: :"agent.session.input.mcp_approval_request_result"
}
|