Record Class PlannerAction.RunAgents
java.lang.Object
java.lang.Record
com.google.adk.agents.PlannerAction.RunAgents
- All Implemented Interfaces:
PlannerAction
- Enclosing interface:
PlannerAction
public static record PlannerAction.RunAgents(com.google.common.collect.ImmutableList<BaseAgent> agents)
extends Record
implements PlannerAction
Run the specified sub-agent(s). Multiple agents are run in parallel.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PlannerAction
PlannerAction.Done, PlannerAction.DoneWithResult, PlannerAction.NoOp, PlannerAction.RunAgentsModifier and TypeInterfaceDescriptionstatic final recordPlan is complete, no result to emit.static final recordPlan is complete with a final text result.static final recordSkip this iteration (no-op).static final recordRun the specified sub-agent(s). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<BaseAgent> agents()Returns the value of theagentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RunAgents
-
RunAgents
Creates an instance of aRunAgentsrecord class.- Parameters:
agents- the value for theagentsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
agents
Returns the value of theagentsrecord component.- Returns:
- the value of the
agentsrecord component
-