Uses of Interface
com.google.genkit.ai.agent.TurnBody
Packages that use TurnBody
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 TurnBody in com.google.genkit.ai.agent
Methods in com.google.genkit.ai.agent with parameters of type TurnBodyModifier and TypeMethodDescriptionvoidSessionRunner.runTurn(AgentInput input, TurnBody<S> turnBody) Runs ONE turn: Validatesinput.message: role must be null/USER; rejects tool-request and tool-response parts → throwsGenkitExceptionwithINVALID_ARGUMENT(API misuse; not graceful).