File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments