diff --git a/lib/openai/models/chat/chat_completion_message_function_tool_call.rb b/lib/openai/models/chat/chat_completion_message_function_tool_call.rb index a9514a10..3cd8808a 100644 --- a/lib/openai/models/chat/chat_completion_message_function_tool_call.rb +++ b/lib/openai/models/chat/chat_completion_message_function_tool_call.rb @@ -42,6 +42,12 @@ class Function < OpenAI::Internal::Type::BaseModel # @return [String] required :arguments, String + # @!attribute parsed + # The parsed contents of the arguments. + # + # @return [Object, nil] + required :parsed, OpenAI::StructuredOutput::ParsedJson + # @!attribute name # The name of the function to call. # diff --git a/rbi/openai/models/chat/chat_completion_message_function_tool_call.rbi b/rbi/openai/models/chat/chat_completion_message_function_tool_call.rbi index a6d11892..d62f0f17 100644 --- a/rbi/openai/models/chat/chat_completion_message_function_tool_call.rbi +++ b/rbi/openai/models/chat/chat_completion_message_function_tool_call.rbi @@ -85,6 +85,10 @@ module OpenAI sig { returns(String) } attr_accessor :arguments + # The parsed contents of the arguments. + sig { returns(T.anything) } + attr_accessor :parsed + # The name of the function to call. sig { returns(String) } attr_accessor :name diff --git a/rbi/openai/resources/responses.rbi b/rbi/openai/resources/responses.rbi index e25d90d2..7a2577b3 100644 --- a/rbi/openai/resources/responses.rbi +++ b/rbi/openai/resources/responses.rbi @@ -591,7 +591,6 @@ module OpenAI OpenAI::Responses::Tool::CodeInterpreter::OrHash, OpenAI::Responses::Tool::ImageGeneration::OrHash, OpenAI::Responses::Tool::LocalShell::OrHash, - OpenAI::Responses::Tool::Custom::OrHash, OpenAI::Responses::WebSearchTool::OrHash ) ]