This commit is contained in:
@@ -10,7 +10,6 @@ initial_movement: process
|
||||
|
||||
movements:
|
||||
- name: process
|
||||
edit: true
|
||||
persona: data-engineer
|
||||
instruction: |
|
||||
## 最初のステップ: 入力データの把握
|
||||
@@ -50,7 +49,7 @@ movements:
|
||||
## スキャン PDF / 画像データの場合
|
||||
|
||||
レシートや帳票など画像由来のデータを扱う場合:
|
||||
- テキスト PDF → ReadPdf で直接読む
|
||||
- テキスト PDF → Read で直接読む
|
||||
- スキャン PDF / 画像 → PdfToImages でページ画像化し、ReadImage で内容を読み取る
|
||||
|
||||
## 実行
|
||||
@@ -62,28 +61,24 @@ movements:
|
||||
- **次の report へ**: `transition({next_step: "report"})`
|
||||
- **処理対象が特定できずユーザー確認が必要**: `complete({status: "needs_user_input", missing_info: "...", why_no_default: "..."})`
|
||||
- **データが壊れている / 読み取れない / エラー発生で打ち切り**: `complete({status: "aborted", abort_reason: "..."})`
|
||||
allowed_tools: [Read, Write, Bash, Glob, Grep, SQLite, WebSearch, WebFetch, DownloadFile, ReadExcel, ReadDocx, ReadPdf, ReadPPTX, ReadMsg, SplitExcelSheets, PdfToImages, ReadImage, AnnotateImage, TranscribeAudio, ReadToolDoc, 'mcp__*']
|
||||
default_next: report
|
||||
rules:
|
||||
- condition: output/ に結果を書き出した
|
||||
next: report
|
||||
|
||||
- name: report
|
||||
edit: true
|
||||
persona: reporter
|
||||
instruction: |
|
||||
処理結果を元にレポートを作成し output/ にファイルとして書き出す。
|
||||
表を含め、分かりやすくまとめる。
|
||||
必ず Write ツールで output/ にレポートファイルを作成すること。
|
||||
|
||||
allowed_tools: [Read, Write, Bash, Glob, Grep, ReadImage, AnnotateImage, ReadPdf, ReadExcel, 'mcp__*']
|
||||
default_next: verify
|
||||
rules:
|
||||
- condition: output/ にレポートを書き出した
|
||||
next: verify
|
||||
|
||||
- name: verify
|
||||
edit: false
|
||||
persona: reviewer
|
||||
instruction: |
|
||||
output/ の成果物を確認する。
|
||||
@@ -121,7 +116,6 @@ movements:
|
||||
- 合格: `complete({status: "success", result: "ユーザー向け最終回答"})`
|
||||
- 修正必要: `transition({next_step: "process", summary: "差し戻し指摘"})` (上記形式で)
|
||||
- 技術的失敗: `complete({status: "aborted", abort_reason: "..."})`
|
||||
allowed_tools: [Read, Glob, Grep, ReadPdf, ReadImage, AnnotateImage, ReadExcel]
|
||||
default_next: COMPLETE
|
||||
rules:
|
||||
- condition: output/ にファイルがない、または内容に不足・誤りがある
|
||||
|
||||
Reference in New Issue
Block a user