mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Co-authored-by: Calvin Smith <calvin@all-hands.dev> Co-authored-by: Graham Neubig <neubig@gmail.com> Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
14 lines
386 B
Python
14 lines
386 B
Python
from pydantic import BaseModel, Field
|
|
|
|
|
|
class SecurityConfig(BaseModel):
|
|
"""Configuration for security related functionalities.
|
|
|
|
Attributes:
|
|
confirmation_mode: Whether to enable confirmation mode.
|
|
security_analyzer: The security analyzer to use.
|
|
"""
|
|
|
|
confirmation_mode: bool = Field(default=False)
|
|
security_analyzer: str | None = Field(default=None)
|