Concept: Applications · Policy Engine | API: Configuration
SDK 2.6.0 में added। हर API key एक application से bound है जिसका governance policy centrally dashboard में configured है। ये तीन methods आपके code को runtime पर वह configuration को read करने देते हैं — startup checks, dashboards, और monitoring के लिए useful। ये read-only हैं और कोई credits consume नहीं करते।
Application configuration
get_config() application को return करता है जिससे key bound है, इसका governance policy, और क्या enforcement actively responses को shape कर रहा है या केवल इन्हें observe कर रहा है।
Plan capabilities
get_capabilities() यह report करता है कि key का plan क्या access कर सकता है — evaluation modes, compliance frameworks, agent और DPDP features, और request limits। इसे use करें behavior को adapt करने के लिए बिना plan assumptions को hard-code किए।
Dimension metadata
get_dimensions() आठ RAIL dimensions को return करता है weight और threshold के साथ जो आपके application के लिए configured है, plus score bands जिसमें एक result fall होता है।
Async
Async client एक ही तीन methods को expose करता है:Related
Configuration API
इन methods के पीछे के REST endpoints।
Policy Engine
कैसे enforcement, thresholds, और locking work करते हैं।