fix(runs): a held action is described to the agent as waiting for approval, not a person's
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -99,7 +99,7 @@ const (
|
||||
// DryWouldRun is an action that changes something and judgement lets run
|
||||
// unattended. It was not executed.
|
||||
DryWouldRun = "would_run"
|
||||
// DryWouldAsk is an action judgement holds for a person.
|
||||
// DryWouldAsk is an action judgement holds for approval.
|
||||
DryWouldAsk = "would_ask"
|
||||
// DryRefused is an action judgement or a hard rule refuses.
|
||||
DryRefused = "refused"
|
||||
|
||||
@@ -871,7 +871,7 @@ func call(ctx context.Context, box Toolbox, judge Judge, rc *Context, d connecto
|
||||
}
|
||||
out, err := judge.Execute(ctx, decision, input, key)
|
||||
if errors.Is(err, judgement.ErrHeld) {
|
||||
return fmt.Sprintf("held at %s for a person's approval: %s. It is asked when your investigation ends, so don't propose it again.", decision.Level, findingsOf(decision)), nil
|
||||
return fmt.Sprintf("held at %s for approval: %s. It is asked when your investigation ends, so don't propose it again.", decision.Level, findingsOf(decision)), nil
|
||||
}
|
||||
if errors.Is(err, connectors.ErrOutcomeUnknown) {
|
||||
return "", fmt.Errorf("%w: %w", core.ErrOutcomeUnknown, err)
|
||||
|
||||
Reference in new issue
Block a user