kodeagent.code_reviewer#
Review code for security vulnerabilities.
Review code for security vulnerabilities. |
Review code for security vulnerabilities.
- 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]#
Bases:
objectReview 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.
- async review(code: str) CodeReview[source]#
Review the code for security vulnerabilities.
- Parameters:
code – The code to review.
- Returns:
A CodeReview object containing the review results.