Skip to content

Commit da302a5

Browse files
danmichaeljonesDan Jones
andauthored
Add tenant option to QueryAgentCollectionConfig (#20)
* Add tenant option to QueryAgentCollectionConfig * Bump version --------- Co-authored-by: Dan Jones <[email protected]>
1 parent dda3b56 commit da302a5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "weaviate-agents",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "JS/TS client for Weaviate Agents",
55
"exports": "./dist/index.js",
66
"type": "module",

src/query/collection.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ export const mapCollections = (
88
name: collection.name,
99
view_properties: collection.viewProperties,
1010
target_vector: collection.targetVector,
11+
tenant: collection.tenant,
1112
}
1213
);
1314

1415
/** Configuration for a collection to query. */
1516
export type QueryAgentCollectionConfig = {
1617
/** The name of the collection to query. */
1718
name: string;
19+
/** Tenant for the collection if multi-tenancy is enabled. */
20+
tenant?: string;
1821
/** List of of property names the agent has the ability to view for the collection. */
1922
viewProperties?: string[];
2023
/** Target vector for the query if a collection uses named vector. */

0 commit comments

Comments
 (0)