API Reference wardrik_policy v#0.1.0-rc.1

Copy Markdown

Modules

Decides each tool call an agent makes: run it, ask a person first, or refuse it.

The question a person answers before a call can run. WardrikPolicy.Middleware parks on it.

Caps what an agent spends on model calls, in dollars, tokens or both.

What a policy decided about a call, and why. Returned by WardrikPolicy.explain/3.

Asks a model yes-or-no questions about each tool call, and decides by the probability of yes.

A WardrikCore.Middleware that holds an agent to one or more policies.