Interface OpenAiToolCall

All Known Implementing Classes:
OpenAiFunctionCall

public sealed interface OpenAiToolCall permits OpenAiFunctionCall
Represents a tool called by an OpenAI model.
Since:
1.6.0
  • Method Details

    • function

      @Nonnull static OpenAiToolCall function(@Nonnull String id, @Nonnull String name, @Nonnull String arguments)
      Creates a new instance of OpenAiToolCall.
      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