Skip to content

set_ai_policy

Replace the AI controls a workspace, project, group or member sets itself.

Project, group and member controls are an Enterprise feature. Read the scope with
get_ai_policy first and send back the whole policy with your change. Requires workspace
settings admin (content policy author for a project).

Parameters

ParameterTypeDefaultDescription
scoperequiredAiPolicyScopeToolInput—
workspace_idrequiredstring (uuid)—The workspace the policy belongs to.
kindrequiredenum—What the policy is attached to: the workspace itself, one of its projects, a group or a member.
One of: workspace, project, group, member
project_idstring (uuid)—The project, for kind=project.
group_idstring (uuid)—The group, for kind=group. Use list_groups to find it.
member_emailstring (email)—The member's email, for kind=member.
principal_idstring (uuid)—The member's principal id, for kind=member: a service account or API key.
policyrequiredAiPolicy—Everything the scope sets itself; it replaces what the scope set before. Leave a control out to inherit it. Each value is {value, locked}; only workspace and project policies lock.
agent_enabledSetting_bool_—
valuerequiredboolean—
lockedbooleanfalse
agentsobject[object Object]
agent_confirm_above_cuSetting_Annotated_float__Ge__—
valuerequirednumber≥0—
lockedbooleanfalse
modalitiesobject[object Object]
new_models_enabledSetting_bool_—
valuerequiredboolean—
lockedbooleanfalse
modelsobject[object Object]
model_defaultsobject[object Object]
guardrailsobject[object Object]
output_scoringobject[object Object]
nsfw_toleranceSetting_Annotated_int__FieldInfo_annotation_NoneType__required_True__metadata__Ge_ge_1___Le_le_6_____—
valuerequiredinteger1–6—
lockedbooleanfalse
reference_set_sharing_enabledSetting_bool_—
valuerequiredboolean—
lockedbooleanfalse
workflow_sharing_enabledSetting_bool_—
valuerequiredboolean—
lockedbooleanfalse
invisible_watermark_enabledSetting_bool_—
valuerequiredboolean—
lockedbooleanfalse
usage_capsobject[object Object]