Class DeepSeekToolDefinition

java.lang.Object
de.entwicklertraining.deepseek4j.DeepSeekToolDefinition

public final class DeepSeekToolDefinition extends Object
Represents a function-like tool definition in DeepSeek, with a name, description, parameters (JSON schema), and a callback that is executed when the model calls this tool.
  • Method Details

    • name

      public String name()
    • description

      public String description()
    • parameters

      public org.json.JSONObject parameters()
    • callback

      public DeepSeekToolsCallback callback()
    • toJson

      public org.json.JSONObject toJson()
      Produces the JSON structure needed by the DeepSeek API to describe this tool as a "function".
    • builder

      public static DeepSeekToolDefinition.Builder builder(String name)