Lakera Guard
lakera_guardLakera Guard screens AI application interactions for security and safety risks and provides Enterprise APIs for managing guardrail policies and projects.
Acciones disponibles (10)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create PolicyLAKERA_GUARD_CREATE_POLICYAcciónCreate an Enterprise Lakera policy with built-in detectors and/or custom guardrails. Lakera may omit the new policy ID; if omitted, later retrieval, replacement, and deletion require external policy lookup.
LAKERA_GUARD_CREATE_POLICYAcciónCreate an Enterprise Lakera policy with built-in detectors and/or custom guardrails. Lakera may omit the new policy ID; if omitted, later retrieval, replacement, and deletion require external policy lookup.
Parámetros de entrada
namestringObligatorioPolicy name, unique within the organization.
detectorsobject[]Built-in detector configurations. Provide at least one detector or custom_guardrail_id.
default_thresholdstringObligatorioenumDefault confidence threshold at or above which configured detectors trigger.
l1_confidentl2_very_likelyl3_likelyl4_less_likelycustom_guardrail_idsstring[]Existing custom guardrail IDs to include. Provide at least one ID or detector.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create ProjectLAKERA_GUARD_CREATE_PROJECTAcciónCreate an Enterprise Lakera project, optionally assigning a policy, metadata, and detect-or-flag action. Omit policy_id to use the default policy. Lakera does not return the generated project ID, so later retrieval, updates, and deletion require external project lookup.
LAKERA_GUARD_CREATE_PROJECTAcciónCreate an Enterprise Lakera project, optionally assigning a policy, metadata, and detect-or-flag action. Omit policy_id to use the default policy. Lakera does not return the generated project ID, so later retrieval, updates, and deletion require external project lookup.
Parámetros de entrada
namestringObligatorioName for the new project.
actionstringenumProject response action: detect reports detections, while flag applies flagging behavior.
detectflagpolicy_idstringExisting policy ID to assign; omit to use the default policy.
project_metadataobjectString-valued project metadata stored by Lakera.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete PolicyLAKERA_GUARD_DELETE_POLICYAcciónPermanently delete an Enterprise Lakera policy by ID. The provider rejects deletion while any project is assigned to the policy.
LAKERA_GUARD_DELETE_POLICYAcciónPermanently delete an Enterprise Lakera policy by ID. The provider rejects deletion while any project is assigned to the policy.
Parámetros de entrada
policy_idstringObligatorioID of the unassigned policy to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete ProjectLAKERA_GUARD_DELETE_PROJECTAcciónPermanently and irreversibly delete an Enterprise Lakera project by ID. Historical requests lose their association with the project's metadata and assigned policy.
LAKERA_GUARD_DELETE_PROJECTAcciónPermanently and irreversibly delete an Enterprise Lakera project by ID. Historical requests lose their association with the project's metadata and assigned policy.
Parámetros de entrada
project_idstringObligatorioID of the project to permanently and irreversibly delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Evaluate DetectorsLAKERA_GUARD_EVALUATE_DETECTORSAcciónEvaluate content and return one confidence result per configured detector without producing an aggregate flagging decision or Guard screening log. Use for analysis and tuning, not runtime allow/block decisions.
LAKERA_GUARD_EVALUATE_DETECTORSAcciónEvaluate content and return one confidence result per configured detector without producing an aggregate flagging decision or Guard screening log. Use for analysis and tuning, not runtime allow/block decisions.
Parámetros de entrada
dev_infobooleanWhether to request Guard build and model version information.
messagesobject[]ObligatorioOpenAI-style conversation in chronological order; each message requires a role, while assistant tool-call messages may omit content.
metadataobjectOptional arbitrary request metadata passed to Lakera Guard.
project_idstringLakera project whose policy should be evaluated; omit to use the default policy.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get PolicyLAKERA_GUARD_GET_POLICYAcciónRetrieve an Enterprise Lakera policy by ID, including its detector configuration, custom guardrails, version, and assigned projects.
LAKERA_GUARD_GET_POLICYAcciónRetrieve an Enterprise Lakera policy by ID, including its detector configuration, custom guardrails, version, and assigned projects.
Parámetros de entrada
policy_idstringObligatorioPolicy ID returned by Create Policy.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ProjectLAKERA_GUARD_GET_PROJECTAcciónRetrieve an Enterprise Lakera project by ID, including its assigned policy, metadata, and detect-or-flag action.
LAKERA_GUARD_GET_PROJECTAcciónRetrieve an Enterprise Lakera project by ID, including its assigned policy, metadata, and detect-or-flag action.
Parámetros de entrada
project_idstringObligatorioLakera project ID to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Screen ContentLAKERA_GUARD_SCREEN_CONTENTAcciónScreen the latest LLM or agent interaction with Lakera Guard and return the policy decision. Use this for runtime allow/block decisions; earlier messages provide context, but only the latest interaction is screened.
LAKERA_GUARD_SCREEN_CONTENTAcciónScreen the latest LLM or agent interaction with Lakera Guard and return the policy decision. Use this for runtime allow/block decisions; earlier messages provide context, but only the latest interaction is screened.
Parámetros de entrada
payloadbooleanWhether to include matched text locations for supported detectors such as PII, profanity, and custom regex.
dev_infobooleanWhether to include Guard build and model version information.
messagesobject[]ObligatorioOpenAI-style conversation in chronological order. Earlier messages provide context, but Guard screens only the latest interaction.
metadataobjectOptional request tags, commonly user_id, session_id, ip_address, and internal_request_id.
breakdownbooleanWhether to include detector-by-detector decisions and confidence levels.
project_idstringLakera project whose policy should screen the interaction; omit to use the default policy.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update PolicyLAKERA_GUARD_UPDATE_POLICYAcciónReplace an Enterprise Lakera policy's complete configuration and create a new policy version. Omitted detectors or custom guardrails are removed, so retrieve the policy first when preserving existing settings.
LAKERA_GUARD_UPDATE_POLICYAcciónReplace an Enterprise Lakera policy's complete configuration and create a new policy version. Omitted detectors or custom guardrails are removed, so retrieve the policy first when preserving existing settings.
Parámetros de entrada
namestringObligatorioComplete replacement policy name.
detectorsobject[]Complete replacement built-in detector list. Omission removes existing detectors; provide at least one detector or custom guardrail ID.
policy_idstringObligatorioID of the policy to replace.
default_thresholdstringObligatorioenumComplete replacement default detector threshold.
l1_confidentl2_very_likelyl3_likelyl4_less_likelycustom_guardrail_idsstring[]Complete replacement custom guardrail ID list. Omission removes existing custom guardrails.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update ProjectLAKERA_GUARD_UPDATE_PROJECTAcciónUpdate an Enterprise Lakera project by ID. Name is required by the official request schema; retrieve the project first when preserving its current name or other optional settings.
LAKERA_GUARD_UPDATE_PROJECTAcciónUpdate an Enterprise Lakera project by ID. Name is required by the official request schema; retrieve the project first when preserving its current name or other optional settings.
Parámetros de entrada
namestringObligatorioProject name; required by the official Platform request schema.
actionstringenumProject action. Omission keeps the existing action.
detectflagpolicy_idstringPolicy ID to assign to the project.
project_idstringObligatorioID of the project to update.
project_metadataobjectString-valued project metadata to send in the update.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not