kodeagent.code_reviewer.CodeSecurityReviewer#
- class kodeagent.code_reviewer.CodeSecurityReviewer(model_name: str, litellm_params: dict | None = None, usage_tracker: UsageTracker | None = None, tool_names: set[str] | None = None)[source]#
Review code for security vulnerabilities.
Initialize the CodeSecurityReviewer.
- Parameters:
model_name – The name of the LLM model to use.
litellm_params – Optional parameters for the LLM.
usage_tracker – Optional UsageTracker instance.
tool_names – Optional set of whitelisted tool names provided by the user.
- __init__(model_name: str, litellm_params: dict | None = None, usage_tracker: UsageTracker | None = None, tool_names: set[str] | None = None)[source]#
Initialize the CodeSecurityReviewer.
- Parameters:
model_name – The name of the LLM model to use.
litellm_params – Optional parameters for the LLM.
usage_tracker – Optional UsageTracker instance.
tool_names – Optional set of whitelisted tool names provided by the user.
Methods