Package com.google.genkit.ai.agent
Class AgentRef
java.lang.Object
com.google.genkit.ai.agent.AgentRef
AgentRef is a lightweight reference to an agent, carrying only its name and description.
Returned by AgentApi.ref() so callers can identify the agent without holding the full
implementation object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the agent description.getName()Returns the agent name.
-
Constructor Details
-
AgentRef
Constructs an AgentRef.- Parameters:
name- the agent's registered namedescription- the agent's human-readable description; may benull
-
-
Method Details
-
getName
Returns the agent name.- Returns:
- the agent name
-
getDescription
Returns the agent description.- Returns:
- the description, or
nullif not set
-