Class: OpenAI::Models::Beta::BetaResponseInputItem::McpApprovalResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseInputItem::McpApprovalResponse
- Defined in:
- lib/openai/models/beta/beta_response_input_item.rb
Defined Under Namespace
Classes: Agent
Instance Attribute Summary collapse
-
#agent ⇒ OpenAI::Models::Beta::BetaResponseInputItem::McpApprovalResponse::Agent?
The agent that produced this item.
-
#approval_request_id ⇒ String
The ID of the approval request being answered.
-
#approve ⇒ Boolean
Whether the request was approved.
-
#id ⇒ String?
The unique ID of the approval response.
-
#reason ⇒ String?
Optional reason for the decision.
-
#type ⇒ Symbol, :mcp_approval_response
The type of the item.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(approval_request_id:, approve:, id: nil, agent: nil, reason: nil, type: :mcp_approval_response) ⇒ Object
constructor
A response to an MCP approval request.
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
#initialize(approval_request_id:, approve:, id: nil, agent: nil, reason: nil, type: :mcp_approval_response) ⇒ Object
A response to an MCP approval request.
|
|
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2802
|
Instance Attribute Details
#agent ⇒ OpenAI::Models::Beta::BetaResponseInputItem::McpApprovalResponse::Agent?
The agent that produced this item.
2794 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2794 optional :agent, -> { OpenAI::Beta::BetaResponseInputItem::McpApprovalResponse::Agent }, nil?: true |
#approval_request_id ⇒ String
The ID of the approval request being answered.
2770 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2770 required :approval_request_id, String |
#approve ⇒ Boolean
Whether the request was approved.
2776 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2776 required :approve, OpenAI::Internal::Type::Boolean |
#id ⇒ String?
The unique ID of the approval response
2788 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2788 optional :id, String, nil?: true |
#reason ⇒ String?
Optional reason for the decision.
2800 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2800 optional :reason, String, nil?: true |
#type ⇒ Symbol, :mcp_approval_response
The type of the item. Always mcp_approval_response.
2782 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2782 required :type, const: :mcp_approval_response |