Skip to main content

load

Method
This is a method of the PermissionAllowlist class in the approval module.
Load allowlist from JSON file.

Signature

def load(filepath: str) -> 'PermissionAllowlist'

Parameters

filepath
str
required
No description available.

Returns

Returns
'PermissionAllowlist'
The result of the operation.

Uses

  • cls
  • exists
  • json.load
  • allowlist.add_tool

Used By

Source

View on GitHub

praisonaiagents/approval.py at line 195