Package io.agentscope.core.agui.adapter
Class AguiAdapterConfig.Builder
java.lang.Object
io.agentscope.core.agui.adapter.AguiAdapterConfig.Builder
- Enclosing class:
AguiAdapterConfig
Builder for AguiAdapterConfig.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the configuration.defaultAgentId(String defaultAgentId) Set the default agent ID.emitStateEvents(boolean emitStateEvents) Set whether to emit state events.emitToolCallArgs(boolean emitToolCallArgs) Set whether to emit tool call argument events.enableReasoning(boolean enableReasoning) Set whether to enable reasoning/thinking content output.runTimeout(Duration runTimeout) Set the run timeout duration.toolMergeMode(ToolMergeMode toolMergeMode) Set the tool merge mode.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
toolMergeMode
Set the tool merge mode.- Parameters:
toolMergeMode- The tool merge mode- Returns:
- This builder
-
emitStateEvents
Set whether to emit state events.- Parameters:
emitStateEvents- true to emit state events- Returns:
- This builder
-
emitToolCallArgs
Set whether to emit tool call argument events.- Parameters:
emitToolCallArgs- true to emit tool call args events- Returns:
- This builder
-
enableReasoning
Set whether to enable reasoning/thinking content output.When enabled, ThinkingBlock content will be converted to REASONING_* events according to the AG-UI Reasoning draft specification. Default is false to ensure backward compatibility and privacy compliance.
- Parameters:
enableReasoning- true to enable reasoning events- Returns:
- This builder
-
runTimeout
Set the run timeout duration.- Parameters:
runTimeout- The timeout duration- Returns:
- This builder
-
defaultAgentId
Set the default agent ID.- Parameters:
defaultAgentId- The default agent ID- Returns:
- This builder
-
build
Build the configuration.- Returns:
- The built configuration
-