Class: OpenAI::Models::Realtime::ResponseMcpCallArgumentsDone

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/realtime/response_mcp_call_arguments_done.rb

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

#initialize(arguments:, event_id:, item_id:, output_index:, response_id:, type: :"response.mcp_call_arguments.done") ⇒ Object

Returned when MCP tool call arguments are finalized during response generation.

Parameters:

  • arguments (String)

    The final JSON-encoded arguments string.

  • event_id (String)

    The unique ID of the server event.

  • item_id (String)

    The ID of the MCP tool call item.

  • output_index (Integer)

    The index of the output item in the response.

  • response_id (String)

    The ID of the response.

  • type (Symbol, :"response.mcp_call_arguments.done") (defaults to: :"response.mcp_call_arguments.done")

    The event type, must be ‘response.mcp_call_arguments.done`.



# File 'lib/openai/models/realtime/response_mcp_call_arguments_done.rb', line 43

Instance Attribute Details

#argumentsString

The final JSON-encoded arguments string.

Returns:

  • (String)


11
# File 'lib/openai/models/realtime/response_mcp_call_arguments_done.rb', line 11

required :arguments, String

#event_idString

The unique ID of the server event.

Returns:

  • (String)


17
# File 'lib/openai/models/realtime/response_mcp_call_arguments_done.rb', line 17

required :event_id, String

#item_idString

The ID of the MCP tool call item.

Returns:

  • (String)


23
# File 'lib/openai/models/realtime/response_mcp_call_arguments_done.rb', line 23

required :item_id, String

#output_indexInteger

The index of the output item in the response.

Returns:

  • (Integer)


29
# File 'lib/openai/models/realtime/response_mcp_call_arguments_done.rb', line 29

required :output_index, Integer

#response_idString

The ID of the response.

Returns:

  • (String)


35
# File 'lib/openai/models/realtime/response_mcp_call_arguments_done.rb', line 35

required :response_id, String

#typeSymbol, :"response.mcp_call_arguments.done"

The event type, must be ‘response.mcp_call_arguments.done`.

Returns:

  • (Symbol, :"response.mcp_call_arguments.done")


41
# File 'lib/openai/models/realtime/response_mcp_call_arguments_done.rb', line 41

required :type, const: :"response.mcp_call_arguments.done"