Interface AgentExecutorEx
public interface AgentExecutorEx
Interface representing an Agent Executor (AKA ReACT agent).
This implementation make in evidence the tools execution using and action dispatcher node
┌─────┐
│start│
└─────┘
|
┌─────┐
│model│
└─────┘
|
┌─────────────────┐
│action_dispatcher│
└─────────────────┘_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
| \ \ \
┌────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│stop│ │ tool_name 1 │ │ tool_name 2 │......│ tool_name N │
└────┘ └─────────────┘ └─────────────┘ └─────────────┘
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilder class for constructing a graph of agent execution.static enumEnum representing different serializers for the agent state.static classRepresents the state of an agent. -
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic AgentExecutorEx.Builderbuilder()executeTool(LC4jToolService toolService, String actionName)
-
Field Details
-
log
static final org.slf4j.Logger log
-
-
Method Details
-
executeTool
static AsyncNodeActionWithConfig<AgentExecutorEx.State> executeTool(LC4jToolService toolService, String actionName) -
builder
- Returns:
- a new Builder
-