io.enterpriseai.model.PolicyContract
Source: sdks/java/enterprise-ai-java/src/main/java/io/enterpriseai/model/PolicyContract.java. Back to the Java SDK reference index.
note
This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.
Model PolicyContract
Policy Contract v1 (contracts/v1/policy-contract.schema.json): request plus optional decision.
Fields:
| Name | Type | Required | Description |
|---|---|---|---|
schemaVersion | String | yes | Contract version, major 1 (1.x); minor bumps stay backward compatible. |
request | JsonNode | yes | Request evaluated by the policy, as a JSON object. |
decision | PolicyDecision | yes | approve or reject. |