mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
feat(core): Add support for building LLM applications (#7235)
This extracts all core and editor changes from #7246 and #7137, so that we can get these changes merged first. ADO-1120 [DB Tests](https://github.com/n8n-io/n8n/actions/runs/6379749011) [E2E Tests](https://github.com/n8n-io/n8n/actions/runs/6379751480) [Workflow Tests](https://github.com/n8n-io/n8n/actions/runs/6379752828) --------- Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com> Co-authored-by: Oleg Ivaniv <me@olegivaniv.com> Co-authored-by: Alex Grozav <alex@grozav.com> Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
committed by
GitHub
parent
04dfcd73be
commit
00a4b8b0c6
@@ -105,6 +105,7 @@ export class Expression {
|
||||
* @param {(IRunExecutionData | null)} runExecutionData
|
||||
* @param {boolean} [returnObjectAsString=false]
|
||||
*/
|
||||
// TODO: Clean that up at some point and move all the options into an options object
|
||||
resolveSimpleParameterValue(
|
||||
parameterValue: NodeParameterValue,
|
||||
siblingParameters: INodeParameters,
|
||||
@@ -119,6 +120,7 @@ export class Expression {
|
||||
executeData?: IExecuteData,
|
||||
returnObjectAsString = false,
|
||||
selfData = {},
|
||||
contextNodeName?: string,
|
||||
): NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[] {
|
||||
// Check if it is an expression
|
||||
if (typeof parameterValue !== 'string' || parameterValue.charAt(0) !== '=') {
|
||||
@@ -147,6 +149,7 @@ export class Expression {
|
||||
executeData,
|
||||
-1,
|
||||
selfData,
|
||||
contextNodeName,
|
||||
);
|
||||
const data = dataProxy.getDataProxy();
|
||||
|
||||
@@ -476,6 +479,7 @@ export class Expression {
|
||||
* @param {(IRunExecutionData | null)} runExecutionData
|
||||
* @param {boolean} [returnObjectAsString=false]
|
||||
*/
|
||||
// TODO: Clean that up at some point and move all the options into an options object
|
||||
getParameterValue(
|
||||
parameterValue: NodeParameterValueType | INodeParameterResourceLocator,
|
||||
runExecutionData: IRunExecutionData | null,
|
||||
@@ -489,6 +493,7 @@ export class Expression {
|
||||
executeData?: IExecuteData,
|
||||
returnObjectAsString = false,
|
||||
selfData = {},
|
||||
contextNodeName?: string,
|
||||
): NodeParameterValueType {
|
||||
// Helper function which returns true when the parameter is a complex one or array
|
||||
const isComplexParameter = (value: NodeParameterValueType) => {
|
||||
@@ -514,6 +519,7 @@ export class Expression {
|
||||
executeData,
|
||||
returnObjectAsString,
|
||||
selfData,
|
||||
contextNodeName,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -531,6 +537,7 @@ export class Expression {
|
||||
executeData,
|
||||
returnObjectAsString,
|
||||
selfData,
|
||||
contextNodeName,
|
||||
);
|
||||
};
|
||||
|
||||
@@ -550,6 +557,7 @@ export class Expression {
|
||||
executeData,
|
||||
returnObjectAsString,
|
||||
selfData,
|
||||
contextNodeName,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user