Package io.agentscope.core.agui.adapter
Class AguiAdapterConfig
java.lang.Object
io.agentscope.core.agui.adapter.AguiAdapterConfig
Configuration for the AG-UI agent adapter.
This class provides configuration options for how the adapter handles tool merging, state events, and other behaviors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for AguiAdapterConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic AguiAdapterConfig.Builderbuilder()Creates a new builder for AguiAdapterConfig.static AguiAdapterConfigCreates a default configuration.Get the default agent ID.Get the run timeout duration.Get the tool merge mode.booleanCheck if state events should be emitted.booleanCheck if tool call arguments should be streamed.booleanCheck if reasoning/thinking content should be emitted.
-
Method Details
-
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
Get the run timeout duration.- Returns:
- The run timeout
-
getDefaultAgentId
Get the default agent ID.- Returns:
- The default agent ID, or null if not set
-
builder
Creates a new builder for AguiAdapterConfig.- Returns:
- A new builder instance
-
defaultConfig
Creates a default configuration.- Returns:
- Default configuration
-