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
Add documentation for custom security policy templates that allow
users to define organization-specific risk assessment guidelines.
Relates to OpenHands/software-agent-sdk#427
For more details on the base class implementation, see the [source code](https://github.com/OpenHands/software-agent-sdk/blob/main/openhands-sdk/openhands/sdk/security/analyzer.py).
444
444
445
+
---
446
+
447
+
## Configurable Security Policy
448
+
449
+
Agents use security policies to guide their risk assessment of actions. The SDK provides a default security policy template, but you can customize it to match your specific security requirements and guidelines.
450
+
451
+
<Note>
452
+
Full configurable security policy example: [examples/01_standalone_sdk/28_configurable_security_policy.py](https://github.com/OpenHands/software-agent-sdk/blob/main/examples/01_standalone_sdk/28_configurable_security_policy.py)
453
+
</Note>
454
+
455
+
### Security Policy Example
456
+
457
+
Define custom security risk guidelines for your agent:
The security policy is provided as a Jinja2 template that gets rendered into the agent's system prompt, guiding how it evaluates the security risk of its actions.
0 commit comments