Package com.embabel.agent.core.support
Class ConcurrentAgentProcess
-
- All Implemented Interfaces:
-
com.embabel.agent.core.AgentProcess,com.embabel.agent.core.Bindable,com.embabel.agent.core.Blackboard,com.embabel.agent.core.LlmInvocationHistory,com.embabel.agent.core.MayHaveLastResult,com.embabel.agent.core.OperationStatus,com.embabel.common.core.types.HasInfoString,com.embabel.common.core.types.Timed,com.embabel.common.core.types.Timestamped
public class ConcurrentAgentProcess extends SimpleAgentProcess
An AgentProcess that can execute multiple actions concurrently. With each invocation of formulateAndExecutePlan(), it will attempt to execute all actions that are currently achievable towards the plan.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<AgentProcessCallback>callbacksprivate final Planner<?, ?, ?>plannerprivate final ObjectfailureInfoprivate final WorldStatelastWorldStateprivate final Goalgoalprivate final ProcessContextprocessContextprivate final List<LlmInvocation>llmInvocationsprivate final AgentProcessStatusCodestatusprivate final List<ActionInvocation>historyprivate final ToolsStatstoolsStatsprivate final Stringidprivate final StringparentIdprivate final Agentagentprivate final ProcessOptionsprocessOptionsprivate final Blackboardblackboardprivate final Instanttimestampprivate final Booleanfinishedprivate final DurationrunningTimeprivate final StringblackboardIdprivate final List<Object>objects
-
Constructor Summary
Constructors Constructor Description ConcurrentAgentProcess(String id, String parentId, Agent agent, ProcessOptions processOptions, Blackboard blackboard, PlatformServices platformServices, PlannerFactory plannerFactory, Instant timestamp, List<AgentProcessCallback> callbacks)
-
Method Summary
Modifier and Type Method Description final List<AgentProcessCallback>getCallbacks()-
Methods inherited from class com.embabel.agent.core.support.SimpleAgentProcess
getPlanner -
Methods inherited from class com.embabel.agent.core.support.AbstractAgentProcess
addObject, bind, getAgent, getBlackboard, getFailureInfo, getGoal, getHistory, getId, getLastWorldState, getLlmInvocations, getParentId, getProcessContext, getProcessOptions, getStatus, getTimestamp, getToolsStats, kill, plusAssign, plusAssign, recordLlmInvocation, run, set, tick -
Methods inherited from class com.embabel.agent.core.AgentProcess
getFinished, getRunningTime, getValue, resultOfType, statusReport -
Methods inherited from class com.embabel.agent.core.Blackboard
clear, count, expressionEvaluationModel, get, getBlackboardId, getCondition, getObjects, getOrPut, getValue, hasValue, hide, last, lastResult, objectsOfType, setCondition, spawn -
Methods inherited from class com.embabel.agent.core.Bindable
addAll, bindAll, bindProtected, plusAssign -
Methods inherited from class com.embabel.common.core.types.HasInfoString
infoString -
Methods inherited from class com.embabel.agent.core.LlmInvocationHistory
cost, costInfoString, modelsUsed, usage -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ConcurrentAgentProcess
ConcurrentAgentProcess(String id, String parentId, Agent agent, ProcessOptions processOptions, Blackboard blackboard, PlatformServices platformServices, PlannerFactory plannerFactory, Instant timestamp, List<AgentProcessCallback> callbacks)
-
-
Method Detail
-
getCallbacks
final List<AgentProcessCallback> getCallbacks()
-
-
-
-