diff --git a/assets/agents/deep-research/graph.yaml b/assets/agents/deep-research/graph.yaml index dd611ed..043fb7f 100644 --- a/assets/agents/deep-research/graph.yaml +++ b/assets/agents/deep-research/graph.yaml @@ -115,6 +115,7 @@ nodes: as: question branch: research_one_question collect_into: question_findings + output_key: finding max_concurrency: 3 next: combine_findings @@ -152,6 +153,8 @@ nodes: max_iterations: 10 max_attempts: 2 temperature: 0.1 + state_updates: + finding: "{{output}}" combine_findings: id: combine_findings diff --git a/assets/agents/finding-verifier/graph.yaml b/assets/agents/finding-verifier/graph.yaml index 472fe48..0d9ae14 100644 --- a/assets/agents/finding-verifier/graph.yaml +++ b/assets/agents/finding-verifier/graph.yaml @@ -95,6 +95,7 @@ nodes: as: finding branch: verify_one collect_into: verdicts + output_key: verdict max_concurrency: 4 next: done @@ -150,6 +151,8 @@ nodes: max_iterations: 8 max_attempts: 2 temperature: 0.1 + state_updates: + verdict: "{{output}}" done: id: done diff --git a/graph.example.yaml b/graph.example.yaml index 95b6514..baa4bb2 100644 --- a/graph.example.yaml +++ b/graph.example.yaml @@ -387,7 +387,7 @@ nodes: # (not spawn-finish order). max_concurrency: 3 # Optional per-map cap. Defaults to # settings.max_concurrency above. - output_key: output # Optional. State key the branch's output + output_key: subject_summary # Optional. State key the branch's output # appears under. Default "output". Useful # only if the branch reads its own bound # name back (rare). @@ -403,8 +403,11 @@ nodes: prompt: "Research {{subject}}: pull the key facts and one citation." tools: - web_search_coyote - # No `next:`, `state_updates:`, or `output_schema:` here. Map branches - # have a strict contract (see `subjects_map.branch` comment). + # Recommended pattern: write the completion to a named key via + # `state_updates` and point the map's `output_key` at that same key. + # `{{output}}` is bound only while these templates render. + state_updates: + subject_summary: "{{output}}" # Aggregator that runs after the map joins. Reads the collected list. aggregate_subjects: