Uses of Annotation Interface
com.google.adk.annotations.Experimental
Packages that use Experimental
Package
Description
-
Uses of Experimental in com.google.adk.a2a.converters
Methods in com.google.adk.a2a.converters with annotations of type ExperimentalModifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableList<io.a2a.spec.Part<?>> EventConverter.answerParts(List<Event> events) Returns the parts of the user's answer to send to the remote agent whose call it answers. -
Uses of Experimental in com.google.adk.agents
Classes in com.google.adk.agents with annotations of type ExperimentalModifier and TypeClassDescriptionenumHow anLlmAgentconverses when it runs as a workflow node.final classA read-only agent representing any workflow node, including an agent, so code reading the agent of an app, runner, or invocation still works when it runs a node.Methods in com.google.adk.agents with annotations of type ExperimentalModifier and TypeMethodDescriptionReturns the modeagentruns in as a workflow node in this context, or empty when it runs without one.InvocationContext.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.static booleanLlmAgent.delegatesTask(BaseTool tool) Returns whethertooldelegates a task to aAgentMode.TASKsub-agent, whose response the delegating agent gives once the task ends.final voidSendseventfrom this workflow node'sFunctionNodebody, after the events of earlier calls and before the output.final voidContext.emit(com.google.genai.types.Content message) Sendsmessageas an event without an output, asContext.emit(Event)does.InvocationContext.endOfAgents()Returns an unmodifiable view of the per-agent end-of-agent flags for this invocation, keyed by agent name.static booleanLlmAgent.endsTaskWithError(Event event) Returns whethereventreports an execution error of a task's run, such as a failure, rather than an error code a model gave as its finish or block reason.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.static booleanLlmAgent.finishesTask(Event event) Returns whethereventends a task with its ownfinish_taskcall that succeeded: one the task agent answered, not the user or an agent it transferred to.booleanReturns whether this agent's own mode isexpected.booleanLlmAgent.includeContentsExplicit()Returns whetherLlmAgent.Builder.includeContents(IncludeContents)was set, which aSINGLE_TURNworkflow node then uses instead of running without history.booleanLlmAgent.isChatNode()Returns whether this agent runs as aAgentMode.CHATworkflow node, either set or because another agent in its tree sets a mode.static booleanLlmAgent.isFinishTaskTool(Object tool) Returns whethertoolis thefinish_tasktool a task agent gets.InvocationContext.isolationScope()Returns the isolation scope of the workflow node that the agent runs as, or empty when the node is unscoped or outside a workflow.booleanInvocationContext.isOtherNodeInput(Event event) Returns whethereventis a user turn that a workflow node other than this context's added as its input, which the agent here does not see.booleanInvocationContext.isResumable()Returns whether the current invocation is resumable.Sets how this agent converses when it runs as a workflow node.LlmAgent.mode()Returns how this agent converses when it runs as a workflow node, or empty without a mode.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.InvocationContext.nodePath()Returns the path of the workflow node the agent runs as, or empty outside a workflow.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.io.reactivex.rxjava3.core.Flowable<Event> Runs this agent as a workflow node: aAgentMode.SINGLE_TURNagent takes the node input as its user turn and gives the first final reply, its own or its inline target's, as output; aAgentMode.TASKagent works untilfinish_tasksucceeds, failing withStateSchemaExceptionif the node's state schema rejects itsLlmAgent.outputKey()write; and aAgentMode.CHATagent runs the tasks it delegates and stays open (LlmAgent.waitForOutput()).static booleanLlmAgent.runsAsTask(BaseAgent agent, InvocationContext context) Returns whetheragentruns as aAgentMode.TASKworkflow node incontext, so it ends its task withfinish_task.static booleanLlmAgent.runsAsTool(BaseAgent agent) Returns whetheragentis aAgentMode.SINGLE_TURNorAgentMode.TASKagent, which its parent calls as a tool rather than transfers to.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.intInvocationContext.stepsTaken(BaseAgent agent) Returns the model stepsagenthas taken in its workflow node run, which its delegation rounds share, or 0 outside such a run.com.google.common.collect.ImmutableList<BaseAgent> LlmAgent.transferTargets()Returns the agents this one may transfer to: its sub-agents, plus its parent and peers unless disallowed, in the order the model sees them.com.google.common.collect.ImmutableList<BaseAgent> LlmAgent.transferTargets(InvocationContext context) Returns the agents this one may transfer to incontext.booleanLlmAgent.waitForOutput()Returnstruefor aAgentMode.CHATorAgentMode.TASKagent, whose node stays open across turns until it produces an output.Constructors in com.google.adk.agents with annotations of type ExperimentalModifierConstructorDescriptionprotectedCallbackContext(InvocationContext invocationContext, @Nullable EventActions eventActions, @Nullable String eventId, @Nullable com.google.genai.types.Schema stateSchema) Initializes a callback context whoseContext.state()checks writes againststateSchema, if given, as a workflow node's does: it stores converted values and throwsStateSchemaExceptionon a mismatch or undeclared key.Context(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 (which may be an agent), or empty when the app has a root agent instead. -
Uses of Experimental in com.google.adk.classifiers
Classes in com.google.adk.classifiers with annotations of type ExperimentalModifier and TypeInterfaceDescriptioninterfaceAClassifier's answer to aQuestion: aAnswer.ChoiceAnswer, aAnswer.BinaryAnswer, aAnswer.ScoreAnswer, or aAnswer.RefusalAnswer.interfaceA decision model that answers typed questions with probability distributions.interfaceText or structured data that aClassifierreads as the input or as a question's instructions or criteria: plainClassifierContent.Text, or aClassifierContent.JsonObjectorClassifierContent.JsonArray.interfaceWhat aClassifieranswers questions about:ClassifierContent(text, or a JSON object or array) or multimodalClassifierInput.Contentparts.final classA workflow node that routes on a classifier's answer to one question about the node's input: the label aQuestion.Choiceanswer chose, ortrueorfalsefor aQuestion.Binaryanswer, decided byClassifierNode.threshold().final recordA request to aClassifierto answer one or more typed questions about an input.classThe answers that oneClassifier.classify(ClassifierRequest)call produced.final classAnswers typed questions with anyBaseLlmthrough structured output.interfaceA typed question that aClassifieranswers: aQuestion.Choice, aQuestion.Binary, or aQuestion.Score. -
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.flows.llmflows
Methods in com.google.adk.flows.llmflows with annotations of type ExperimentalModifier and TypeMethodDescriptionstatic booleanFunctions.leftADelegationUnanswered(InvocationContext context, Map<String, BaseTool> tools) Returns whether the agent's latest step in this invocation and branch called a task delegation that nothing answered since. -
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.sessions
Classes in com.google.adk.sessions with annotations of type ExperimentalModifier and TypeClassDescriptionfinal classThrown when a workflow's state schema rejects a state write: the schema does not declare the key, or the value does not match the key's schema.Methods in com.google.adk.sessions with annotations of type ExperimentalModifier and TypeMethodDescriptionstatic StateState.delegatingCompute(ConcurrentMap<String, Object> state, ConcurrentMap<String, Object> delta) Returns a state whosecompute*andmergemethods callstate's own, so they return whatstatestores. -
Uses of Experimental in com.google.adk.tools
Methods in com.google.adk.tools with annotations of type ExperimentalModifier and TypeMethodDescriptionToolContext.Builder.stateSchema(@Nullable com.google.genai.types.Schema stateSchema) Sets the state schema that the tool'sContext.state()checks writes against, as a workflow tool node does: writes store converted values and throwStateSchemaExceptionon a mismatch or undeclared key. -
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.interfaceA predicate that decides for each input whether aFunctionNoderun asks the user to approve it, set withFunctionNode.Builder.requireConfirmation(ConfirmationPredicate).final classAn exception thatContext.runNode(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(Node)orEdgesBuilder.fromStart().static final classA chain of edges positioned at a node, started byEdgesBuilder.from(Node),EdgesBuilder.fromStart()orEdgesBuilder.NodeGroupChain.joinTo(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(JoinNode)connects to aJoinNode.static final classA routing map configured inEdgesBuilder.EdgeChain.route(Consumer)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(String)whose routes have no target yet;EdgesBuilder.RouteMapEntry.then(Node, 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 classFunctionNode<I,O> A workflow node that runs a Java function on each input, with a type per port; build one withFunctionNodes.of(String, Class, Class, NodeBody)orFunctionNodes.builder(Class, Class).final classCreatesFunctionNodes with a type per port, as aClassor, for a generic type such asList<Order>, aTypeReference, read and written asFunctionNodedescribes.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.interfaceNodeBody<I,O> The body of aFunctionNode, which takes the node run's context and its single input; the input may be shared with other nodes, so the body must not mutate it.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 classThrown when a node's input does not fit the node, such as a value of the wrong type for its input port or one the node cannot work on.final classThe rules a node name follows so that the node paths and branches built from it stay intact.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(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.classThrown when data arriving during a run does not fit the receiving node, such as an answer it cannot route on.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.static booleanNodeRunner.isWaitSignal(Throwable error) Returns whethererrorsignals that a child node waits, which must end its caller's run so the caller waits too, rather than count as a failure.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 of the state keys that the node and its children may write; a child inherits it unless it declares its own.default booleanNode.waitForOutput()Returnstrueif the node stays re-triggerable until it produces an output or a route, instead of completing when its run completes.