Package com.embabel.agent.core
Class AgentMetadata
-
- All Implemented Interfaces:
-
com.embabel.common.core.types.AssetCoordinates,com.embabel.common.core.types.Described,com.embabel.common.core.types.Named
public final class AgentMetadata implements Named, Described, AssetCoordinatesSafely serializable agent metadata
This class provides a lightweight representation of an Agent that can be safely serialized and transferred across system boundaries. It contains only the essential metadata about an agent without any implementation details or complex references that might cause serialization issues.
-
-
Constructor Summary
Constructors Constructor Description AgentMetadata(Agent agent)Constructs AgentMetadata from a full Agent instanceThis constructor extracts only the serializable metadata from a complete Agent, making it suitable for API responses and persistence. AgentMetadata(String name, String provider, Semver version, String description, Set<Goal> goals, List<ActionMetadata> actions, Set<String> conditions)
-
Method Summary
Modifier and Type Method Description StringgetName()The name of the agent StringgetProvider()SemvergetVersion()The version of the agent, defaults to DEFAULT_VERSION StringgetDescription()A human-readable description of the agent's purpose and capabilities final Set<Goal>getGoals()The set of goals this agent can achieve final List<ActionMetadata>getActions()A list of metadata about the actions this agent can perform final Set<String>getConditions()A set of condition names that this agent recognizes -
-
Constructor Detail
-
AgentMetadata
AgentMetadata(Agent agent)
Constructs AgentMetadata from a full Agent instanceThis constructor extracts only the serializable metadata from a complete Agent, making it suitable for API responses and persistence.- Parameters:
agent- The complete Agent instance to extract metadata from
-
-
Method Detail
-
getProvider
String getProvider()
-
getVersion
Semver getVersion()
The version of the agent, defaults to DEFAULT_VERSION
-
getDescription
String getDescription()
A human-readable description of the agent's purpose and capabilities
-
getActions
final List<ActionMetadata> getActions()
A list of metadata about the actions this agent can perform
-
getConditions
final Set<String> getConditions()
A set of condition names that this agent recognizes
-
-
-
-