Skip to main content

FileCheckHook

Defined in the verification module.
AI Agent Declarative file-assertion verification hook (no shell involved). Checks portable filesystem facts:
  • exists : the file exists (default True).
  • non_empty : the file has non-zero size.
  • contains : the file text contains a substring.
  • json_field/equals : the JSON value at a dotted path equals a value.

Constructor

str
required
No description available.
str
required
No description available.
bool
default:"True"
No description available.
bool
default:"False"
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
Any
No description available.
bool
default:"True"
No description available.

Usage

Source

View on GitHub

praisonaiagents/hooks/verification.py at line 275

Hooks Concept

Hook Events

Callbacks