Uses of Class
com.google.genkit.ai.agent.AgentInput
Packages that use AgentInput
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 AgentInput in com.google.genkit.ai.agent
Methods in com.google.genkit.ai.agent that return AgentInputMethods in com.google.genkit.ai.agent with parameters of type AgentInputModifier and TypeMethodDescriptionAgent.run(ActionContext ctx, AgentInput input) Agent.run(ActionContext ctx, AgentInput input, Consumer<AgentStreamChunk> cb) TurnBody.run(AgentInput input, TurnContext turnCtx) Runs the body of this turn.AgentTransport.runTurn(AgentInput input, AgentInit<S> init, Consumer<AgentStreamChunk> onChunk) Runs ONE turn: feedsinputwithinit, collects stream chunks viaonChunk, and returns the final output.voidSessionRunner.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).AgentChat.send(AgentInput input) Sends a fully-formed input and returns the turn's response.AgentChat.sendStream(AgentInput input, Consumer<AgentChunk<S>> onChunk) Sends a fully-formed input, streaming chunks toonChunk, and returns the final response.Method parameters in com.google.genkit.ai.agent with type arguments of type AgentInputModifier and TypeMethodDescriptionAgent.runBidi(ActionContext ctx, AgentInit<S> init, InputSource<AgentInput> inputs, Consumer<AgentStreamChunk> streamCallback) Constructor parameters in com.google.genkit.ai.agent with type arguments of type AgentInputModifierConstructorDescriptionAgent(BidiActionImpl<AgentInput, AgentOutput<S>, AgentStreamChunk, AgentInit<S>> impl, SessionStore<S> store, boolean serverManaged, Action<?, ?, ?> snapshotAction, Action<?, ?, ?> abortAction, ClientTransform<S> clientTransform, SessionStoreOptions opts, String name, String description, Registry registry) Constructs an Agent. -
Uses of AgentInput in com.google.genkit.ai.agent.internal
Methods in com.google.genkit.ai.agent.internal with parameters of type AgentInputModifier and TypeMethodDescriptionInProcessTransport.runTurn(AgentInput input, AgentInit<S> init, Consumer<AgentStreamChunk> onChunk) -
Uses of AgentInput in com.google.genkit.client
Methods in com.google.genkit.client with parameters of type AgentInputModifier and TypeMethodDescriptionHttpAgentTransport.runTurn(AgentInput input, AgentInit<S> init, Consumer<AgentStreamChunk> onChunk)