Uses of Enum Class
com.google.genkit.ai.agent.AgentFinishReason
Packages that use AgentFinishReason
Package
Description
This package provides types for the Genkit agents feature, including enums and models for agent
state snapshots, agent execution lifecycle, and agent-related operations.
-
Uses of AgentFinishReason in com.google.genkit.ai.agent
Methods in com.google.genkit.ai.agent that return AgentFinishReasonModifier and TypeMethodDescriptionAgentResponse.finishReason()Returns the turn's finish reason.static AgentFinishReasonCreates an AgentFinishReason from a string value.AgentOutput.getFinishReason()Returns the finish reason.AgentResult.getFinishReason()Returns the finish reason.SessionSnapshot.getFinishReason()Returns the finish reason.TurnEnd.getFinishReason()Returns the finish reason.SessionRunner.lastTurnFinishReason()Returns the finish reason of the last completed turn.TurnBody.run(AgentInput input, TurnContext turnCtx) Runs the body of this turn.static AgentFinishReasonReturns the enum constant of this class with the specified name.static AgentFinishReason[]AgentFinishReason.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.google.genkit.ai.agent with parameters of type AgentFinishReasonModifier and TypeMethodDescriptionAgentOutput.Builder.finishReason(AgentFinishReason finishReason) AgentResult.Builder.finishReason(AgentFinishReason finishReason) SessionSnapshot.Builder.finishReason(AgentFinishReason finishReason) TurnEnd.Builder.finishReason(AgentFinishReason finishReason) voidAgentOutput.setFinishReason(AgentFinishReason finishReason) Sets the finish reason.voidAgentResult.setFinishReason(AgentFinishReason finishReason) Sets the finish reason.voidSessionSnapshot.setFinishReason(AgentFinishReason finishReason) Sets the finish reason.voidTurnEnd.setFinishReason(AgentFinishReason finishReason) Sets the finish reason. -
Uses of AgentFinishReason in com.google.genkit.ai.agent.internal
Methods in com.google.genkit.ai.agent.internal that return AgentFinishReasonModifier and TypeMethodDescriptionDetachController.DetachedTurn.run()Runs the detached turn body.