Class AguiAdapterConfig

java.lang.Object
io.agentscope.core.agui.adapter.AguiAdapterConfig

public class AguiAdapterConfig extends Object
Configuration for the AG-UI agent adapter.

This class provides configuration options for how the adapter handles tool merging, state events, and other behaviors.

  • Method Details

    • getToolMergeMode

      public ToolMergeMode getToolMergeMode()
      Get the tool merge mode.
      Returns:
      The tool merge mode
    • isEmitStateEvents

      public boolean isEmitStateEvents()
      Check if state events should be emitted.
      Returns:
      true if state events should be emitted
    • isEmitToolCallArgs

      public boolean isEmitToolCallArgs()
      Check if tool call arguments should be streamed.
      Returns:
      true if tool call args events should be emitted
    • isEnableReasoning

      public boolean isEnableReasoning()
      Check if reasoning/thinking content should be emitted.

      When enabled, ThinkingBlock content will be converted to REASONING_* events according to the AG-UI Reasoning draft specification. When disabled (default), ThinkingBlock content is ignored and no reasoning events are emitted.

      Returns:
      true if reasoning events should be emitted
    • getRunTimeout

      public Duration getRunTimeout()
      Get the run timeout duration.
      Returns:
      The run timeout
    • getDefaultAgentId

      public String getDefaultAgentId()
      Get the default agent ID.
      Returns:
      The default agent ID, or null if not set
    • builder

      public static AguiAdapterConfig.Builder builder()
      Creates a new builder for AguiAdapterConfig.
      Returns:
      A new builder instance
    • defaultConfig

      public static AguiAdapterConfig defaultConfig()
      Creates a default configuration.
      Returns:
      Default configuration