AgentMetadataReader

class AgentMetadataReader(actionMethodManager: ActionMethodManager = DefaultActionMethodManager(), nameGenerator: MethodDefinedOperationNameGenerator = MethodDefinedOperationNameGenerator(), agentStructureValidator: AgentStructureAgentValidator = AgentStructureAgentValidator.PERMIT_ALL, pathToCompletionValidator: PathToCompletionAgentValidator = GoapPathToCompletionValidator(), requireInterfaceDeserializationAnnotations: Boolean = false)

Read AgentMetadata from annotated classes. Looks for @Agentic, @Condition and @Action annotations and properties of type Goal. Warn on invalid or missing annotations but never throw an exception as this could affect application startup.

Constructors

Link copied to clipboard
constructor(actionMethodManager: ActionMethodManager = DefaultActionMethodManager(), nameGenerator: MethodDefinedOperationNameGenerator = MethodDefinedOperationNameGenerator(), agentStructureValidator: AgentStructureAgentValidator = AgentStructureAgentValidator.PERMIT_ALL, pathToCompletionValidator: PathToCompletionAgentValidator = GoapPathToCompletionValidator(), requireInterfaceDeserializationAnnotations: Boolean = false)

Functions

Link copied to clipboard

Given this configured instance, find all the methods annotated with @Action and @Condition The instance will have been injected by Spring if it's Spring-managed.

Link copied to clipboard
fun createAgentScopes(vararg instances: Any): List<AgentScope>