Class AgentMetadataReader
-
- All Implemented Interfaces:
@Service() public final class AgentMetadataReaderRead 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.
-
-
Constructor Summary
Constructors Constructor Description AgentMetadataReader(ActionMethodManager actionMethodManager, MethodDefinedOperationNameGenerator nameGenerator, AgentStructureAgentValidator agentStructureValidator, PathToCompletionAgentValidator pathToCompletionValidator, Boolean requireInterfaceDeserializationAnnotations)
-
Method Summary
Modifier and Type Method Description final List<AgentScope>createAgentScopes(Object instances)final AgentScopecreateAgentMetadata(Object instance)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. -
-
Constructor Detail
-
AgentMetadataReader
AgentMetadataReader(ActionMethodManager actionMethodManager, MethodDefinedOperationNameGenerator nameGenerator, AgentStructureAgentValidator agentStructureValidator, PathToCompletionAgentValidator pathToCompletionValidator, Boolean requireInterfaceDeserializationAnnotations)
-
-
Method Detail
-
createAgentScopes
final List<AgentScope> createAgentScopes(Object instances)
-
createAgentMetadata
final AgentScope createAgentMetadata(Object instance)
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.
- Returns:
null if the class doesn't satisfy the requirements of @Agentic or doesn't have the annotation at all.
-
-
-
-