weaviate-agents
Version:
JS/TS client for Weaviate Agents
23 lines (22 loc) • 1.03 kB
TypeScript
import { FilterValue } from "weaviate-client";
export declare const mapCollections: (collections: (string | QueryAgentCollectionConfig)[]) => (string | {
name: string;
tenant: string | undefined;
view_properties: string[] | undefined;
target_vector: string | string[] | undefined;
additional_filters: any;
})[];
export type QueryAgentCollection = string | QueryAgentCollectionConfig;
/** Configuration for a collection to query. */
export type QueryAgentCollectionConfig = {
/** The name of the collection to query. */
name: string;
/** Tenant for the collection if multi-tenancy is enabled. */
tenant?: string;
/** List of of property names the agent has the ability to view for the collection. */
viewProperties?: string[];
/** Target vector for the query if a collection uses named vector. */
targetVector?: string | string[];
/** Filters to apply when query is executed, in addition to filters selected by the Query Agent. */
additionalFilters?: FilterValue;
};