Skip to content

Commit

Permalink
Add processUserIntent parameter to transform function for enhanced in…
Browse files Browse the repository at this point in the history
…tent processing
  • Loading branch information
TheWhiteWord committed Dec 23, 2024
1 parent 5877a38 commit 24fa73d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/core_logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ async function executeTemplateDef(templateDef, context) {
}

// Execute the transform function with the parsed response
const transformFunction = new Function('context', 'execute', 'chatWithLLM', templateDef.transform);
const result = await transformFunction(parsedResponse.result, execute, chatWithLLM);
const transformFunction = new Function('context', 'execute', 'chatWithLLM', 'processUserIntent', templateDef.transform);
const result = await transformFunction(parsedResponse.result, execute, chatWithLLM, processUserIntent);

return {
status: "success",
Expand Down
Loading

0 comments on commit 24fa73d

Please sign in to comment.