services/guardrails/cfg

Guardrails configuration — tool loop detection thresholds.

Values

pub fn load(toml: dict.Dict(String, tom.Toml)) -> Nil
pub fn no_progress_block() -> Int

Block after N tool rounds with no progress.

pub fn no_progress_warn() -> Int

Warn after N tool rounds with no progress (empty/error results).

pub fn same_args_block() -> Int

Block after N repeated calls with identical arguments.

pub fn same_tool_block() -> Int

Block after N consecutive calls to the same tool.

pub fn same_tool_warn() -> Int

Warn after N consecutive calls to the same tool.

pub fn tool_loop_enabled() -> Bool

Whether tool loop guardrails are enabled.

pub fn total_halt() -> Int

Halt the loop after N total consecutive failures.

Search Document