Uses of Interface
com.google.adk.workflow.Node
Packages that use Node
Package
Description
-
Uses of Node in com.google.adk.a2a.agent
Classes in com.google.adk.a2a.agent that implement NodeModifier and TypeClassDescriptionclassAgent that communicates with a remote A2A agent via an A2A client. -
Uses of Node in com.google.adk.agents
Classes in com.google.adk.agents that implement NodeModifier and TypeClassDescriptionclassBase class for all agents.classThe LLM-based agent.classAn agent that runs its sub-agents sequentially in a loop.final 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.classA shell agent that runs its sub-agents in parallel in isolated manner.classAn agent that delegates execution planning to aPlannerstrategy.classAn agent that runs its sub-agents sequentially.Methods in com.google.adk.agents that return NodeModifier and TypeMethodDescriptionNodeViewAgent.node()Returns the node this agent stands in for.Methods in com.google.adk.agents that return types with arguments of type NodeModifier and TypeMethodDescriptionInvocationContext.node()Returns the workflow node this invocation runs, or empty when it runs an agent.Methods in com.google.adk.agents with parameters of type NodeModifier and TypeMethodDescriptionSets the workflow node the invocation runs, or null when it runs an agent.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.Constructors in com.google.adk.agents with parameters of type NodeModifierConstructorDescriptionNodeViewAgent(Node node) Creates an agent that stands in fornode, using its name and description. -
Uses of Node in com.google.adk.apps
Methods in com.google.adk.apps that return types with arguments of type NodeModifier and TypeMethodDescriptionApp.rootNode()Returns the workflow node the app runs, or empty when it runs an agent tree.Methods in com.google.adk.apps with parameters of type NodeModifier and TypeMethodDescriptionSets the workflow node the app runs in place of a root agent, or clears it whennull. -
Uses of Node in com.google.adk.runner
Methods in com.google.adk.runner that return types with arguments of type Node -
Uses of Node in com.google.adk.web.service
Methods in com.google.adk.web.service that return types with arguments of type Node -
Uses of Node in com.google.adk.workflow
Classes in com.google.adk.workflow that implement NodeModifier and TypeClassDescriptionclassBase class for nodes in a workflow graph.final classA node that waits for every predecessor to complete, then outputs their outputs keyed by predecessor name.final classThe node that marks where a workflow graph starts.final classA graph of nodes that is itself a node, so a workflow can go wherever a node can, including in another workflow.Methods in com.google.adk.workflow that return NodeModifier and TypeMethodDescriptionstatic NodeReturns a node named aftertool, with the defaultNodeConfig.static Nodestatic NodeToolNodes.asNode(BaseTool tool, String name, NodeConfig config) Returns a node namednamethat runstoolwithconfig; session state supplies any required parameter that the input lacks.Edge.from()Returns the value of thefromrecord component.NodeExecutionState.node()Returns the node this run belongs to.static NodeParallelWorkers.parallelNode(Node node) Returns a node that runsnodeon every item at once.static NodeParallelWorkers.parallelNode(Node node, int maxParallelWorkers) Returns a node that runsnodeon each item of a list input, at mostmaxParallelWorkersat a time and starting them in input order; the returned node takesnode's name, description, state schema andrequiresAllPredecessors(), and leaves its config and input and output schemas to each item's run.Edge.to()Returns the value of thetorecord component.Methods in com.google.adk.workflow with parameters of type NodeModifier and TypeMethodDescriptionConnects the current node tofirst,secondand each node inrestin order, and continues from the last one:g.fromStart().chain(a, b)is short forg.fromStart().then(a).then(b).Starts a chain of edges atnode:g.from(a).then(b).then(c).Starts a chain atfirst,secondand each node inrestso they can join without a fan-out:g.from(a, b).joinTo(join).voidLeads to each target when no other route of the source node matches, including when it emits none.static NodeParallelWorkers.parallelNode(Node node) Returns a node that runsnodeon every item at once.static NodeParallelWorkers.parallelNode(Node node, int maxParallelWorkers) Returns a node that runsnodeon each item of a list input, at mostmaxParallelWorkersat a time and starting them in input order; the returned node takesnode's name, description, state schema andrequiresAllPredecessors(), and leaves its config and input and output schemas to each item's run.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.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.Connects the current node tonextand continues fromnext.Fans out by connecting the current node tofirst,secondand each node inrest, likeEdgesBuilder.EdgeChain.then(Collection):g.from(a).then(b, c).joinTo(join).voidLeads tofirstand each node inrest, with one edge to each, when the source node emits any of this entry's routes.Method parameters in com.google.adk.workflow with type arguments of type NodeModifier and TypeMethodDescriptionEdgesBuilder.from(Collection<? extends Node> nodes) Starts a chain atnodes(such as a computed list) so they can join without a fan-out, likeEdgesBuilder.from(Node, Node, Node...).EdgesBuilder.EdgeChain.then(Collection<? extends Node> targets) Fans out by connecting the current node to each oftargets(such as a computed list) so they run concurrently, and continues from them as a group thatEdgesBuilder.NodeGroupChain.joinTo(com.google.adk.workflow.JoinNode)can join.Constructors in com.google.adk.workflow with parameters of type Node