Class ToolChoice

java.lang.Object
com.alibaba.dashscope.legacy_2x.tools.ToolChoice

@Deprecated public class ToolChoice extends Object
Deprecated.
  • Field Details

    • strategy

      public String strategy
      Deprecated.
    • tool

      public ToolBase tool
      Deprecated.
      Specify the tool to use, Set strategy or tool, with tool taking priority
  • Constructor Details

  • Method Details

    • builder

      public static ToolChoice.ToolChoiceBuilder<?,?> builder()
      Deprecated.
    • getStrategy

      public String getStrategy()
      Deprecated.
    • getTool

      public ToolBase getTool()
      Deprecated.
      Specify the tool to use, Set strategy or tool, with tool taking priority
    • setStrategy

      public void setStrategy(String strategy)
      Deprecated.
    • setTool

      public void setTool(ToolBase tool)
      Deprecated.
      Specify the tool to use, Set strategy or tool, with tool taking priority
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object