/** * ActionSchedule Runtime:plugin action 延迟执行的轮询运行时。 * * 关键点(中文) * - ActionSchedule 不是 plugin,因此不出现在 plugin 列表、状态和 lifecycle 中。 * - 这里只跟随 Agent 长期运行生命周期启动,用于消费持久化的 action schedule 任务。 * - 普通 plugin 先启动,ActionSchedule 再开始轮询,避免到期 action 执行到未启动的 plugin。 */ import type { AgentStorage } from "../../types/agent/AgentStorage.js"; import type { PluginContext } from "../../types/plugin/PluginContext.js"; import type { Logger } from "../../utils/logger/Logger.js"; /** * ActionSchedule runtime 停止句柄。 */ export interface ActionScheduleRuntimeHandle { /** * 停止轮询并释放持久化存储资源。 */ stop(): void; } /** * 启动 ActionSchedule 轮询 runtime。 */ export declare function start_action_schedule_runtime(agent_id: string, storage: AgentStorage, logger: Logger, resolve_context: (workspace_id?: string) => PluginContext | null): Promise; //# sourceMappingURL=ActionScheduleRuntime.d.ts.map