操作
| 免费( 读) | 问(存储) |
|---|---|
list · get · runs · run_status | create · update · delete |
test_step - 在拯救链条之前 | run · resume · retry · cancel |
命令它先读完医生的书
iagenify_docs { topic: "workflows" } 在写入定义前先写入一个定义 - 步骤ids, 模板语法和其中每个步骤类型输出的内容。 从记忆中发明的定义失败验证 。
旅行的定义为: JSON 文字文字文字文字
workflow({
action: "create",
definition: '{"name":"Triage","trigger":{"type":"manual"},"steps":[{"id":"draft","type":"model.generate","config":{…}}]}',
})# The Python workflow tool lists, reads and runs; creating one is done from your code
workflow = api.workflows.create({
"name": "Triage",
"trigger": {"type": "manual"},
"steps": [{"id": "draft", "type": "model.generate", "config": {}}],
})
# The model then calls: workflow {"action": "run", "workflow_id": workflow.id}跑步不停地追寻答案
run_status 其随后是如何的
开始运行返回其 ID , 运行继续独立运行。 代理程序检查 run_status 而不是等待,比对话时间长的跑步是工作流程的要点。
人脚脚下,你可批准
resume 工具的描述清楚说明用户决定而不是代理——先问他们。
test_step 保存前
单靠一步跑 便宜得比用链子 找出第三步错了