factor_agent.researcher.Researcher#
- class Researcher(roles, prompts, groups=1, events=None)[source]#
Bases:
objectThe LLM roles of a campaign.
- Parameters:
- rolesdict
Maps each role (
planner,proposer,reviewer,distiller) to its(backend, model).- promptsPrompts
The templates and what fills them; its mechanism types are the plan’s, in order.
- groupsint, default 1
The proposal groups a round’s directions are split into (at most one per direction).
- eventsEvents, optional
The run’s events file, which every call, every check of a version and every verdict is written to (
factor_agent.events).
Methods#
The memory the distiller folds from the previous |
|
Return round |
|
Ask for one candidate per direction and return one |
|
Send each new direction's candidate that measures what an earlier trial measured back to be rewritten once. |
|
Judge the consistency of each gated proposal's candidate, one call per proposal group, all sent at once. |
|
Send each candidate the reviewer found inconsistent back to be rewritten once; return the rewrites, in order. |