Package com.openai.models
Interface ToolCallDelta.Visitor
-
- All Implemented Interfaces:
public interface ToolCallDelta.Visitor<T extends Object>
An interface that defines how to map each variant of ToolCallDelta to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitCodeInterpreter(CodeInterpreterToolCallDelta codeInterpreter)
Details of the Code Interpreter tool call the run step was involved in. abstract T
visitFileSearch(FileSearchToolCallDelta fileSearch)
abstract T
visitFunction(FunctionToolCallDelta function)
T
unknown(JsonValue json)
Maps an unknown variant of ToolCallDelta to a value of type T. -
-
Method Detail
-
visitCodeInterpreter
abstract T visitCodeInterpreter(CodeInterpreterToolCallDelta codeInterpreter)
Details of the Code Interpreter tool call the run step was involved in.
-
visitFileSearch
abstract T visitFileSearch(FileSearchToolCallDelta fileSearch)
-
visitFunction
abstract T visitFunction(FunctionToolCallDelta function)
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of ToolCallDelta to a value of type T.
An instance of ToolCallDelta can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-