Get account inference policy

accountInferencePolicy(input: AccountInferencePolicyInput!): AccountInferencePolicy!

Requires account.settings.manage.

Arguments

ArgumentTypeRequired
inputAccountInferencePolicyInput!Yes

Input fields

input

AccountInferencePolicyInput

FieldTypeRequired
accountIdID!Yes

Response

Returns AccountInferencePolicy!. Open the type for its fields and nested types.

FieldTypeDescription
accountIdID!
modelsModelRule!Models the account allows and denies. Every project of the account can only narrow them.
defaultModelStringDefault model of projects that set none. Null uses the built-in default.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query AccountInferencePolicy($input: AccountInferencePolicyInput!) {
  accountInferencePolicy(input: $input) {
    accountId
    defaultModel
  }
}
json
{
  "input": {
    "accountId": "00000000-0000-4000-8000-000000000001"
  }
}