Skip to content

Building

Approvals and review

Put a person in front of the tools that matter. Settle calls keel can't be sure about.

List a tool in an agent's approval_required and every call to it pauses the run as waiting_for_approval. The worker is released while it waits; a run can sit there for days and costs nothing.

keel.runs.approve(run_id, call_id)                 # carry on
keel.runs.approve(run_id, call_id, approve=False)  # the model is told it was denied

A run lands in needs_review when an external tool call is in doubt and there's no reconcile hook. Tell keel what really happened:

keel.runs.resume(run_id, call_id, "landed", output={"order_id": "o_81"})  # it went through
keel.runs.resume(run_id, call_id, "retry")  # it didn't; call again with the same key
keel.runs.resume(run_id, call_id, "fail")   # give the model an error instead

Owners and admins get an email when a run starts waiting. Add a SLACK_WEBHOOK_URL secret to post to a channel as well.

NextHanding work to other agents