actor-nested-inline-fanout-family.ts 646 B

1234567891011
  1. // Nested INLINE fan-outs: agent created inside the inner map (which is inside the
  2. // outer map). Both promote. The actor's `within` must be the INNERMOST fan-out
  3. // (fan-out#2), and the actor-graph `family=` must agree with the site `within=`.
  4. // Distinct from nested-fanout-reach (which routes through helpers — `within` reaches the
  5. // ask/actor there through the call oracle's closure): here the agent is lexically nested,
  6. // exercising innermost-within attribution and its faithful copy into `family`.
  7. const seeds = await files.glob("*.md");
  8. const out = seeds.map((s) =>
  9. [s].map((y) => agent("inner").ask<string>(`${y}`)),
  10. );
  11. return out;