You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The agent will always return validated JSON matching this schema, ready for downstream processing.
189
+
171
190
---
172
191
173
192
## Best Practices
@@ -177,7 +196,7 @@ An agent that searches through logs and performs lookups to investigate a specif
177
196
</Note>
178
197
179
198
### Prompt Engineering
180
-
1.**Format Outputs**: If you need JSON for a downstream node, ask for it explicitly in the prompt: "Return only valid JSON with fields 'risk' and 'reason'."
199
+
1.**Use Structured Output**: When you need consistent JSON for downstream nodes, enable **Structured Output** instead of relying on prompt instructions. This guarantees schema compliance and eliminates parsing errors.
181
200
2.**Use System Prompts**: Set high-level rules (e.g., "You are a senior security researcher") in the System Prompt parameter instead of the User Input.
182
201
3.**Variable Injection**: Use `{{variableName}}` syntax to inject data from upstream nodes into your prompts.
0 commit comments