Package com.google.genkit.ai.agent.internal
package com.google.genkit.ai.agent.internal
-
ClassDescriptionWraps a
SnapshotMutatorso that it returnsnull(no-op) when the current row is alreadySnapshotStatus.ABORTED, preventing a completed or failed write from clobbering a concurrent abort.Factory for defining custom agents.Runs a detached agent turn: writes aPENDINGsnapshot, suppresses streaming, starts a heartbeat, runs the turn on a background daemon thread, and finalizes the pending snapshot to a terminal status when the turn completes.The body of a detached turn.In-processAgentTransportthat drives a locally-definedAgentvia its bidi action.Utility for selecting the leaf snapshot from a collection of snapshots in a session's parent-chain.Registry mapping a still-PENDINGdetached turn's snapshot id to the liveAtomicBooleanabort signal handed to that turn'sAgentFnContext.Tiny POJO representing the contents of a per-session pointer file.Result of session resolution: either a readySession, or a graceful pre-turn failure.Pure, backend-agnostic sharding / checkpoint / RFC-6902 reconstruction helpers shared by the Firestore, DynamoDB, and Cosmos DB session stores.Bridges Session state-change events to AgentStreamChunk emission for one invocation.