forked from n8n-io/n8n
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: HTTP request tool (n8n-io#9228)
- Loading branch information
1 parent
7581d46
commit a48cdb5
Showing
14 changed files
with
2,423 additions
and
144 deletions.
There are no files selected for viewing
405 changes: 405 additions & 0 deletions
405
packages/@n8n/nodes-langchain/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.ts
Large diffs are not rendered by default.
Oops, something went wrong.
401 changes: 401 additions & 0 deletions
401
packages/@n8n/nodes-langchain/nodes/tools/ToolHttpRequest/descriptions.ts
Large diffs are not rendered by default.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
packages/@n8n/nodes-langchain/nodes/tools/ToolHttpRequest/httprequest.dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
packages/@n8n/nodes-langchain/nodes/tools/ToolHttpRequest/httprequest.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
packages/@n8n/nodes-langchain/nodes/tools/ToolHttpRequest/interfaces.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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'; |
Oops, something went wrong.