在……里面;在……期间内存Runner
构造函数(Constructors)
Link copied to clipboard
constructor(agent: BaseAgent, appName: String = "InMemoryRunner", sessionService: SessionService = InMemorySessionService(), artifactService: ArtifactService? = InMemoryArtifactService(), memoryService: MemoryService? = InMemoryMemoryService(), plugins: List<Plugin> = emptyList())
创建一个…… InMemoryRunner 从根节点开始 代理;工作人员,它的 插件(plugins)以及默认的内存服务(in-memory services)。
constructor(app: App, sessionService: SessionService = InMemorySessionService(), artifactService: ArtifactService? = InMemoryArtifactService(), memoryService: MemoryService? = InMemoryMemoryService(), skipClosingPlugins: Boolean = false)
创建一个…… InMemoryRunner from an 应用程序(App)(该名称/术语的)来源/出处是…… App.appName, App.rootAgent, App.plugins,以及 App.resumabilityConfig.
类型
Link copied to clipboard
class Builder
Fluent Builder for InMemoryRunner该功能主要为 Java 语言的调用者提供支持;如果某个属性未被设置,其值将默认使用构造函数中指定的默认值。
属性(Properties)
函数
Link copied to clipboard
open suspend override fun rewindAsync(userId: String, sessionId: String, rewindBeforeInvocationId: String)
将会话状态恢复到之前的状态(即“回滚”会话)。 Runner.rewindAsync 首先进行描述(description),然后执行清除操作(flush)。 sessionService 因此,之前的操作(比如“倒带”功能)会被保留下来(即不会被撤销)。
Link copied to clipboard
open override fun runLive(userId: String, sessionId: String, liveRequestQueue: LiveRequestQueue, runConfig: RunConfig? = null): Flow<Event>
以实时模式运行代理程序。 Runner.runLive 描述了该功能的作用:即“刷新”(Flush)数据或资源。 sessionService 每个回合中,当回合结束时,或者当控制权移交给其他代理或进入下一个步骤时,以及当整个流程完成或失败时,系统都会执行相应的操作。每次操作都有明确的边界(即操作的范围是有限的);因此,如果某个会话服务出现故障,整个流程会立即终止(而不是继续运行并导致系统陷入无限循环)。