Interface DeltaToolCall
- All Known Implementing Classes:
DeltaToolCall.CodeInterpreterToolCall
,DeltaToolCall.FunctionToolCall
,DeltaToolCall.RetrievalToolCall
public sealed interface DeltaToolCall
permits DeltaToolCall.CodeInterpreterToolCall, DeltaToolCall.RetrievalToolCall, DeltaToolCall.FunctionToolCall
Details of the tool call the
ThreadRunStepDelta
was involved in.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
static final record
static final record
-
Method Summary
Modifier and TypeMethodDescriptioncodeInterpreterToolCall
(int index, String id, DeltaToolCall.CodeInterpreterToolCall.CodeInterpreter codeInterpreter) functionToolCall
(int index, String id, DeltaToolCall.FunctionToolCall.Function function) id()
The ID of the tool call object.int
index()
The index of the tool call in the tool calls array.retrievalToolCall
(int index, String id) 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) -
retrievalToolCall
-
functionToolCall
static DeltaToolCall.FunctionToolCall functionToolCall(int index, String id, DeltaToolCall.FunctionToolCall.Function function)
-