@@ -46,12 +46,14 @@ export type FactLifecycle = TTL | MaxItems;
|
||||
|
||||
// @public
|
||||
export interface FactRetriever {
|
||||
description: string;
|
||||
entityFilter?:
|
||||
| Record<string, string | symbol | (string | symbol)[]>[]
|
||||
| Record<string, string | symbol | (string | symbol)[]>;
|
||||
handler: (ctx: FactRetrieverContext) => Promise<TechInsightFact[]>;
|
||||
id: string;
|
||||
schema: FactSchema;
|
||||
title: string;
|
||||
version: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -174,6 +174,16 @@ export interface FactRetriever {
|
||||
*/
|
||||
version: string;
|
||||
|
||||
/**
|
||||
* A short display title for the fact retriever to be used in the interface
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* A short display description for the fact retriever to be used in the interface.
|
||||
*/
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* Handler function that needs to be implemented to retrieve fact values for entities.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user