Effect policy definition and filtering for tool-emitted effects.
Summary
Functions
Returns true when an effect is permitted by the policy.
Returns the default policy.
Filters effects according to the policy.
Narrows an agent policy by a strategy policy.
Builds a policy from map/keyword input.
Types
@type constraints() :: map()
@type matcher() :: module()
@type matcher_set() :: term()
@type mode() :: :deny_all | :allow_all | :allow_list
@type t() :: %Jido.AI.Effects.Policy{ allow: matcher_set(), constraints: constraints(), deny: matcher_set(), mode: mode() }
Functions
Returns true when an effect is permitted by the policy.
@spec default() :: t()
Returns the default policy.
Filters effects according to the policy.
Returns {allowed, dropped}.
Narrows an agent policy by a strategy policy.
Builds a policy from map/keyword input.