Package com.google.genkit.ai.agent.internal


package com.google.genkit.ai.agent.internal
  • Class
    Description
    Wraps a SnapshotMutator so that it returns null (no-op) when the current row is already SnapshotStatus.ABORTED, preventing a completed or failed write from clobbering a concurrent abort.
    Factory for defining custom agents.
    Runs a detached agent turn: writes a PENDING snapshot, 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-process AgentTransport that drives a locally-defined Agent via its bidi action.
    Utility for selecting the leaf snapshot from a collection of snapshots in a session's parent-chain.
    Registry mapping a still-PENDING detached turn's snapshot id to the live AtomicBoolean abort signal handed to that turn's AgentFnContext.
    Tiny POJO representing the contents of a per-session pointer file.
    Resolves a Session from an AgentInit at the start of an agent invocation.
    Result of session resolution: either a ready Session, 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.