forked from FlowiseAI/Flowise
-
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.
Add LangWatch integration (FlowiseAI#2677)
Add langwatch integration
- Loading branch information
1 parent
aec9e7a
commit 0fc5e3d
Showing
9 changed files
with
1,014 additions
and
218 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
packages/components/credentials/LangWatchApi.credential.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,33 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class LangWatchApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'LangWatch API' | ||
this.name = 'langwatchApi' | ||
this.version = 1.0 | ||
this.description = | ||
'Refer to <a target="_blank" href="https://docs.langwatch.ai/integration/python/guide">integration guide</a> on how to get API keys on LangWatch' | ||
this.inputs = [ | ||
{ | ||
label: 'API Key', | ||
name: 'langWatchApiKey', | ||
type: 'password', | ||
placeholder: '<LANGWATCH_API_KEY>' | ||
}, | ||
{ | ||
label: 'Endpoint', | ||
name: 'langWatchEndpoint', | ||
type: 'string', | ||
default: 'https://app.langwatch.ai' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: LangWatchApi } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,33 @@ | ||
import { INode, INodeParams } from '../../../src/Interface' | ||
|
||
class LangWatch_Analytic implements INode { | ||
label: string | ||
name: string | ||
version: number | ||
description: string | ||
type: string | ||
icon: string | ||
category: string | ||
baseClasses: string[] | ||
inputs?: INodeParams[] | ||
credential: INodeParams | ||
|
||
constructor() { | ||
this.label = 'LangWatch' | ||
this.name = 'LangWatch' | ||
this.version = 1.0 | ||
this.type = 'LangWatch' | ||
this.icon = 'LangWatch.svg' | ||
this.category = 'Analytic' | ||
this.baseClasses = [this.type] | ||
this.inputs = [] | ||
this.credential = { | ||
label: 'Connect Credential', | ||
name: 'credential', | ||
type: 'credential', | ||
credentialNames: ['langwatchApi'] | ||
} | ||
} | ||
} | ||
|
||
module.exports = { nodeClass: LangWatch_Analytic } |
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.