You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -798,14 +798,19 @@ val pipeline = (quick / deep) then synthesizer
798
798
799
799
### `*` — Forum (Multi-Agent Discussion)
800
800
801
-
Think *jury deliberation* — the case lands on the table, agents discuss across rounds, the last agent (foreperson) delivers the verdict. Agents see each other's reasoning; parallel agents do not.
801
+
Think *jury deliberation* — the case lands on the table, agents discuss across rounds, the last agent (foreperson) delivers the verdict. Agents see each other's reasoning; parallel agents do not. All participants run concurrently; the captain delivers the final result.
802
802
803
803
```kotlin
804
804
val forum = initiator * analyst * critic * captain
805
805
// Forum<Specs, Decision>
806
806
807
807
val pipeline = inputConverter then forum then formatter
808
808
// Pipeline<Input, FormattedDecision>
809
+
810
+
// Track the debate as it unfolds
811
+
forum.onMentionEmitted { agentName, output ->
812
+
println("[$agentName]: $output")
813
+
}
809
814
```
810
815
811
816
### `.loop {}` — Iterative Execution
@@ -922,7 +927,7 @@ cd Agents.KT
922
927
-[x]`Skill.knowledgeTools()` / `KnowledgeTool(name, description, call)` — tools model with lazy per-entry loading
923
928
-[x]`then` — sequential pipeline with composed execution (no runtime casts)
924
929
-[x]`/` — parallel fan-out with coroutine concurrency
925
-
-[x]`*` — forum (multi-agent discussion)
930
+
-[x]`*` — forum (multi-agent discussion) with concurrent participants, captain, and `onMentionEmitted` debate tracking
926
931
-[x] Single-placement enforcement across all structure types
0 commit comments