Package com.embabel.agent.spi.loop
Interface ToolLoopFactory
-
- All Implemented Interfaces:
public interface ToolLoopFactoryFactory for creating ToolLoop instances.
Use companion object methods to obtain instances:
default for default configuration
withConfig for custom configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classToolLoopFactory.Companion
-
Method Summary
Modifier and Type Method Description abstract ToolLoopcreate(LlmMessageSender llmMessageSender, ObjectMapper objectMapper, ToolInjectionStrategy injectionStrategy, Integer maxIterations, Function1<Tool, Tool> toolDecorator)Create a ToolLoop instance. -
-
Method Detail
-
create
abstract ToolLoop create(LlmMessageSender llmMessageSender, ObjectMapper objectMapper, ToolInjectionStrategy injectionStrategy, Integer maxIterations, Function1<Tool, Tool> toolDecorator)
Create a ToolLoop instance.
- Parameters:
llmMessageSender- message sender for LLM communicationobjectMapper- for JSON deserializationinjectionStrategy- strategy for dynamic tool injectionmaxIterations- maximum loop iterationstoolDecorator- optional decorator for injected tools
-
-
-
-