supervised_keyed

Function supervised_keyed 

Source
pub fn supervised_keyed(
    worker: AgentBuilder,
    supervisor: AgentBuilder,
    approval_key: &str,
    max_revisions: u32,
) -> Composable
Expand description

Supervised with a custom approval key.

Like supervised but allows specifying which state key signals approval.

§Arguments

  • worker — The agent that performs the task.
  • supervisor — The agent that oversees work.
  • approval_key — State key the supervisor sets to true when satisfied.
  • max_revisions — Maximum iterations.