add authentication support
This commit is contained in:
29
dist/auth/JLINCAuthDecision.d.ts
vendored
Normal file
29
dist/auth/JLINCAuthDecision.d.ts
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
export type JLINCConfig = import("./common").JLINCConfig;
|
||||
/**
|
||||
* @typedef {import('./common').JLINCConfig} JLINCConfig
|
||||
*/
|
||||
export class JLINCAuthDecision extends Tool<any> {
|
||||
/**
|
||||
* @param {JLINCConfig} fields
|
||||
*/
|
||||
constructor(config: any);
|
||||
/** @type {JLINCConfig} */
|
||||
config: JLINCConfig;
|
||||
/** @type {Boolean} */
|
||||
authenticated: boolean;
|
||||
/**
|
||||
* @param {any} payload
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
postToApi(auth: any): Promise<any>;
|
||||
/**
|
||||
* @param {auth} auth
|
||||
* @returns {Promise<boolean>} - authenticated
|
||||
*/
|
||||
evaluate(auth: any): Promise<boolean>;
|
||||
/**
|
||||
* @returns {boolean} - authenticated
|
||||
*/
|
||||
getAuth(): boolean;
|
||||
}
|
||||
import { Tool } from "@langchain/core/dist/tools";
|
||||
Reference in New Issue
Block a user