Loading...
Loading...
Compare original and translation side by side
| Target | Command |
|---|---|
| Pipeline directory (recommended) | |
| Specific pipe in a directory | |
| Bundle file directly | |
| Pipe by code from library | |
Directory mode (recommended): Pass the pipeline directory as target. The CLI auto-detects,bundle.mthds, and setsinputs.jsonautomatically — no need to specify them explicitly. This also avoids namespace collisions with other bundles.-L
| 目标 | 命令 |
|---|---|
| 流水线目录(推荐) | |
| 目录中的特定管道 | |
| 直接指定包文件 | |
| 从库中通过代码指定管道 | |
目录模式(推荐):传入流水线目录作为目标。CLI会自动检测、bundle.mthds,并自动设置inputs.json——无需显式指定。这也避免了与其他包的命名空间冲突。-L
/inputsinputs.jsoninputs.json/build/inputs/inputsinputs.jsoninputs.json/build/inputs/runmthds-agent pipelex inputs bundle.mthds{
"success": true,
"pipe_code": "process_document",
"inputs": {
"document": {
"concept": "native.Document",
"content": {"url": "url_value"}
},
"context": {
"concept": "native.Text",
"content": {"text": "text_value"}
}
}
}content/runmthds-agent pipelex inputs bundle.mthds{
"success": true,
"pipe_code": "process_document",
"inputs": {
"document": {
"concept": "native.Document",
"content": {"url": "url_value"}
},
"context": {
"concept": "native.Text",
"content": {"text": "text_value"}
}
}
}content/inputsmthds-agent pipelex inputsinputs{}inputs.jsoninputs.jsoncontent"url_value""text_value""number_value""integer_value""boolean_value"*_value<...><path-to-cv.pdf><your-text-here>urlinputs.jsoninputs.jsonmthds-agent pipelex inputsinputs{}inputs.jsoninputs.jsoncontent"url_value""text_value""number_value""integer_value""boolean_value"*_value<...><path-to-cv.pdf><your-text-here>urlinputs.jsoninputs.json--dry-run --mock-inputs"The inputs for this pipeline contain placeholder values (not real data). I'll do a dry run with mock inputs to validate the pipeline structure."
/inputs--dry-run --mock-inputs"此流水线的输入包含占位符值(非真实数据)。我将使用模拟输入进行空运行,以验证流水线结构。"
/inputs| Mode | Command | Use When |
|---|---|---|
| Dry run + mock inputs | | Quick structural validation, no real data needed, or inputs not ready |
| Dry run with real inputs | | Validate input shapes without making API calls (auto-detects |
| Full run | | Production execution (auto-detects |
| Full run inline | | Quick execution with inline JSON inputs |
| Full run without graph | | Execute without generating graph visualization |
| Full run with memory | | When piping output to another method |
Graph by default: Execution graphs (/live_run.html) are now generated automatically. Usedry_run.htmlto disable.--no-graph
| 模式 | 命令 | 使用场景 |
|---|---|---|
| 空运行+模拟输入 | | 快速结构验证,无需真实数据,或输入未就绪 |
| 使用真实输入的空运行 | | 验证输入格式,无需调用API(自动检测 |
| 完整运行 | | 生产环境执行(自动检测 |
| 内联输入完整运行 | | 使用内联JSON输入快速执行 |
| 不生成图谱的完整运行 | | 执行时不生成图谱可视化 |
| 带内存的完整运行 | | 需要将输出传递给另一个方法时 |
默认生成图谱:现在会自动生成执行图谱(/live_run.html)。使用dry_run.html可禁用此功能。--no-graph
--inputs{undefined--inputs{undefinedundefinedundefinedsuccess--with-memorymain_stuffjsonmarkdownhtmlworking_memoryoutput_filegraph_filessuccess--with-memorymain_stuffjsonmarkdownhtmlworking_memoryoutput_filegraph_files{
"clauses": [...],
"overall_risk": "high"
}--with-memoryif main_stuff is non-empty (not {} or null):
→ main_stuff is the primary output (single unified result)
else:
→ working_memory.root holds the primary output (multiple named results)| Pipe Type | | What to show |
|---|---|---|
| PipeLLM, PipeCompose, PipeExtract, PipeImgGen | Always | |
| PipeSequence | Always (last step) | |
| PipeBatch | Always (list) | |
| PipeCondition | Always | |
PipeParallel with | Yes | |
PipeParallel without | No ( | |
{
"clauses": [...],
"overall_risk": "high"
}--with-memory如果main_stuff非空(不是{}或null):
→ main_stuff是主要输出(单一统一结果)
否则:
→ working_memory.root包含主要输出(多个命名结果)| 管道类型 | 是否存在main_stuff | 展示内容 |
|---|---|---|
| PipeLLM、PipeCompose、PipeExtract、PipeImgGen | 始终存在 | |
| PipeSequence | 始终存在(最后一步) | |
| PipeBatch | 始终存在(列表形式) | |
| PipeCondition | 始终存在 | |
带 | 是 | |
不带 | 否( | |
--with-memorymain_stuffmain_stuff.markdownmain_stuff.json--with-memorymain_stuffcombined_outputworking_memory.rootcontentmain_stuff--with-memorymain_stuff.markdownmain_stuff.jsonmain_stuff--with-memorycombined_outputworking_memory.rootcontentlive_run.jsondry_run.jsonlive_run.jsondry_run.jsonlive_run.htmldry_run.html--no-graphlive_run.htmldry_run.html--no-graph--with-memorygraph_filesworking_memoryworking_memory--log-level debugmthds-agent --log-level debug pipelex run pipe <bundle-dir>/ --inputs data.json--log-level debugmthds-agent --log-level debug pipelex run pipe <bundle-dir>/ --inputs data.json--no-graphmthds-agent pipelex run pipe <bundle-dir>/live_run.htmldry_run.html--with-memorygraph_files--no-graphmthds-agent pipelex run pipe <bundle-dir>/live_run.htmldry_run.html--with-memorygraph_files--inputsmthds-agent pipelex run method extract-terms --inputs data.json --with-memory \
| mthds-agent pipelex run method assess-risk --with-memory \
| mthds-agent pipelex run method generate-reportextract-terms --inputs data.json --with-memory \
| assess-risk --with-memory \
| generate-report--with-memory--with-memory--inputs--inputsmthds-agent pipelex run method extract-terms --inputs data.json --with-memory \
| mthds-agent pipelex run method assess-risk --with-memory \
| mthds-agent pipelex run method generate-reportextract-terms --inputs data.json --with-memory \
| assess-risk --with-memory \
| generate-report--with-memory--with-memory--inputs--inputs