Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0ab85af
draft
yehorkardash Oct 14, 2025
57c6480
implement different guardrails
yehorkardash Oct 15, 2025
ba151c3
Merge remote-tracking branch 'origin/master' into node-3757-build-ope…
yehorkardash Oct 15, 2025
d348048
rename to lowercase
yehorkardash Oct 15, 2025
6377620
fix package.json
yehorkardash Oct 15, 2025
a2be6d7
fix name
yehorkardash Oct 15, 2025
58f7775
dynamic outputs
yehorkardash Oct 15, 2025
be5cf0f
send to second branch dynamically
yehorkardash Oct 16, 2025
0dedb28
improve prompts, don't pipe to second branch when disabled
yehorkardash Oct 16, 2025
8844496
Merge branch 'node-3757-build-openai-inspired-guardrails-node' of git…
yehorkardash Oct 16, 2025
5db9124
add CREDIT.MD
yehorkardash Oct 16, 2025
fe912a4
add tests
yehorkardash Oct 16, 2025
db694cb
design improvements and collection bug fix
yehorkardash Oct 17, 2025
378e6d6
Merge branch 'node-3757-build-openai-inspired-guardrails-node' into n…
yehorkardash Oct 17, 2025
3f76b44
address cubic comments
yehorkardash Oct 17, 2025
2121b3e
Merge remote-tracking branch 'origin/master' into node-3757-build-ope…
yehorkardash Oct 20, 2025
64c6e16
fix imports
yehorkardash Oct 20, 2025
4c3be19
use structured output instead of tool calling
yehorkardash Oct 22, 2025
a613e8a
Merge remote-tracking branch 'origin/master' into node-3757-build-ope…
yehorkardash Oct 22, 2025
f461ff5
address review comments
yehorkardash Oct 23, 2025
9f1e221
use chat trigger source
yehorkardash Oct 23, 2025
7f79046
update ai-workflow-builder
yehorkardash Oct 23, 2025
492bfaa
address design comments
yehorkardash Oct 23, 2025
2f5a859
Merge branch 'node-3757-build-openai-inspired-guardrails-node' into n…
yehorkardash Oct 23, 2025
eb1ecbc
update tests
yehorkardash Oct 23, 2025
d6837bb
Merge branch 'master' into node-3797-write-tests-for-guardrail-node
yehorkardash Oct 30, 2025
ea18495
remove files
yehorkardash Oct 30, 2025
9e33d01
revert frontend changes
yehorkardash Oct 30, 2025
6538737
remove prompt injection
yehorkardash Oct 30, 2025
179a915
revert spacing changes
yehorkardash Oct 30, 2025
b6e50be
update tests
yehorkardash Oct 30, 2025
032834d
update other tests
yehorkardash Oct 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,29 @@ describe('evaluateAgentPrompt', () => {
expect(result.violations).toHaveLength(0);
});

it('should not check agent nodes with promptType set to guardrails', () => {
const workflow = mock<SimpleWorkflow>({
nodes: [
{
id: '1',
name: 'AI Agent',
type: '@n8n/n8n-nodes-langchain.agent',
typeVersion: 2,
position: [0, 0],
parameters: {
promptType: 'guardrails',
text: 'This would normally trigger a violation',
},
},
],
connections: {},
});

const result = evaluateAgentPrompt(workflow);

expect(result.violations).toHaveLength(0);
});

it('should check agent nodes with promptType set to define', () => {
const workflow = mock<SimpleWorkflow>({
nodes: [
Expand Down
Loading
Loading