Package com.embabel.agent.spi.loop
Object ToolLoopFactory.Companion
-
- All Implemented Interfaces:
public class ToolLoopFactory.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static ToolLoopFactory.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final ToolLoopFactorydefault()Create a factory with default configuration. final ToolLoopFactorywithConfig(ToolLoopConfiguration config)Create a factory with the specified configuration. final ToolLoopFactorywithConfig(ToolLoopConfiguration config, ExecutorService executor)Create a factory with the specified configuration and executor. -
-
Method Detail
-
default
final ToolLoopFactory default()
Create a factory with default configuration. Uses ToolLoopType.DEFAULT (sequential execution).
-
withConfig
final ToolLoopFactory withConfig(ToolLoopConfiguration config)
Create a factory with the specified configuration.
- Parameters:
config- the tool loop configuration
-
withConfig
final ToolLoopFactory withConfig(ToolLoopConfiguration config, ExecutorService executor)
Create a factory with the specified configuration and executor.
- Parameters:
config- the tool loop configurationexecutor- executor service for parallel mode
-
-
-
-