Skip to content

Commit ddfdc2e

Browse files
Minor formatting change
1 parent 6f260c6 commit ddfdc2e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/policy/ai/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,16 @@ Analyze previous turns in the conversation to enforce policies over time.
205205

206206
* **Filtering History by Role and Time:**
207207

208-
// Check for threats in user messages from the last 5 minutes.
209-
agent.history
210-
.role("user")
211-
.after(now \- duration('5m'))
212-
.threatFindings().hasAll(\["injection", "jailbreak"\])
208+
// Check for threats in user messages from the last 5 minutes.
209+
agent.history
210+
.role("user")
211+
.after(now \- duration('5m'))
212+
.threatFindings().hasAll(\["injection", "jailbreak"\])
213213

214214
* **Inspecting Tool History:**
215215

216-
// Find all JSON-based tool results in the agent's history.
217-
agent.history.role("agent").toolCalls("get\_weather").resultType("json")
216+
// Find all JSON-based tool results in the agent's history.
217+
agent.history.role("agent").toolCalls("get\_weather").resultType("json")
218218

219219
### **4\. Advanced Tool Governance**
220220

0 commit comments

Comments
 (0)