Package com.embabel.agent.core
Interface Action
-
- All Implemented Interfaces:
-
com.embabel.agent.core.ActionRunner,com.embabel.agent.core.AgentSystemStep,com.embabel.agent.core.DataDictionary,com.embabel.agent.core.DataFlowStep,com.embabel.agent.core.Operation,com.embabel.agent.core.ToolGroupConsumer,com.embabel.common.core.types.Described,com.embabel.common.core.types.HasInfoString,com.embabel.common.core.types.Named,com.embabel.common.core.types.NamedAndDescribed,com.embabel.plan.Action,com.embabel.plan.Step,com.embabel.plan.goap.GoapAction,com.embabel.plan.goap.GoapStep
public interface Action implements DataFlowStep, GoapAction, ActionRunner, DataDictionary, ToolGroupConsumer
Core Action model in Agent system. An individual action step used in an Agent Not intended for direct use by application code. User applications should use the annotation programming model with @Agentic and @Action or the Kotlin DSL, or a non-code representation such as YML.
-
-
Method Summary
Modifier and Type Method Description StringinfoString(Boolean verbose, Integer indent)StringshortName()DoublegetCost()Cost of performing this action Must be between 0 and 1 1 is the most expensive imaginable. abstract BooleangetCanRerun()Can this action be run again if it has already run in the given AgentProcess? abstract ActionQosgetQos()Quality of Service for this action. Collection<DomainType>getDomainTypes()All known types referenced by this component. -
Methods inherited from class com.embabel.plan.goap.GoapStep
getKnownConditions, getPreconditions, isAchievable -
Methods inherited from class com.embabel.agent.core.ActionRunner
execute, referencedInputProperties -
Methods inherited from class com.embabel.agent.core.DataDictionary
allowedRelationships, domainTypeForLabels, getDynamicTypes, getJvmTypes -
Methods inherited from class com.embabel.agent.core.DataFlowStep
getOutputs -
Methods inherited from class com.embabel.agent.core.AgentSystemStep
getInputs -
Methods inherited from class com.embabel.plan.Step
getName, getValue -
Methods inherited from class com.embabel.common.core.types.Described
getDescription -
Methods inherited from class com.embabel.plan.goap.GoapAction
getEffects -
Methods inherited from class com.embabel.agent.core.ToolGroupConsumer
getToolGroups -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
infoString
String infoString(Boolean verbose, Integer indent)
-
getCost
Double getCost()
Cost of performing this action Must be between 0 and 1 1 is the most expensive imaginable.
-
getCanRerun
abstract Boolean getCanRerun()
Can this action be run again if it has already run in the given AgentProcess? Must be set to true to allow looping style behavior.
-
getDomainTypes
Collection<DomainType> getDomainTypes()
All known types referenced by this component. These may or may not be backed by JVM objects.
-
-
-
-