Package org.bsc.spring.agentexecutor
Class AgentExecutor
java.lang.Object
org.bsc.spring.agentexecutor.AgentExecutor
Represents the core component responsible for executing agent logic.
It includes methods for building and managing the execution graph,
as well as handling agent actions and state transitions.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Represents an action with a tool call and associated log details.static final record
Represents the completion of a process, encapsulating any relevant return values as key-value pairs in a map.class
Class responsible for building a state graph.static final record
Represents the outcome of an action with a specific finish status.static class
Represents the state of an agent in a system.static final record
Represents a step in a process with an associated action and observation. -
Constructor Summary
ConstructorDescriptionAgentExecutor
(AgentService agentService) Initializes a new instance of theAgentExecutor
class. -
Method Summary
-
Constructor Details
-
AgentExecutor
Initializes a new instance of theAgentExecutor
class.- Parameters:
agentService
- The service to be used for executing agents, must not be null.
-
-
Method Details
-
graphBuilder
Returns a new instance ofAgentExecutor.GraphBuilder
.- Returns:
- a new
AgentExecutor.GraphBuilder
object
-