接口的用途
com.google.adk.workflow.Node

Packages that use Node
  • **用途:** Node 在……里面;处于……状态 com.google.adk.a2a.agent

    Classes in com.google.adk.a2a.agent that implement Node
    Modifier and Type
    Class
    Description
    class 
    该代理通过 A2A 客户端与远程的 A2A 代理进行通信。
  • **用途:** Node 在……里面;处于……状态 com.google.adk.agents

    Classes in com.google.adk.agents that implement Node
    Modifier and Type
    Class
    Description
    class 
    所有代理的基类。
    class 
    这个基于大型语言模型(LLM)的智能代理。
    class 
    一个代理程序,它会按顺序循环执行其下属的子代理程序。
    final class 
    这是一个只读代理(read-only agent),它用于替代那些不支持代理功能的工作流节点(non-agent workflow nodes)。这样一来,当应用程序(app)、运行器(runner)或调用组件(invocation)执行相关节点时,读取该代理中代码的操作仍能正常进行。
    class 
    这是一个 shell 代理程序,它能够以并行方式、并在隔离的环境中运行其下属代理程序(即子代理)。
    class 
    一种将执行计划任务委托给其他系统的代理(agent)。 Planner strategy.
    class 
    一个依次运行其子代理的代理程序。
    Methods in com.google.adk.agents that return Node
    Modifier and Type
    Method
    Description
    NodeViewAgent.node()
    返回该代理所代表的节点。
    Methods in com.google.adk.agents that return types with arguments of type Node
    Modifier and Type
    Method
    Description
    InvocationContext.node()
    返回当前调用所执行的工作流节点;如果当前调用是用于执行代理(agent)的操作,则返回空值。
    Methods in com.google.adk.agents with parameters of type Node
    Modifier and Type
    Method
    Description
    InvocationContext.Builder.node(@Nullable Node node)
    该参数用于指定调用任务所执行的流程节点;当调用任务是通过代理(agent)来执行的时,该参数的值为 `null`。
    final io.reactivex.rxjava3.core.Maybe<Object>
    Context.runNode(Node node)
    运行 node 作为这个工作流节点的“子节点”(即没有输入参数的节点),其行为如下: Context.runNode(Node, Object, RunNodeConfig) 这与默认设置有关。 RunNodeConfig.
    final io.reactivex.rxjava3.core.Maybe<Object>
    Context.runNode(Node node, @Nullable Object nodeInput)
    运行 node 作为该工作流节点的“子节点”(即该节点所依赖的另一个节点), Context.runNode(Node, Object, RunNodeConfig) 这与默认设置有关。 RunNodeConfig.
    final io.reactivex.rxjava3.core.Maybe<Object>
    Context.runNode(Node node, @Nullable Object nodeInput, RunNodeConfig config)
    返回一个 Maybe 也就是说,一旦用户订阅了该服务,相关程序就会自动运行。 node 作为该工作流程的一部分(即作为该流程中的一个节点),该节点会输出该节点自身的处理结果;如果该节点没有任何需要处理的数据或任务,那么它将输出空内容(即没有任何输出)。
    Constructors in com.google.adk.agents with parameters of type Node
    Modifier
    Constructor
    Description
     
    创建一个代理(agent),用于代表用户或系统执行某些操作。 node使用该组件的名称和描述来进行操作。
  • **用途:** Node 在……里面;处于……状态 com.google.adk.apps

    Methods in com.google.adk.apps that return types with arguments of type Node
    Modifier and Type
    Method
    Description
    App.rootNode()
    返回应用程序运行的工作流节点;如果应用程序运行的是代理树(agent tree),则返回空值。
    Methods in com.google.adk.apps with parameters of type Node
    Modifier and Type
    Method
    Description
    App.Builder.rootNode(@Nullable Node rootNode)
    将应用程序运行的工作流节点设置为替代根代理(root agent)的节点;或者在该节点被替换时将其清除。 null.
  • **用途:** Node 在……里面;处于……状态 com.google.adk.classifiers

    Classes in com.google.adk.classifiers that implement Node
    Modifier and Type
    Class
    Description
    final class 
    这是一个工作流节点,它会根据分类器对与该节点输入相关的问题所给出的答案来决定后续的处理路径(即选择哪个处理流程)。具体来说,这个节点会根据分类器给出的“标签(label)”来决定后续应该执行哪个操作或流程。 Question.Choice 选择答案,或者…… true 或者 false for a Question.Binary 答案由……决定。 ClassifierNode.threshold().
  • **用途:** Node 在……里面;处于……状态 com.google.adk.runner

    Methods in com.google.adk.runner that return types with arguments of type Node
    Modifier and Type
    Method
    Description
    Runner.node()
    返回该运行器所执行的工作流节点;如果该运行器执行的是代理树(agent tree),则返回空值。
  • **用途:** Node 在……里面;处于……状态 com.google.adk.web.service

    Methods in com.google.adk.web.service that return types with arguments of type Node
    Modifier and Type
    Method
    Description
    RunnerService.loadRoot(String appName)
    返回应用程序的根节点(即应用程序启动时所加载的第一个模块)。 appName `runs`: 指该工作流节点所执行的操作;如果没有具体的操作,则表示执行其根节点(即整个工作流的起始节点)。 `agent`: 指执行该操作的代理或工具。
  • **用途:** Node 在……里面;处于……状态 com.google.adk.workflow

    Classes in com.google.adk.workflow that implement Node
    Modifier and Type
    Class
    Description
    class 
    工作流图中节点的基类。
    final class 
    这是一个工作流节点:它会针对每个输入数据执行 Java 函数,并且每个输入端口都对应不同的数据类型;你可以使用该节点来构建相应的流程。 FunctionNodes.of(String, Class, Class, NodeBody) 或者 FunctionNodes.builder(Class, Class).
    final class 
    这是一个节点:它会等待所有前置任务(predecessors)完成,之后按照前置任务的名称对它们的输出结果进行排序并输出。
    final class 
    表示工作流图开始位置的节点。
    final class 
    这是一个由节点组成的图,而这个图本身也是一个节点;因此,工作流程可以移动到任何节点所在的位置,包括进入另一个工作流程。
    Methods in com.google.adk.workflow that return Node
    Modifier and Type
    Method
    Description
    static Node
    ToolNodes.asNode(BaseTool tool)
    返回一个以特定名称命名的节点。 tool使用默认设置 NodeConfig.
    static Node
    ToolNodes.asNode(BaseTool tool, String name)
    返回一个名为……的节点。 name 那个可以运行的程序/系统…… tool使用默认设置 NodeConfig.
    static Node
    ToolNodes.asNode(BaseTool tool, String name, NodeConfig config)
    返回一个名为……的节点。 name 那个可以运行的程序/系统…… tool 使用(with) config; 会话状态(session state) 会补充输入数据中缺失的任何所需参数。
    Edge.from()
    返回该值的值。 from “record component”(记录组件)。
    NodeExecutionState.node()
    返回当前运行任务所属的节点。
    static Node
    ParallelWorkers.parallelNode(Node node)
    返回一个可以运行的节点。 node 同时作用于所有项目(即对每个项目都执行相同的操作)。
    static Node
    ParallelWorkers.parallelNode(Node node, int maxParallelWorkers)
    返回一个可以运行的节点。 node 对于列表输入中的每个项目,最多执行一次该操作。 maxParallelWorkers 一次处理一个节点,并按照输入顺序依次执行这些操作;返回的节点会包含处理后的结果。 node名称、描述、状态结构(state schema)以及…… Node.requiresAllPredecessors()它将自己的配置文件(config)、输入数据格式(input schema)以及输出数据格式(output schema)留给每个项目的具体执行过程(run)来处理。
    Edge.to()
    返回该值的值。 to “record component”(记录组件)。
    Methods in com.google.adk.workflow with parameters of type Node
    Modifier and Type
    Method
    Description
    EdgesBuilder.EdgeChain.chain(Node first, Node second, Node... rest)
    将当前节点连接到…… first, second 以及其中的每个节点…… rest 按照顺序继续执行,从上一个任务开始: g.fromStart().chain(a, b) 是“short for”的缩写(即“……的简称”)。 g.fromStart().then(a).then(b).
    EdgesBuilder.from(Node node)
    在一个点开始一系列边的连接(即创建一条边的链)。 node: g.from(a).then(b).then(c).
    EdgesBuilder.from(Node first, Node second, Node... rest)
    在一个特定的点开始执行一系列操作(或流程)。 first, second 以及其中的每个节点…… rest 这样他们就可以加入进来,而不会导致任何额外的问题或混乱(即:加入过程不会引发额外的副作用或负面影响)。 g.from(a, b).joinTo(join).
    void
    EdgesBuilder.RouteMap.otherwise(Node first, Node... rest)
    当源节点的其他路径都无法匹配目标节点时,该路径会被选中(用于将数据传输到目标节点);即使该路径没有发送任何数据(即传输量为 0)也是如此。
    static Node
    ParallelWorkers.parallelNode(Node node)
    返回一个可以运行的节点。 node 同时作用于所有项目(即对每个项目都执行相同的操作)。
    static Node
    ParallelWorkers.parallelNode(Node node, int maxParallelWorkers)
    返回一个可以运行的节点。 node 对于列表输入中的每个项目,最多执行一次该操作。 maxParallelWorkers 一次处理一个节点,并按照输入顺序依次执行这些操作;返回的节点会包含处理后的结果。 node名称、描述、状态结构(state schema)以及…… Node.requiresAllPredecessors()它将自己的配置文件(config)、输入数据格式(input schema)以及输出数据格式(output schema)留给每个项目的具体执行过程(run)来处理。
    static io.reactivex.rxjava3.core.Maybe<Object>
    NodeRunner.runChild(Context parent, Node node, @Nullable Object nodeInput, RunNodeConfig config)
    运行 node 作为那个节点的“子节点”(即该节点的直接下属节点),其上下文(context)为…… parent, as Context.runNode(Node, Object, RunNodeConfig) 该描述说明了产品的功能或特性。
    static io.reactivex.rxjava3.core.Flowable<Event>
    NodeRunner.runRoot(Node node, InvocationContext context, Function<? super Event, ? extends io.reactivex.rxjava3.core.Single<Event>> processEvent)
    运行 node 作为……的根源;作为……的基础 context 在调用过程中,会处理用户提供的内容,并将每个事件依次传递下去(即:每个事件都会被依次处理)。 processEvent (表示事情按计划进行或按预期发展)很好;只是…… Runner 应该调用这个方法。
    EdgesBuilder.EdgeChain.then(Node next)
    将当前节点连接到…… next 并从中继续…… next.
    EdgesBuilder.EdgeChain.then(Node first, Node second, Node... rest)
    粉丝们通过将当前节点连接到……来表达他们的支持。 first, second 以及其中的每个节点…… rest就像…… EdgesBuilder.EdgeChain.then(Collection): g.from(a).then(b, c).joinTo(join).
    void
    EdgesBuilder.RouteMapEntry.then(Node first, Node... rest)
    导致;引起 first 以及其中的每个节点…… rest当源节点发出该条记录中的任意一条路由时,每个目标节点都会收到一条相应的消息(即一条边),从而建立起它们之间的连接。
    Method parameters in com.google.adk.workflow with type arguments of type Node
    Modifier and Type
    Method
    Description
    EdgesBuilder.from(Collection<? extends Node> nodes)
    在一个特定的点开始执行一系列操作(或流程)。 nodes (例如一个计算出的列表),这样它们就可以直接连接在一起,而不会产生额外的分支或副作用。 EdgesBuilder.from(Node, Node, Node...).
    EdgesBuilder.EdgeChain.then(Collection<? extends Node> targets)
    粉丝们通过将当前节点连接到每一个……(此处“each of”后应补充具体的连接对象或设备)来参与互动。 targets (例如一个计算出的列表) 这样这些任务就可以同时运行,并作为一个整体继续执行下去。 EdgesBuilder.NodeGroupChain.joinTo(JoinNode) 可以加入。
    Constructors in com.google.adk.workflow with parameters of type Node
    Modifier
    Constructor
    Description
     
    Edge(Node from, Node to)
    创建一个无条件的边(即两个节点之间的连接)。
     
    Edge(Node from, Node to, Route route)
    根据单一路由所选的数据创建一条边(即连接两个节点的线段)。
     
    Edge(Node from, Node to, com.google.common.collect.ImmutableList<Route> routes)
    创建一个……的实例。 Edge 记录类(Record Class)。