Class ToolChoice.ToolChoiceBuilder<C extends ToolChoice,B extends ToolChoice.ToolChoiceBuilder<C,B>>

java.lang.Object
com.alibaba.dashscope.legacy_2x.tools.ToolChoice.ToolChoiceBuilder<C,B>
Enclosing class:
ToolChoice

public abstract static class ToolChoice.ToolChoiceBuilder<C extends ToolChoice,B extends ToolChoice.ToolChoiceBuilder<C,B>> extends Object
  • Constructor Details

    • ToolChoiceBuilder

      public ToolChoiceBuilder()
  • Method Details

    • strategy

      public B strategy(String strategy)
      Returns:
      this.
    • tool

      public B tool(ToolBase tool)
      Specify the tool to use, Set strategy or tool, with tool taking priority
      Returns:
      this.
    • self

      protected abstract B self()
    • build

      public abstract C build()
    • toString

      public String toString()
      Overrides:
      toString in class Object