Class PolicyLoader
- Namespace
- JD.AI.Core.Governance
- Assembly
- JD.AI.Core.dll
Loads PolicyDocument instances from the filesystem hierarchy.
public static class PolicyLoader
- Inheritance
-
PolicyLoader
- Inherited Members
Methods
Load(string?)
Loads all policy documents from the standard locations:
~/.jdai/policies/(Global/User scope){projectPath}/.jdai/policies/(Project scope, when a project path is provided)
public static IReadOnlyList<PolicyDocument> Load(string? projectPath = null)
Parameters
projectPathstringOptional path to the current project directory. When provided, the
{projectPath}/.jdai/policies/directory is also scanned.
Returns
- IReadOnlyList<PolicyDocument>
All successfully parsed PolicyDocument instances, ordered by scope.