AI Guard | Python SDK
AI Guard service client.
AIGuard(token, config, logger_name, config_id)Initializes a new AI Guard client.
from pangea import PangeaConfig
from pangea.services import AIGuard
config = PangeaConfig(domain="aws.us.pangea.cloud")
ai_guard = AIGuard(token="pangea_token", config=config)
download-file
AIGuard.download_file()response = ai_guard.guard_text("text")
Poll result
AIGuard.poll_result(exception)Returns request's result that has been accepted by the server
response = service.poll_result(exception)