erlang_adk_orchestrator (erlang_adk v0.1.0)

View Source

Summary

Functions

loop runs a worker agent and a reviewer agent iteratively. MaxIterations prevents infinite loops.

parallel takes a list of Agent Pids and a Prompt. It prompts all agents concurrently and gathers their responses. Returns a list of {Pid, Response}.

sequential takes a list of Agent Pids and an Initial Prompt. It passes the prompt to the first agent, takes its response, and feeds it to the next agent, returning the final agent's response.

Functions

loop(WorkerPid, ReviewerPid, LastDraft, IterationsLeft)

loop runs a worker agent and a reviewer agent iteratively. MaxIterations prevents infinite loops.

parallel(Pids, Prompt)

parallel takes a list of Agent Pids and a Prompt. It prompts all agents concurrently and gathers their responses. Returns a list of {Pid, Response}.

sequential(Rest, Prompt)

sequential takes a list of Agent Pids and an Initial Prompt. It passes the prompt to the first agent, takes its response, and feeds it to the next agent, returning the final agent's response.