review • AI Agent SDK

review: Review code for issues, bugs, and improvements.

review

Method

</div>

This is a method of the CodeAgent class in the code_agent module.

Review code for issues, bugs, and improvements.

Signature

python
def review(code: str, language: str) -> str

Parameters

ParamField str

Code to review

ParamField str

Programming language **kwargs: Additional arguments

Returns

ResponseField str

Review feedback as string

Uses

  • completion
  • ValueError

Source

View on GitHub

praisonaiagents/agent/code_agent.py at line 300