abacusai.code_edit — AbacusAI documentation

# abacusai.code_edit

## Classes

`CodeEdit` | A code edit response from an LLM

## Module Contents

class abacusai.code_edit.CodeEdit(client, filePath=None, startLine=None, endLine=None, text=None)

  Bases: `abacusai.return_class.AbstractApiClass`

  A code edit response from an LLM

  Parameters:

    - client (ApiClient) – An authenticated API Client instance

    - filePath (str) – The path of the file to be edited.

    - startLine (int) – The start line of the code to be replaced.

    - endLine (int) – The end line of the code to be replaced.

    - text (str) – The new text.

  file_path = None
  start_line = None
  end_line = None
  text = None
  deprecated_keys
  __repr__()
  to_dict()

    Get a dict representation of the parameters in this class

    Returns:

      The dict value representation of the class parameters

    Return type:

      dict