Package com.embabel.agent.core
Interface AgentScope
-
- All Implemented Interfaces:
-
com.embabel.agent.api.common.scope.AgentScopeBuilder,com.embabel.agent.core.ActionSource,com.embabel.agent.core.ConditionSource,com.embabel.agent.core.DataDictionary,com.embabel.agent.core.GoalSource,com.embabel.common.core.types.Described,com.embabel.common.core.types.HasInfoString,com.embabel.common.core.types.Named
public interface AgentScope implements Named, Described, GoalSource, ConditionSource, ActionSource, DataDictionary, HasInfoString, AgentScopeBuilder
Defines the scope of an agent or agents: Goals, conditions and actions. Both Agents and AgentPlatforms are AgentScopes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAgentScope.Companion
-
Method Summary
Modifier and Type Method Description StringinfoString(Boolean verbose, Integer indent)AgentcreateAgent(String name, String provider, String description)Create a new agent from the given scope DomainTyperesolveType(String name)AgentScopecreateAgentScope()Emit an AgentScope abstract BooleangetOpaque()Whether to hide the agent's actions and conditions from the outside world, defaults to false. StuckHandlergetStuckHandler()Collection<DomainType>getDomainTypes()All known types referenced by this component. -
Methods inherited from class com.embabel.agent.core.DataDictionary
allowedRelationships, domainTypeForLabels, excluding, excluding, filter, getDynamicTypes, getJvmTypes, minus, minus, plus -
Methods inherited from class com.embabel.common.core.types.Named
getName -
Methods inherited from class com.embabel.common.core.types.Described
getDescription -
Methods inherited from class com.embabel.agent.core.GoalSource
getGoals -
Methods inherited from class com.embabel.agent.core.ConditionSource
getConditions -
Methods inherited from class com.embabel.agent.core.ActionSource
getActions -
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)
-
createAgent
Agent createAgent(String name, String provider, String description)
Create a new agent from the given scope
- Parameters:
name- Name of the agent to createdescription- Description of the agent to create
-
resolveType
DomainType resolveType(String name)
-
createAgentScope
AgentScope createAgentScope()
Emit an AgentScope
-
getOpaque
abstract Boolean getOpaque()
Whether to hide the agent's actions and conditions from the outside world, defaults to false.
-
getStuckHandler
StuckHandler getStuckHandler()
-
getDomainTypes
Collection<DomainType> getDomainTypes()
All known types referenced by this component. These may or may not be backed by JVM objects.
-
-
-
-