Interop上下文(Context)查看
Java-friendly view of a Context: each method calls the suspend method of the same name and returns a CompletableFuture of its result, so Java callers never pass a Continuation. Each call runs in the caller's OpenTelemetry context, on the calling thread until it first suspends (so runNode children get their run IDs in call order) and then on Dispatchers.IO, as PublisherRunner runs agents. Each call is canceled with its future and with the Job given to of, if any, or otherwise when the node run that owns the context, if any, ends, so await each call before the node finishes.
函数
调用(函数或方法) Context.addEventsToMemory.
调用(函数或方法) Context.addMemory.
调用(函数或方法) Context.addSessionToMemory.
调用(函数或方法) Context.getAuthResponse……未来就这样完成了。 null 如果应用程序尚未将凭证发送回来。
调用(函数或方法) Context.getEvents.
调用(函数或方法) Context.listArtifacts.
调用(函数或方法) Context.loadArtifact该功能会在需要时加载最新版本的软件/程序。 版本 是 null……未来就这样完成了。 null 如果不存在这样的工件(artifact),或者没有提供相关的工件服务(artifact service),则应采取相应的处理措施。
调用(函数或方法) Context.runNode 使用这些选项…… config;未来的结果取决于孩子的表现(或者说,未来的发展取决于孩子所做出的贡献)。 null 当系统没有任何错误信息时(即系统没有报告任何异常情况时),只捕获那些由你负责处理的错误。例如:只有那些与你所编写的代码或功能相关的错误才需要被捕获和处理。 DynamicNodeFailedException:何时 node 程序会暂停以等待用户输入;如果用户没有输入任何内容,程序会因内部错误而失败。 Throwable 这必然会导致调用节点的运行终止,因此调用节点也会被迫等待(即无法继续执行其任务)。 node 当这个函数被调用时,程序就会开始执行;此时,调用该函数的节点所发布的事件(published events)尚未被存储到系统中。因此,请将任何需要传递的数据一并传递给这个函数。 node 需要…… nodeInput 或者将该数据写入前面的某个节点中。
调用(函数或方法) Context.saveArtifact返回的 `Future` 对象会包含保存后的版本信息。在节点发出其他输出或完成其操作之前,请务必等待该 `Future` 对象的执行结果;因为只有节点后续发生的事件才会将版本信息记录到会话(session)中。