agently-triggerflow-state-and-resources by agentera/agently-skills
npx skills add https://github.com/agentera/agently-skills --skill agently-triggerflow-state-and-resources本技能涵盖 Agently 中 TriggerFlow 运行时状态的放置和仅运行时依赖项的设计。它聚焦于 runtime_data 与 flow_data、流程级与执行级运行时资源、执行作用域的 data.set_resource(...)、执行保存/加载后保留的内容、不保留的内容,以及状态或资源如何跨越子流程边界。它不涵盖通用分支模式、模型请求、作为独立主题的中断、流程配置导出/导入或执行恢复的机制。
前置条件:Agently >= 4.0.8.5。
在以下情况下使用本技能:
runtime_data / data.state 和 flow_data / data.flow_state 之间做出选择广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
data.set_resource(...)在以下情况下不要使用本技能:
when(...)、batch(...)、for_each(...) 或 collect(...)to_sub_flow(...)、capture 和 write_back 作为主要主题pause_for(...)、continue_with(...) 或运行时流生命周期execution.save() / execution.load() 的机制以及恢复后的继续执行runtime_data 和 flow_data 之间做出选择。data.set_resource(...),请阅读 references/resources-and-overrides.md。agently-triggerflow-execution-state。TriggerFlow 有三个不同的运行时层面:
runtime_data 仅用于一次执行flow_data 用于共享的流程级状态选择错误的层面会导致大多数现实世界中的 TriggerFlow 状态错误:
runtime_dataflow_dataruntime_resources=...data.set_resource(...)agently-triggerflow-execution-state 结合使用agently-triggerflow-subflows 结合使用agently-session-memo,而不是 flow_dataruntime_data 是执行作用域的,不应用于跨执行共享flow_data 在一个流程对象上共享,同一流程的后续执行可能可见references/source-map.mdreferences/state-placement.mdreferences/resources-and-overrides.mdreferences/persistence-boundaries.mdreferences/subflow-boundaries.mdreferences/troubleshooting.md每周安装数
1
代码仓库
首次出现
1 天前
安全审计
安装于
mcpjam1
claude-code1
replit1
junie1
windsurf1
zencoder1
This skill covers TriggerFlow runtime state placement and runtime-only dependency design in Agently. It focuses on runtime_data versus flow_data, flow-level versus execution-level runtime resources, execution-scoped data.set_resource(...), what survives execution save/load, what does not, and how state or resources cross sub-flow boundaries. It does not cover generic branching patterns, model requests, interrupts as a standalone topic, flow-config export/import, or the mechanics of execution restore.
Prerequisite: Agently >= 4.0.8.5.
Use this skill for:
runtime_data / data.state and flow_data / data.flow_statedata.set_resource(...) and execution-scoped resource injectionDo not use this skill for:
when(...), batch(...), for_each(...), or collect(...)to_sub_flow(...), capture, and write_back as the main topicpause_for(...), continue_with(...), or runtime-stream lifecycleexecution.save() / execution.load() and resume-after-restoreruntime_data and flow_data.data.set_resource(...), read references/resources-and-overrides.md.agently-triggerflow-execution-state.TriggerFlow has three different runtime surfaces:
runtime_data for one execution onlyflow_data for shared flow-level stateChoosing the wrong surface causes most real-world TriggerFlow state bugs:
runtime_dataflow_dataruntime_resources=...data.set_resource(...)agently-triggerflow-execution-stateagently-triggerflow-subflowsagently-session-memo, not flow_dataruntime_data is execution-scoped and should not be used for cross-execution sharingflow_data is shared on one flow object and may be visible to later executions of the same flowreferences/source-map.mdreferences/state-placement.mdreferences/resources-and-overrides.mdreferences/persistence-boundaries.mdreferences/subflow-boundaries.mdreferences/troubleshooting.mdWeekly Installs
1
Repository
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
mcpjam1
claude-code1
replit1
junie1
windsurf1
zencoder1
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
60,400 周安装