Interface OpenAiToolCall
- All Known Implementing Classes:
OpenAiFunctionCall
Represents a tool called by an OpenAI model.
- Since:
- 1.6.0
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic OpenAiToolCallCreates a new instance ofOpenAiToolCall.
-
Method Details
-
function
@Nonnull static OpenAiToolCall function(@Nonnull String id, @Nonnull String name, @Nonnull String arguments) Creates a new instance ofOpenAiToolCall.- Parameters:
id- The unique identifier for the tool call.name- The name of the tool to be called.arguments- The arguments for the tool call, encoded as a JSON string.- Returns:
- A new instance of
OpenAiToolCall. - Since:
- 1.10.0
-