fix • AI Agent SDK
fix: Fix bugs in code.
fix
Method
</div>
This is a method of the CodeAgent class in the code_agent module.
Fix bugs in code.
Signature
def fix(code: str, error: str, language: str) -> strParameters
ParamField
strCode with bugs
ParamField
strError message or description of the bug
ParamField
strProgramming language **kwargs: Additional arguments
Returns
ResponseField
strFixed code as string
Uses
completionValueError
Used By
Source
View on GitHubpraisonaiagents/agent/code_agent.py at line 434