We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c352ffd commit 9ea0a12Copy full SHA for 9ea0a12
python/ql/src/Security/CWE-1427/examples/example.py
@@ -1,11 +1,12 @@
1
from flask import Flask, request
2
-from agents import Agent, Runner
+from agents import Agent
3
from guardrails import GuardrailAgent
4
5
@app.route("/parameter-route")
6
def get_input():
7
input = request.args.get("input")
8
9
+ goodAgent = GuardrailAgent( # GOOD: Agent created with guardrails automatically configured.
10
config=Path("guardrails_config.json"),
11
name="Assistant",
12
instructions="This prompt is customized for " + input)
0 commit comments