Record Class PlannerAction.DoneWithResult
java.lang.Object
java.lang.Record
com.google.adk.agents.PlannerAction.DoneWithResult
- All Implemented Interfaces:
PlannerAction
- Enclosing interface:
PlannerAction
public static record PlannerAction.DoneWithResult(String result)
extends Record
implements PlannerAction
Plan is complete with a final text result.
-
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
ConstructorsConstructorDescriptionDoneWithResult(String result) Creates an instance of aDoneWithResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DoneWithResult
Creates an instance of aDoneWithResultrecord class.- Parameters:
result- the value for theresultrecord 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). -
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-