Uses of Annotation Interface
com.google.adk.annotations.Experimental
Packages that use Experimental
Package
Description
-
Uses of Experimental in com.google.adk.agents
Classes in com.google.adk.agents with annotations of type ExperimentalModifier and TypeClassDescriptionfinal classA read-only agent that stands in for a non-agent workflow node so code reading the agent of an app, runner, or invocation keeps working when they run a node.Methods in com.google.adk.agents with annotations of type ExperimentalModifier and TypeMethodDescriptionInvocationContext.agentStates()Returns an unmodifiable view of the per-agent resumability checkpoint states for this invocation, keyed by agent name.final intContext.attemptCount()Returns the number of the attempt this workflow node is on, counting from 1; each retry adds one.InvocationContext.endOfAgents()Returns an unmodifiable view of the per-agent end-of-agent flags for this invocation, keyed by agent name.final StringContext.eventAuthor()Returns the author of the events this workflow node emits, or empty to use the node's name.final voidContext.eventAuthor(String eventAuthor) Sets the author of the events this workflow node emits.com.google.common.collect.ImmutableList<Event>InvocationContext.events(boolean currentInvocation, boolean currentBranch) Returns the current session's events, optionally filtered to the current invocation and/or the current branch.booleanInvocationContext.isResumable()Returns whether the current invocation is resumable.Sets the workflow node the invocation runs, or null when it runs an agent.InvocationContext.node()Returns the workflow node this invocation runs, or empty when it runs an agent.Context.output()Returns this workflow node's output, which is the output of itsuseAsOutputchild once that child emits one, or empty if it has none.voidInvocationContext.populateInvocationAgentStates()RehydratesInvocationContext.agentStates()andInvocationContext.endOfAgents()from the current invocation's history when this invocation is resumable.final NodeExecutionStateContext.requireNodeState()Returns the state of the workflow node run this context belongs to.booleanLlmAgent.rerunOnResume()Returnstrue, so that a workflow resuming this agent as a node runs it again and its model sees the answers to its long-running calls.Context.resumeInputs()Returns the user's answers to the requests for input and long-running calls that this workflow node or its descendants made in an earlier turn, keyed by interrupt ID.Context.routes()Returns the routes this workflow node selected, or empty if it made no routing decision.final voidSelects this workflow node's routes, which decide the outgoing edges to follow, replacing any earlier selection.io.reactivex.rxjava3.core.Flowable<Event>Runs this agent as a workflow node, on the node's branch so the nodes after it see its events.final io.reactivex.rxjava3.core.Maybe<Object>Runsnodeas a child of this workflow node without an input, asContext.runNode(Node, Object, RunNodeConfig)does with the defaultRunNodeConfig.final io.reactivex.rxjava3.core.Maybe<Object>Runsnodeas a child of this workflow node, asContext.runNode(Node, Object, RunNodeConfig)does with the defaultRunNodeConfig.final io.reactivex.rxjava3.core.Maybe<Object>Context.runNode(Node node, @Nullable Object nodeInput, RunNodeConfig config) Returns aMaybethat, when subscribed, runsnodeas a child of this workflow node and emits the child's output, or completes empty if it has none.booleanInvocationContext.shouldPauseInvocation(Event event) Returns whether to pause the invocation right after this event: it is resumable and the event carries a long-running function call, including a syntheticadk_request_confirmationHITL request.Constructors in com.google.adk.agents with annotations of type ExperimentalModifierConstructorDescriptionContext(InvocationContext invocationContext, NodeExecutionState nodeState) Creates the context of the workflow node run whose state isnodeState. -
Uses of Experimental in com.google.adk.apps
Classes in com.google.adk.apps with annotations of type ExperimentalModifier and TypeClassDescriptionclassResumability config for every agent in an app: pause on a long-running call and resume from the last event.Methods in com.google.adk.apps with annotations of type ExperimentalModifier and TypeMethodDescriptionApp.Builder.resumabilityConfig(@Nullable ResumabilityConfig resumabilityConfig) @Nullable ResumabilityConfigApp.resumabilityConfig()Sets the workflow node the app runs in place of a root agent, or clears it whennull.App.rootNode()Returns the workflow node the app runs, or empty when it runs an agent tree. -
Uses of Experimental in com.google.adk.events
Methods in com.google.adk.events with annotations of type ExperimentalModifier and TypeMethodDescriptionEvent.Builder.isolationScope(@Nullable String value) Event.isolationScope()Returns the isolated conversation this event belongs to, such as a delegated task, so an agent's model history can keep only events from its own scope.Event.nodeInfo()Identifies the workflow-node activation that emitted this event; outside a workflow, this value is empty or has an empty path.Event.nodeName()Returns the name of the workflow node that emitted this event, fromNodeInfo.name().Event.output()For a workflow node, returns the value handed to successors, distinct fromEvent.content(), or empty when the event carries no node output.EventActions.route()For a workflow node, returns the routes this event selects; an edge is followed when it has one of these routes.voidEvent.setIsolationScope(@Nullable String isolationScope) voidEvent.setNodeInfo(@Nullable NodeInfo nodeInfo) voidvoid -
Uses of Experimental in com.google.adk.plugins
Classes in com.google.adk.plugins with annotations of type ExperimentalModifier and TypeClassDescriptionfinal classProvides self-healing error recovery for tool failures.static interfaceFinds an error that a tool reported in its result instead of throwing.static enumDefines the lifecycle scope for tracking tool failure counts. -
Uses of Experimental in com.google.adk.runner
Methods in com.google.adk.runner with annotations of type ExperimentalModifier and TypeMethodDescriptionRunner.node()Returns the workflow node this runner runs, or empty when it runs an agent tree.io.reactivex.rxjava3.core.Flowable<Event>Runner.runAsync(String userId, String sessionId, @Nullable String invocationId, @Nullable com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) Runs the agent, resuming an existing invocation instead of starting a new one. -
Uses of Experimental in com.google.adk.web.service
Methods in com.google.adk.web.service with annotations of type Experimental -
Uses of Experimental in com.google.adk.workflow
Classes in com.google.adk.workflow with annotations of type ExperimentalModifier and TypeClassDescriptionclassBase class for nodes in a workflow graph.final classAn exception thatContext.runNode(com.google.adk.workflow.Node)signals when the child node fails.final recordA connection between two nodes in a workflow graph.final classA builder for the edges of a workflow graph, declared as chains of calls that start atEdgesBuilder.from(com.google.adk.workflow.Node)orEdgesBuilder.fromStart().static final classA chain of edges positioned at a node, started byEdgesBuilder.from(Node),EdgesBuilder.fromStart()orEdgesBuilder.NodeGroupChain.joinTo(com.google.adk.workflow.JoinNode).static final classA chain of edges positioned at a node group from a fan-out,EdgesBuilder.from(Node, Node, Node...), orEdgesBuilder.from(Collection), whichEdgesBuilder.NodeGroupChain.joinTo(com.google.adk.workflow.JoinNode)connects to aJoinNode.static final classA routing map configured inEdgesBuilder.EdgeChain.route(java.util.function.Consumer<? super com.google.adk.workflow.EdgesBuilder.RouteMap>)that maps each route the source node may emit to the nodes it leads to, writtenr.on("billing").then(billing).static final classA routing-map entry started byEdgesBuilder.RouteMap.on(java.lang.String)whose routes have no target yet;EdgesBuilder.RouteMapEntry.then(com.google.adk.workflow.Node, com.google.adk.workflow.Node...)completes it.static final classA set of routes that select a single edge, which fires once when its source emits any of them; separate edges to the same target would fire once each.final classThrown when a workflow graph is malformed, such as whenStartcannot reach a node or a cycle has no routed edge.final classA node that waits for every predecessor to complete, then outputs their outputs keyed by predecessor name.classA node's retry policy and execution timeout.classBase class for node failures raised by the workflow runtime, such asNodeTimeoutException.final classThe state of one workflow node run, held by the run'sContext.classThe identity of the workflow-node activation that emitted anEvent.final classThe runner for one workflow node, which times out an attempt that exceeds the node's optional timeout and retries the node as its retry policy allows.final classThrown when a node's attempt outlasts the timeout thatNodeConfig.timeout()sets.final classStatic factories for workflow nodes that run a node once per item of a list input.classA node's request for user input, which pauses the workflow until the user answers it.classHow a node is retried when it fails.interfaceA value on a workflow edge, and the value a node emits to select which of its outgoing edges are followed.classConfiguration for running a child node withContext.runNode(com.google.adk.workflow.Node).final classThe node that marks where a workflow graph starts.final classStatic factories for workflow nodes that run aBaseTool, such as an MCP tool or an agent wrapped as a tool.final classA graph of nodes that is itself a node, so a workflow can go wherever a node can, including in another workflow.final classThrown when a workflow or one of its nodes is declared in a way that cannot run.Methods in com.google.adk.workflow with annotations of type ExperimentalModifier and TypeMethodDescriptiondefault NodeConfigNode.config()Returns the node's retry policy and execution timeout.default Optional<com.google.genai.types.Schema>Node.inputSchema()Returns the schema the node's input must match.default Optional<com.google.genai.types.Schema>Node.outputSchema()Returns the schema that the node's output value must match.default booleanNode.requiresAllPredecessors()Returnstrueif the node runs only once every predecessor has completed, receiving all their outputs keyed by node name, as a fan-in node does.default booleanNode.rerunOnResume()Returnstrueif a resumed node runs again from scratch, rather than completing with the resuming answer as its output.static io.reactivex.rxjava3.core.Maybe<Object>NodeRunner.runChild(Context parent, Node node, @Nullable Object nodeInput, RunNodeConfig config) Runsnodeas a child of the node whose context isparent, asContext.runNode(Node, Object, RunNodeConfig)describes.io.reactivex.rxjava3.core.Flowable<?>Runs the node onnodeInput, the output it receives from its predecessors.static io.reactivex.rxjava3.core.Flowable<Event>NodeRunner.runRoot(Node node, InvocationContext context, Function<? super Event, ? extends io.reactivex.rxjava3.core.Single<Event>> processEvent) Runsnodeas the root ofcontexton the invocation's user content, passing each event throughprocessEventin order; onlyRunnershould call this method.default Optional<com.google.genai.types.Schema>Node.stateSchema()Returns the schema declaring the state keys the node uses.default booleanNode.waitForOutput()Returnstrueif the node stays re-triggerable until it produces an output or a route, instead of completing when its run completes.