30 lines
752 B
TypeScript
30 lines
752 B
TypeScript
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";
|