AgentMetadataReader

class AgentMetadataReader(actionMethodManager: ActionMethodManager = DefaultActionMethodManager(), nameGenerator: MethodDefinedOperationNameGenerator = MethodDefinedOperationNameGenerator(), agentStructureValidator: AgentStructureValidator, goapPathToCompletionValidator: GoapPathToCompletionValidator)

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()
constructor(actionMethodManager: ActionMethodManager = DefaultActionMethodManager(), nameGenerator: MethodDefinedOperationNameGenerator = MethodDefinedOperationNameGenerator(), agentStructureValidator: AgentStructureValidator, goapPathToCompletionValidator: GoapPathToCompletionValidator)

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>