Manage Audit Targets
An AuditTarget identifies the model under test. It pairs a garak generator class (type) with a model identifier (model) and a generator-specific options dict (options). Targets are persisted in the NeMo Platform entity store and referenced by name from client.auditor.run(...).
What an AuditTarget Holds
See Target Schema for the full field reference.
Common Target Types
NIM via Inference Gateway
Audit a NIM (or any OpenAI-compatible chat endpoint) routed through a NeMo Platform provider:
The nmp_uri_spec block resolves to a concrete uri at run time. See Inference Gateway for details.
OpenAI-compatible Endpoint
For a vanilla OpenAI-compatible endpoint routed through a provider:
Blank Target (Smoke Test)
test.Blank returns the empty string for every request — useful for verifying that an audit configuration is well-formed without making network calls:
test.Blank ignores model, but the field is still required by the schema.
List Targets
list() returns the standard envelope (data, pagination, sort); pass page, page_size, and sort keyword arguments for pagination.
Retrieve a Target
Update a Target
update() replaces every field — pass the fields you want to keep alongside the ones you are changing.