Enum Class DashScopeSearchOptions.SearchStrategy

java.lang.Object
java.lang.Enum<DashScopeSearchOptions.SearchStrategy>
io.agentscope.extensions.model.dashscope.dto.DashScopeSearchOptions.SearchStrategy
All Implemented Interfaces:
Serializable, Comparable<DashScopeSearchOptions.SearchStrategy>, Constable
Enclosing class:
DashScopeSearchOptions

public static enum DashScopeSearchOptions.SearchStrategy extends Enum<DashScopeSearchOptions.SearchStrategy>
  • Enum Constant Details

    • TURBO

      public static final DashScopeSearchOptions.SearchStrategy TURBO
      Taking into account both responsiveness and search effect, it is suitable for most scenarios.(default)
    • MAX

      public static final DashScopeSearchOptions.SearchStrategy MAX
      With a more comprehensive search strategy, call multi-source search engines for more exhaustive search results, but response times may be longer
    • AGENT

      public static final DashScopeSearchOptions.SearchStrategy AGENT
      Web search tools and large models can be called multiple times to achieve multiple rounds of information retrieval and content integration.

      This strategy only works with qwen3.5-plus, qwen3.5-plus-2026-02-15, qwen3.5-flash, qwen3.5-flash-2026-02-23, qwen3-max with qwen3-max-2026-01-23 (streaming only), qwen3-max-2026-01-23 non-thinking mode, qwen3-max-2025-09-23. When this strategy is enabled, only the search source (enable_source: true) is supported, and other web search options are not available.

    • AGENT_MAX

      public static final DashScopeSearchOptions.SearchStrategy AGENT_MAX
      Web extractor is supported on the basis of agent policies.

      This strategy is only applicable to qwen3.5-plus, qwen3.5-plus-2026-02-15, qwen3.5-flash, qwen3.5-flash-2026-02-23, and qwen3-max and qwen3-max-2026-01-23 thinking modes. When this strategy is enabled, only the search source (enable_source: true) is supported, and other web search options are not available.

  • Method Details

    • values

      public static DashScopeSearchOptions.SearchStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DashScopeSearchOptions.SearchStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null