nemoguardrails.guardrails.api_engine
nemoguardrails.guardrails.api_engine
Generic API engine for IORails, calling arbitrary REST endpoints via aiohttp with retry.
Module Contents
Classes
Data
API
Bases: BaseEngine
Wraps a single API endpoint and makes HTTP calls with retry support.
url
Full URL for the API endpoint.
async
POST the JSON body to the configured endpoint and return the parsed response.
classmethod
Create an APIEngine from a JailbreakDetectionConfig.
Exception
Bases: Exception
Raised when an API engine call fails.