n8n/packages/@n8n/nodes-langchain/nodes/tools/ToolHttpRequest/interfaces.ts
2024-06-19 10:54:13 +03:00

24 lines
497 B
TypeScript

export type ToolParameter = {
name: string;
required: boolean;
type?: string;
description?: string;
sendIn: SendIn;
key?: string;
};
export type PlaceholderDefinition = {
name: string;
type?: string;
description: string;
};
export type ParametersValues = Array<{
name: string;
valueProvider: 'modelRequired' | 'modelOptional' | 'fieldValue';
value?: string;
}>;
export type ParameterInputType = 'keypair' | 'json' | 'model';
export type SendIn = 'body' | 'qs' | 'path' | 'headers';