check_content()
Scans a string of text against a specified or client-default policy. This is the primary method used by the platform’s tracing and guardrail system and is recommended for flexible, ad-hoc scans.
Signature:
Returns: An
ApiResult object detailing the scan results.
check_prompt()
A specialized method that scans a user-generated prompt against the active policy. The active policy is determined by the policy override parameter if provided; otherwise, it falls back to the client’s default policy.
Signature:
Returns: An
ApiResult object detailing the scan results.
check_response()
A specialized method that scans an LLM-generated response against the active policy. The active policy is determined by the policy override parameter if provided; otherwise, it falls back to the client’s default policy.
Signature:
Returns: An
ApiResult object detailing the scan results.

