Syntropy.TaskScheduler.Synthesis (syntropy v0.2.0)

Copy Markdown

Synthesis of agent thoughts into a single run answer.

Single-thought runs pass the thought through unchanged. Multi-thought runs synthesize through a temporary virtual join agent (a ∨ b) when synthesis is enabled and the provider call succeeds, falling back to a deterministic concatenation otherwise.

Summary

Functions

Produces {synthesis, synthesis_parent_refs, used_temporary_join} for the successful {agent, thought} pairs of a run.

Functions

synthesize_result(prompt, arg2, thoughts, arg4, source_review, task_id)

@spec synthesize_result(
  String.t(),
  Syntropy.TaskScheduler.resolved_mode(),
  [{map(), String.t()}],
  boolean(),
  map() | nil,
  String.t()
) :: {String.t(), [Syntropy.TaskScheduler.agent_ref()], boolean()}

Produces {synthesis, synthesis_parent_refs, used_temporary_join} for the successful {agent, thought} pairs of a run.