Skip to content

Commit 70ffaa8

Browse files
ms-jpqstainless-app[bot]
authored andcommitted
fix(respones): undo accidently deleted fields (#177)
1 parent 792c710 commit 70ffaa8

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

lib/openai/models/chat/chat_completion_message_function_tool_call.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ class Function < OpenAI::Internal::Type::BaseModel
4242
# @return [String]
4343
required :arguments, String
4444

45+
# @!attribute parsed
46+
# The parsed contents of the arguments.
47+
#
48+
# @return [Object, nil]
49+
required :parsed, OpenAI::StructuredOutput::ParsedJson
50+
4551
# @!attribute name
4652
# The name of the function to call.
4753
#

rbi/openai/models/chat/chat_completion_message_function_tool_call.rbi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ module OpenAI
8585
sig { returns(String) }
8686
attr_accessor :arguments
8787

88+
# The parsed contents of the arguments.
89+
sig { returns(T.anything) }
90+
attr_accessor :parsed
91+
8892
# The name of the function to call.
8993
sig { returns(String) }
9094
attr_accessor :name

rbi/openai/resources/responses.rbi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,6 @@ module OpenAI
591591
OpenAI::Responses::Tool::CodeInterpreter::OrHash,
592592
OpenAI::Responses::Tool::ImageGeneration::OrHash,
593593
OpenAI::Responses::Tool::LocalShell::OrHash,
594-
OpenAI::Responses::Tool::Custom::OrHash,
595594
OpenAI::Responses::WebSearchTool::OrHash
596595
)
597596
]

0 commit comments

Comments
 (0)