fix: harden workflow demo and evaluation tooling

This commit is contained in:
lda
2026-07-01 08:20:38 +07:00 Verified
parent 7bdfa3132d
commit 7e5f1c88da
29 changed files with 365 additions and 71 deletions
+4 -1
View File
@@ -42,8 +42,11 @@ uv run wf --config examples/lda_report_workflow/wf.config.json --local run inspe
Resume with selected issues:
Copy one or more actual issue ids from the interrupt payload and replace the
placeholder below.
```powershell
uv run wf --config examples/lda_report_workflow/wf.config.json --local run resume <run_id> --payload '{"approved":true,"selected_issue_ids":["risk-1"],"comment":"Create selected issues."}'
uv run wf --config examples/lda_report_workflow/wf.config.json --local run resume <run_id> --payload '{"approved":true,"selected_issue_ids":["<issue_id_from_interrupt>"],"comment":"Create selected issues."}'
```
## Cleanup
@@ -71,6 +71,11 @@ def build_workflow() -> Workflow:
input=[{"path": "input.selected_documents", "target": "names"}],
output=[{"source": "documents", "target": "state.documents"}],
)
reset_board = builder.use_ref(
"local.issue_board.reset_issue_board",
id="reset_board",
input=[{"path": "input.board_path", "target": "board_path"}],
)
analyze = builder.use_ref(
"local.lda_report.analyze_documents",
id="analyze",
@@ -164,7 +169,8 @@ def build_workflow() -> Workflow:
end_completed = builder.end("completed", id="end_completed")
end_cancelled = builder.end("cancelled", id="end_cancelled")
builder.set_entry_point(read_docs)
builder.set_entry_point(reset_board)
builder.connect(reset_board, "ok", read_docs)
builder.connect(read_docs, "ok", analyze)
builder.connect(analyze, "ok", build_report)
builder.connect(build_report, "ok", draft_issues)
@@ -1,5 +1,10 @@
{
"edges": [
{
"from": "reset_board",
"outcome": "ok",
"to": "read_docs"
},
{
"from": "read_docs",
"outcome": "ok",
@@ -86,6 +91,21 @@
"timeout_seconds": null,
"type": "node"
},
{
"desc": null,
"id": "reset_board",
"input": [
{
"path": "input.board_path",
"target": "board_path"
}
],
"node": "local.issue_board.reset_issue_board",
"output": [],
"retry": null,
"timeout_seconds": null,
"type": "node"
},
{
"desc": null,
"id": "analyze",
@@ -368,7 +388,7 @@
"required": [],
"type": "object"
},
"start": "read_docs",
"start": "reset_board",
"state_schema": {
"properties": {
"analysis": {