Wardrik. Interrupt
(wardrik_protocol v0.1.0-rc.6)
Copy Markdown
A call an agent waits on a person for.
{:waiting, [interrupt]} = Wardrik.Agent.reply(scope, "agt_1", "Refund order 1001.")
Wardrik.Agent.approve(scope, interrupt: interrupt)reason is :tool_approval, :model_approval, :ceiling_approval, :authorization or
:in_doubt. name and arguments are the call the person decides on. tool_call_id is the
call to answer. agent and conversation say where it waits. Given as interrupt:, it names
them for you.
Summary
Functions
Builds one from the protocol's JSON.
Builds one from an interrupts.list item, with its agent and conversation.
Returns it as the protocol's JSON, without fields that are nil.
Types
Functions
Builds one from the protocol's JSON.
Builds one from an interrupts.list item, with its agent and conversation.
Returns it as the protocol's JSON, without fields that are nil.