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

python
def fix(code: str, error: str, language: str) -> str

Parameters

ParamField str

Code with bugs

ParamField str

Error message or description of the bug

ParamField str

Programming language **kwargs: Additional arguments

Returns

ResponseField str

Fixed code as string

Uses

  • completion
  • ValueError

Used By

Source

View on GitHub

praisonaiagents/agent/code_agent.py at line 434