Interface DeltaToolCall
- All Known Implementing Classes:
DeltaToolCall.CodeInterpreterToolCall,DeltaToolCall.FileSearchToolCall,DeltaToolCall.FunctionToolCall
public sealed interface DeltaToolCall
permits DeltaToolCall.CodeInterpreterToolCall, DeltaToolCall.FileSearchToolCall, DeltaToolCall.FunctionToolCall
Details of the tool call the
ThreadRunStepDelta was involved in.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptioncodeInterpreterToolCall(int index, String id, DeltaToolCall.CodeInterpreterToolCall.CodeInterpreter codeInterpreter) fileSearchToolCall(int index, String id) functionToolCall(int index, String id, DeltaToolCall.FunctionToolCall.Function function) id()The ID of the tool call object.intindex()The index of the tool call in the tool calls array.type()The type of tool call
-
Method Details
-
index
int index()The index of the tool call in the tool calls array. -
id
String id()The ID of the tool call object. -
type
String type()The type of tool call -
codeInterpreterToolCall
static DeltaToolCall.CodeInterpreterToolCall codeInterpreterToolCall(int index, String id, DeltaToolCall.CodeInterpreterToolCall.CodeInterpreter codeInterpreter) -
fileSearchToolCall
-
functionToolCall
static DeltaToolCall.FunctionToolCall functionToolCall(int index, String id, DeltaToolCall.FunctionToolCall.Function function)
-