Uses of Class
com.google.genkit.ai.agent.AgentInit
Packages that use AgentInit
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 AgentInit in com.google.genkit.ai.agent
Methods in com.google.genkit.ai.agent that return AgentInitMethods in com.google.genkit.ai.agent with parameters of type AgentInitModifier and TypeMethodDescriptionAgent.chat(ActionContext ctx, AgentInit<S> init) Creates anAgentChatseeded frominit(snapshotId / sessionId / inline state), using a default action context built from the registry the agent was defined in.AgentApi.chat(ActionContext ctx, AgentInit<S> init) Creates anAgentChatseeded frominit(snapshotId / sessionId / inline state).static <S> AgentChat<S> AgentChat.over(AgentTransport<S> transport, AgentInit<S> init) Creates a chat over any transport.Agent.runBidi(ActionContext ctx, AgentInit<S> init, InputSource<AgentInput> inputs, Consumer<AgentStreamChunk> streamCallback) AgentTransport.runTurn(AgentInput input, AgentInit<S> init, Consumer<AgentStreamChunk> onChunk) Runs ONE turn: feedsinputwithinit, collects stream chunks viaonChunk, and returns the final output.Constructor parameters in com.google.genkit.ai.agent with type arguments of type AgentInitModifierConstructorDescriptionAgent(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 AgentInit in com.google.genkit.ai.agent.internal
Methods in com.google.genkit.ai.agent.internal with parameters of type AgentInitModifier and TypeMethodDescriptionstatic <S> SessionResolver.Resolution<S> SessionResolver.resolve(SessionStore<S> store, boolean serverManaged, AgentInit<S> init, SessionStoreOptions opts) InProcessTransport.runTurn(AgentInput input, AgentInit<S> init, Consumer<AgentStreamChunk> onChunk) -
Uses of AgentInit in com.google.genkit.client
Methods in com.google.genkit.client with parameters of type AgentInitModifier and TypeMethodDescriptionHttpAgentTransport.runTurn(AgentInput input, AgentInit<S> init, Consumer<AgentStreamChunk> onChunk)