Skip to main content

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:

NameTypeRequiredDescription
schemaVersionStringyesContract version, major 1 (1.x); minor bumps stay backward compatible.
requestJsonNodeyesRequest evaluated by the policy, as a JSON object.
decisionPolicyDecisionyesapprove or reject.