garak.interactive

class garak.interactive.GarakCommands

Bases: CommandSet

cmd2_default_help_category = 'Garak Commands'
do_list(args)

List available probes, decorators, or generators

do_probe(args)

Run the probe.

class garak.interactive.GarakTerminal

Bases: Cmd

Terminal class for Interactive Garak CLI

default(command: str) None

Execute when a command isn’t recognized

do_quit(args)

Exit this application

postcmd(stop, line)

Set the prompt to reflect interaction changes.

settings_ns_provider() Namespace

Populate an argparse Namespace with current settings

garak.interactive.banner()

Display a random banner

garak.interactive.interactive_mode()

Launch garak in interactive mode. Allows users to explore and use garak without CLI flags.

garak.interactive.print_plugins(prefix, color)