Skip to content

How to set keywords and/or redactions with guard? #37

@cesekova

Description

@cesekova

I am not able to specify keyword (or redactions) and set up a guard for that.

res=c.apex.scan(message, keywords=['filling'],  redactions=['filling'], guard_config=[Guard.create('keyword_detector')])
...
ValueError: Cannot specify keywords or redactions in scan args when using guard config. Please use only one.

Can we add some examples how keyword and redaction arguments should be used ? Are they supposed to work only with default config (which does not include keyword detector)? Or should they be passed directly to guard itself ?

Metadata

Metadata

Labels

P2documentationImprovements or additions to documentationquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions