Interface: GeneratedDataStore
Hierarchy
-
GeneratedDataStore
Methods
close
▸ close(): Promise
<void
>
Returns
Promise
<void
>
Defined in
packages/mongodb-chatbot-eval/src/generate/GeneratedDataStore.ts:40
find
▸ find(filter
): Promise
<undefined
| SomeGeneratedData
[]>
Parameters
Name | Type |
---|---|
filter | unknown |
Returns
Promise
<undefined
| SomeGeneratedData
[]>
Defined in
packages/mongodb-chatbot-eval/src/generate/GeneratedDataStore.ts:39
findByCommandRunId
▸ findByCommandRunId(commandRunId
): Promise
<undefined
| SomeGeneratedData
[]>
Parameters
Name | Type |
---|---|
commandRunId | ObjectId |
Returns
Promise
<undefined
| SomeGeneratedData
[]>
Defined in
packages/mongodb-chatbot-eval/src/generate/GeneratedDataStore.ts:36
findById
▸ findById(generatedDataId
): Promise
<undefined
| SomeGeneratedData
>
Parameters
Name | Type |
---|---|
generatedDataId | ObjectId |
Returns
Promise
<undefined
| SomeGeneratedData
>
Defined in
packages/mongodb-chatbot-eval/src/generate/GeneratedDataStore.ts:35
insertMany
▸ insertMany(generatedData
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
generatedData | SomeGeneratedData [] |
Returns
Promise
<boolean
>
Defined in
packages/mongodb-chatbot-eval/src/generate/GeneratedDataStore.ts:34
insertOne
▸ insertOne(generatedData
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
generatedData | SomeGeneratedData |
Returns
Promise
<boolean
>
Defined in
packages/mongodb-chatbot-eval/src/generate/GeneratedDataStore.ts:33