detect_pattern_contamination
Detect when AI-generated text completes known patterns not present in source documents, preventing contamination across domains like religious texts, legal documents, or fairy tales.
Instructions
Detect when output may be completing a known pattern not in source.
Domain-agnostic: works for any genre (religious, fairy tales, legal, etc.). Agent provides patterns dynamically based on document genre.
Args: claimed_output: What the agent claims is in the text. segment_id: ID of the segment to check against. patterns: Optional: Pattern definitions with trigger/expectedCompletion.
Returns: Pattern contamination detection result.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"claimed_output": "<claimed_output>",
"segment_id": "<segment_id>"
},
"name": "detect_pattern_contamination"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| claimed_output | Yes | ||
| segment_id | Yes | ||
| patterns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||