A package that provides an assistant to access OpenAI API and write or
rewrite code.
Requirements
This package requires the request library to be installed.
Functions
igor-select-model (&optional initial-model)
This function prompts the user to select an OpenAI model and store it in
igor-openai-model. If initial-model is provided, set the model to
that without prompting the user.
igor-eldoc-function (callback &rest _)
This function displays a summary and example code for the symbol at
point. It obtains the summary and code by using the xref-backends to
find the definition of the symbol at point and converting the definition
into org-mode format.
igor-install-eldoc-backend ()
This function installs the igor eldoc backend. It adds the
igor-eldoc-function to the eldoc-documentation-functions.
igor-code-query (language query code callback)
This function performs a QUERY on CODE in LANGUAGE and sends the
response to CALLBACK.
igor-code-query-region (start end query)
This function performs a QUERY on the region from START to END and
displays the response in the help buffer.
igor-code-explain-region (start end)
This function explains the code in the region from START to END and
displays the response in buffer.
igor-do (instruction)
This function generates an elisp expression from INSTRUCTION and asks
the user whether to evaluate it.
igor-code-write (language instruction callback)
This function writes code in a given LANGUAGE according to an
INSTRUCTION.
igor-code-write-at-point (instruction)
This function writes code at point according to an INSTRUCTION
provided by the user.