agentkit.node_functions.error_msg_default

agentkit.node_functions.error_msg_default(prompt, result, error)

Default function to append the error message to the prompt.

Parameters:
  • prompt (list) – List of messages in OpenAI format.

  • result (str) – Result of the LLM query.

  • error (str) – Error message for the LLM.

Returns:

List of messages in OpenAI format.

Return type:

prompt (list)