Table of Contents

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:

  1. ~/.jdai/policies/ (Global/User scope)
  2. {projectPath}/.jdai/policies/ (Project scope, when a project path is provided)
public static IReadOnlyList<PolicyDocument> Load(string? projectPath = null)

Parameters

projectPath string

Optional 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.