Class EmbabelIntrospector
java.lang.Object
ai.badmonkey.agentspaces.embabel.EmbabelIntrospector
Reads Embabel agent metadata reflectively by fully qualified annotation name
(spec ยง10.4), so this module compiles with no Embabel artifact and works
with whichever Embabel version the application ships. The names are the
published Embabel API annotations; attribute reads tolerate absent
attributes across versions, and an application can only reach this code
when the Embabel classes are present, because the autoconfiguration guards
on the
@Agent class by name.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordWhat an Embabel agent declares, in AgentSpaces terms. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringactionDescription(Method action) The description an Embabel@Actiondeclares, empty when it has none.static booleanembabelPresent(ClassLoader classLoader) Tests whether the Embabel API is on the classpath.introspect(Class<?> type) Introspects one bean.
-
Field Details
-
AGENT_ANNOTATION
-
ACTION_ANNOTATION
-
GOAL_ANNOTATION
The Embabel goal-achievement annotation, by name.- See Also:
-
-
Method Details
-
embabelPresent
Tests whether the Embabel API is on the classpath.- Parameters:
classLoader- the application class loader- Returns:
truewhen Embabel's agent annotation loads
-
introspect
Introspects one bean.- Parameters:
type- the bean's class- Returns:
- the Embabel metadata, or empty when the class carries no
@Agentannotation
-
actionDescription
-