@keystrokehq/pinecone 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/cancel-bulk-import.cjs +1 -1
- package/dist/actions/cancel-bulk-import.cjs.map +1 -1
- package/dist/actions/cancel-bulk-import.d.cts +1 -1
- package/dist/actions/cancel-bulk-import.d.cts.map +1 -1
- package/dist/actions/cancel-bulk-import.d.mts +1 -1
- package/dist/actions/cancel-bulk-import.d.mts.map +1 -1
- package/dist/actions/cancel-bulk-import.mjs +1 -1
- package/dist/actions/cancel-bulk-import.mjs.map +1 -1
- package/dist/actions/chat-assistant.cjs +9 -9
- package/dist/actions/chat-assistant.cjs.map +1 -1
- package/dist/actions/chat-assistant.d.cts +11 -10
- package/dist/actions/chat-assistant.d.cts.map +1 -1
- package/dist/actions/chat-assistant.d.mts +11 -10
- package/dist/actions/chat-assistant.d.mts.map +1 -1
- package/dist/actions/chat-assistant.mjs +9 -9
- package/dist/actions/chat-assistant.mjs.map +1 -1
- package/dist/actions/chat-completion-assistant.cjs +6 -6
- package/dist/actions/chat-completion-assistant.cjs.map +1 -1
- package/dist/actions/chat-completion-assistant.d.cts +8 -7
- package/dist/actions/chat-completion-assistant.d.cts.map +1 -1
- package/dist/actions/chat-completion-assistant.d.mts +8 -7
- package/dist/actions/chat-completion-assistant.d.mts.map +1 -1
- package/dist/actions/chat-completion-assistant.mjs +6 -6
- package/dist/actions/chat-completion-assistant.mjs.map +1 -1
- package/dist/actions/configure-index.cjs +6 -6
- package/dist/actions/configure-index.cjs.map +1 -1
- package/dist/actions/configure-index.d.cts +7 -7
- package/dist/actions/configure-index.d.mts +7 -7
- package/dist/actions/configure-index.mjs +6 -6
- package/dist/actions/configure-index.mjs.map +1 -1
- package/dist/actions/create-assistant.cjs +3 -3
- package/dist/actions/create-assistant.cjs.map +1 -1
- package/dist/actions/create-assistant.d.cts +4 -4
- package/dist/actions/create-assistant.d.mts +4 -4
- package/dist/actions/create-assistant.mjs +3 -3
- package/dist/actions/create-assistant.mjs.map +1 -1
- package/dist/actions/create-backup.cjs +1 -1
- package/dist/actions/create-backup.cjs.map +1 -1
- package/dist/actions/create-backup.d.cts +1 -1
- package/dist/actions/create-backup.d.mts +1 -1
- package/dist/actions/create-backup.mjs +1 -1
- package/dist/actions/create-backup.mjs.map +1 -1
- package/dist/actions/create-index-for-model.cjs +9 -9
- package/dist/actions/create-index-for-model.cjs.map +1 -1
- package/dist/actions/create-index-for-model.d.cts +13 -13
- package/dist/actions/create-index-for-model.d.mts +13 -13
- package/dist/actions/create-index-for-model.mjs +9 -9
- package/dist/actions/create-index-for-model.mjs.map +1 -1
- package/dist/actions/create-index-from-backup.cjs +2 -2
- package/dist/actions/create-index-from-backup.cjs.map +1 -1
- package/dist/actions/create-index-from-backup.d.cts +3 -3
- package/dist/actions/create-index-from-backup.d.mts +3 -3
- package/dist/actions/create-index-from-backup.mjs +2 -2
- package/dist/actions/create-index-from-backup.mjs.map +1 -1
- package/dist/actions/create-index.cjs +2 -2
- package/dist/actions/create-index.cjs.map +1 -1
- package/dist/actions/create-index.d.cts +4 -4
- package/dist/actions/create-index.d.mts +4 -4
- package/dist/actions/create-index.mjs +2 -2
- package/dist/actions/create-index.mjs.map +1 -1
- package/dist/actions/create-namespace.cjs +4 -4
- package/dist/actions/create-namespace.cjs.map +1 -1
- package/dist/actions/create-namespace.d.cts +6 -6
- package/dist/actions/create-namespace.d.mts +6 -6
- package/dist/actions/create-namespace.mjs +4 -4
- package/dist/actions/create-namespace.mjs.map +1 -1
- package/dist/actions/delete-assistant.cjs +1 -1
- package/dist/actions/delete-assistant.cjs.map +1 -1
- package/dist/actions/delete-assistant.d.cts +1 -1
- package/dist/actions/delete-assistant.d.mts +1 -1
- package/dist/actions/delete-assistant.mjs +1 -1
- package/dist/actions/delete-assistant.mjs.map +1 -1
- package/dist/actions/delete-backup.cjs +1 -1
- package/dist/actions/delete-backup.cjs.map +1 -1
- package/dist/actions/delete-backup.d.cts +1 -1
- package/dist/actions/delete-backup.d.mts +1 -1
- package/dist/actions/delete-backup.mjs +1 -1
- package/dist/actions/delete-backup.mjs.map +1 -1
- package/dist/actions/delete-file.cjs +1 -1
- package/dist/actions/delete-file.cjs.map +1 -1
- package/dist/actions/delete-file.d.cts +1 -1
- package/dist/actions/delete-file.d.mts +1 -1
- package/dist/actions/delete-file.mjs +1 -1
- package/dist/actions/delete-file.mjs.map +1 -1
- package/dist/actions/delete-index.cjs +1 -1
- package/dist/actions/delete-index.cjs.map +1 -1
- package/dist/actions/delete-index.d.cts +1 -1
- package/dist/actions/delete-index.d.mts +1 -1
- package/dist/actions/delete-index.mjs +1 -1
- package/dist/actions/delete-index.mjs.map +1 -1
- package/dist/actions/delete-namespace.cjs +1 -1
- package/dist/actions/delete-namespace.cjs.map +1 -1
- package/dist/actions/delete-namespace.d.cts +1 -1
- package/dist/actions/delete-namespace.d.cts.map +1 -1
- package/dist/actions/delete-namespace.d.mts +1 -1
- package/dist/actions/delete-namespace.d.mts.map +1 -1
- package/dist/actions/delete-namespace.mjs +1 -1
- package/dist/actions/delete-namespace.mjs.map +1 -1
- package/dist/actions/delete-vectors.cjs +2 -2
- package/dist/actions/delete-vectors.cjs.map +1 -1
- package/dist/actions/delete-vectors.d.cts +3 -3
- package/dist/actions/delete-vectors.d.cts.map +1 -1
- package/dist/actions/delete-vectors.d.mts +3 -3
- package/dist/actions/delete-vectors.d.mts.map +1 -1
- package/dist/actions/delete-vectors.mjs +2 -2
- package/dist/actions/delete-vectors.mjs.map +1 -1
- package/dist/actions/describe-backup.cjs +3 -3
- package/dist/actions/describe-backup.cjs.map +1 -1
- package/dist/actions/describe-backup.d.cts +3 -3
- package/dist/actions/describe-backup.d.mts +3 -3
- package/dist/actions/describe-backup.mjs +3 -3
- package/dist/actions/describe-backup.mjs.map +1 -1
- package/dist/actions/describe-bulk-import.cjs +1 -1
- package/dist/actions/describe-bulk-import.cjs.map +1 -1
- package/dist/actions/describe-bulk-import.d.cts +1 -1
- package/dist/actions/describe-bulk-import.d.mts +1 -1
- package/dist/actions/describe-bulk-import.mjs +1 -1
- package/dist/actions/describe-bulk-import.mjs.map +1 -1
- package/dist/actions/describe-file.cjs +2 -2
- package/dist/actions/describe-file.cjs.map +1 -1
- package/dist/actions/describe-file.d.cts +2 -2
- package/dist/actions/describe-file.d.mts +2 -2
- package/dist/actions/describe-file.mjs +2 -2
- package/dist/actions/describe-file.mjs.map +1 -1
- package/dist/actions/describe-index-stats.cjs +2 -2
- package/dist/actions/describe-index-stats.cjs.map +1 -1
- package/dist/actions/describe-index-stats.d.cts +2 -2
- package/dist/actions/describe-index-stats.d.mts +2 -2
- package/dist/actions/describe-index-stats.mjs +2 -2
- package/dist/actions/describe-index-stats.mjs.map +1 -1
- package/dist/actions/describe-index.cjs +9 -9
- package/dist/actions/describe-index.cjs.map +1 -1
- package/dist/actions/describe-index.d.cts +9 -9
- package/dist/actions/describe-index.d.mts +9 -9
- package/dist/actions/describe-index.mjs +9 -9
- package/dist/actions/describe-index.mjs.map +1 -1
- package/dist/actions/describe-namespace.cjs +3 -3
- package/dist/actions/describe-namespace.cjs.map +1 -1
- package/dist/actions/describe-namespace.d.cts +4 -4
- package/dist/actions/describe-namespace.d.mts +4 -4
- package/dist/actions/describe-namespace.mjs +3 -3
- package/dist/actions/describe-namespace.mjs.map +1 -1
- package/dist/actions/describe-restore-job.cjs +1 -1
- package/dist/actions/describe-restore-job.cjs.map +1 -1
- package/dist/actions/describe-restore-job.d.cts +1 -1
- package/dist/actions/describe-restore-job.d.mts +1 -1
- package/dist/actions/describe-restore-job.mjs +1 -1
- package/dist/actions/describe-restore-job.mjs.map +1 -1
- package/dist/actions/embed.cjs +5 -5
- package/dist/actions/embed.cjs.map +1 -1
- package/dist/actions/embed.d.cts +6 -5
- package/dist/actions/embed.d.mts +6 -5
- package/dist/actions/embed.mjs +5 -5
- package/dist/actions/embed.mjs.map +1 -1
- package/dist/actions/fetch-vectors.cjs +3 -3
- package/dist/actions/fetch-vectors.cjs.map +1 -1
- package/dist/actions/fetch-vectors.d.cts +3 -3
- package/dist/actions/fetch-vectors.d.mts +3 -3
- package/dist/actions/fetch-vectors.mjs +3 -3
- package/dist/actions/fetch-vectors.mjs.map +1 -1
- package/dist/actions/get-assistant.cjs +2 -2
- package/dist/actions/get-assistant.cjs.map +1 -1
- package/dist/actions/get-assistant.d.cts +2 -2
- package/dist/actions/get-assistant.d.mts +2 -2
- package/dist/actions/get-assistant.mjs +2 -2
- package/dist/actions/get-assistant.mjs.map +1 -1
- package/dist/actions/get-model.cjs +2 -2
- package/dist/actions/get-model.cjs.map +1 -1
- package/dist/actions/get-model.d.cts +2 -2
- package/dist/actions/get-model.d.mts +2 -2
- package/dist/actions/get-model.mjs +2 -2
- package/dist/actions/get-model.mjs.map +1 -1
- package/dist/actions/list-assistants.cjs +4 -4
- package/dist/actions/list-assistants.cjs.map +1 -1
- package/dist/actions/list-assistants.d.cts +4 -4
- package/dist/actions/list-assistants.d.mts +4 -4
- package/dist/actions/list-assistants.mjs +4 -4
- package/dist/actions/list-assistants.mjs.map +1 -1
- package/dist/actions/list-bulk-imports.cjs +3 -3
- package/dist/actions/list-bulk-imports.cjs.map +1 -1
- package/dist/actions/list-bulk-imports.d.cts +3 -3
- package/dist/actions/list-bulk-imports.d.mts +3 -3
- package/dist/actions/list-bulk-imports.mjs +3 -3
- package/dist/actions/list-bulk-imports.mjs.map +1 -1
- package/dist/actions/list-collections.cjs +2 -2
- package/dist/actions/list-collections.cjs.map +1 -1
- package/dist/actions/list-collections.d.cts +2 -2
- package/dist/actions/list-collections.d.mts +2 -2
- package/dist/actions/list-collections.mjs +2 -2
- package/dist/actions/list-collections.mjs.map +1 -1
- package/dist/actions/list-files.cjs +4 -4
- package/dist/actions/list-files.cjs.map +1 -1
- package/dist/actions/list-files.d.cts +4 -4
- package/dist/actions/list-files.d.mts +4 -4
- package/dist/actions/list-files.mjs +4 -4
- package/dist/actions/list-files.mjs.map +1 -1
- package/dist/actions/list-index-backups.cjs +5 -5
- package/dist/actions/list-index-backups.cjs.map +1 -1
- package/dist/actions/list-index-backups.d.cts +5 -5
- package/dist/actions/list-index-backups.d.mts +5 -5
- package/dist/actions/list-index-backups.mjs +5 -5
- package/dist/actions/list-index-backups.mjs.map +1 -1
- package/dist/actions/list-indexes.cjs +8 -8
- package/dist/actions/list-indexes.cjs.map +1 -1
- package/dist/actions/list-indexes.d.cts +8 -8
- package/dist/actions/list-indexes.d.mts +8 -8
- package/dist/actions/list-indexes.mjs +8 -8
- package/dist/actions/list-indexes.mjs.map +1 -1
- package/dist/actions/list-models.cjs +3 -3
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +3 -3
- package/dist/actions/list-models.d.mts +3 -3
- package/dist/actions/list-models.mjs +3 -3
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/list-namespaces-operation.cjs +5 -5
- package/dist/actions/list-namespaces-operation.cjs.map +1 -1
- package/dist/actions/list-namespaces-operation.d.cts +6 -6
- package/dist/actions/list-namespaces-operation.d.mts +6 -6
- package/dist/actions/list-namespaces-operation.mjs +5 -5
- package/dist/actions/list-namespaces-operation.mjs.map +1 -1
- package/dist/actions/list-project-backups.cjs +5 -5
- package/dist/actions/list-project-backups.cjs.map +1 -1
- package/dist/actions/list-project-backups.d.cts +5 -5
- package/dist/actions/list-project-backups.d.mts +5 -5
- package/dist/actions/list-project-backups.mjs +5 -5
- package/dist/actions/list-project-backups.mjs.map +1 -1
- package/dist/actions/list-restore-jobs.cjs +3 -3
- package/dist/actions/list-restore-jobs.cjs.map +1 -1
- package/dist/actions/list-restore-jobs.d.cts +3 -3
- package/dist/actions/list-restore-jobs.d.mts +3 -3
- package/dist/actions/list-restore-jobs.mjs +3 -3
- package/dist/actions/list-restore-jobs.mjs.map +1 -1
- package/dist/actions/list-vectors.cjs +4 -4
- package/dist/actions/list-vectors.cjs.map +1 -1
- package/dist/actions/list-vectors.d.cts +4 -4
- package/dist/actions/list-vectors.d.mts +4 -4
- package/dist/actions/list-vectors.mjs +4 -4
- package/dist/actions/list-vectors.mjs.map +1 -1
- package/dist/actions/query-vectors.cjs +6 -6
- package/dist/actions/query-vectors.cjs.map +1 -1
- package/dist/actions/query-vectors.d.cts +7 -7
- package/dist/actions/query-vectors.d.mts +7 -7
- package/dist/actions/query-vectors.mjs +6 -6
- package/dist/actions/query-vectors.mjs.map +1 -1
- package/dist/actions/rerank.cjs +4 -4
- package/dist/actions/rerank.cjs.map +1 -1
- package/dist/actions/rerank.d.cts +5 -4
- package/dist/actions/rerank.d.cts.map +1 -1
- package/dist/actions/rerank.d.mts +5 -4
- package/dist/actions/rerank.d.mts.map +1 -1
- package/dist/actions/rerank.mjs +4 -4
- package/dist/actions/rerank.mjs.map +1 -1
- package/dist/actions/retrieve-context-assistant.cjs +9 -9
- package/dist/actions/retrieve-context-assistant.cjs.map +1 -1
- package/dist/actions/retrieve-context-assistant.d.cts +11 -10
- package/dist/actions/retrieve-context-assistant.d.mts +11 -10
- package/dist/actions/retrieve-context-assistant.mjs +9 -9
- package/dist/actions/retrieve-context-assistant.mjs.map +1 -1
- package/dist/actions/search-records-namespace.cjs +7 -7
- package/dist/actions/search-records-namespace.cjs.map +1 -1
- package/dist/actions/search-records-namespace.d.cts +9 -9
- package/dist/actions/search-records-namespace.d.mts +9 -9
- package/dist/actions/search-records-namespace.mjs +7 -7
- package/dist/actions/search-records-namespace.mjs.map +1 -1
- package/dist/actions/start-bulk-import.cjs +1 -1
- package/dist/actions/start-bulk-import.cjs.map +1 -1
- package/dist/actions/start-bulk-import.d.cts +1 -1
- package/dist/actions/start-bulk-import.d.mts +1 -1
- package/dist/actions/start-bulk-import.mjs +1 -1
- package/dist/actions/start-bulk-import.mjs.map +1 -1
- package/dist/actions/update-assistant.cjs +3 -3
- package/dist/actions/update-assistant.cjs.map +1 -1
- package/dist/actions/update-assistant.d.cts +4 -4
- package/dist/actions/update-assistant.d.mts +4 -4
- package/dist/actions/update-assistant.mjs +3 -3
- package/dist/actions/update-assistant.mjs.map +1 -1
- package/dist/actions/update-vector.cjs +3 -3
- package/dist/actions/update-vector.cjs.map +1 -1
- package/dist/actions/update-vector.d.cts +5 -5
- package/dist/actions/update-vector.d.mts +5 -5
- package/dist/actions/update-vector.mjs +3 -3
- package/dist/actions/update-vector.mjs.map +1 -1
- package/dist/actions/upload-file.cjs +1 -1
- package/dist/actions/upload-file.cjs.map +1 -1
- package/dist/actions/upload-file.d.cts +1 -1
- package/dist/actions/upload-file.d.mts +1 -1
- package/dist/actions/upload-file.mjs +1 -1
- package/dist/actions/upload-file.mjs.map +1 -1
- package/dist/actions/upsert-records-namespace.cjs +1 -1
- package/dist/actions/upsert-records-namespace.cjs.map +1 -1
- package/dist/actions/upsert-records-namespace.d.cts +1 -1
- package/dist/actions/upsert-records-namespace.d.mts +1 -1
- package/dist/actions/upsert-records-namespace.mjs +1 -1
- package/dist/actions/upsert-records-namespace.mjs.map +1 -1
- package/dist/actions/upsert-vectors.cjs +3 -3
- package/dist/actions/upsert-vectors.cjs.map +1 -1
- package/dist/actions/upsert-vectors.d.cts +5 -4
- package/dist/actions/upsert-vectors.d.cts.map +1 -1
- package/dist/actions/upsert-vectors.d.mts +5 -4
- package/dist/actions/upsert-vectors.d.mts.map +1 -1
- package/dist/actions/upsert-vectors.mjs +3 -3
- package/dist/actions/upsert-vectors.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ const PineconeCancelBulkImportInput = zod.z.object({
|
|
|
5
5
|
id: zod.z.string().describe("Unique identifier of the import operation to cancel"),
|
|
6
6
|
index_host: zod.z.string().describe("The host URL of the index where the bulk import is running. Get this from the list indexes API or Pinecone console (e.g., 'your-index-epf46k1.svc.aped-4627-b74a.pinecone.io')")
|
|
7
7
|
}).describe("Request model for canceling a bulk import operation.");
|
|
8
|
-
const PineconeCancelBulkImportOutput = zod.z.
|
|
8
|
+
const PineconeCancelBulkImportOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response schema for the cancel bulk import action.");
|
|
9
9
|
const pineconeCancelBulkImport = require_action.action("PINECONE_CANCEL_BULK_IMPORT", {
|
|
10
10
|
slug: "pinecone-cancel-bulk-import",
|
|
11
11
|
name: "Cancel Bulk Import",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-bulk-import.cjs","names":["z","action"],"sources":["../../src/actions/cancel-bulk-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeCancelBulkImportInput = z.object({\n id: z.string().describe(\"Unique identifier of the import operation to cancel\"),\n index_host: z.string().describe(\"The host URL of the index where the bulk import is running. Get this from the list indexes API or Pinecone console (e.g., 'your-index-epf46k1.svc.aped-4627-b74a.pinecone.io')\"),\n}).describe(\"Request model for canceling a bulk import operation.\");\nexport const PineconeCancelBulkImportOutput = z.
|
|
1
|
+
{"version":3,"file":"cancel-bulk-import.cjs","names":["z","action"],"sources":["../../src/actions/cancel-bulk-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeCancelBulkImportInput = z.object({\n id: z.string().describe(\"Unique identifier of the import operation to cancel\"),\n index_host: z.string().describe(\"The host URL of the index where the bulk import is running. Get this from the list indexes API or Pinecone console (e.g., 'your-index-epf46k1.svc.aped-4627-b74a.pinecone.io')\"),\n}).describe(\"Request model for canceling a bulk import operation.\");\nexport const PineconeCancelBulkImportOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for the cancel bulk import action.\");\n\nexport const pineconeCancelBulkImport = action(\"PINECONE_CANCEL_BULK_IMPORT\", {\n slug: \"pinecone-cancel-bulk-import\",\n name: \"Cancel Bulk Import\",\n description: \"Tool to cancel a bulk import operation in Pinecone. Use when you need to stop an ongoing import operation that is not yet finished.\",\n input: PineconeCancelBulkImportInput,\n output: PineconeCancelBulkImportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL;AAClN,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,iCAAiCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAE7I,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ declare const PineconeCancelBulkImportInput: z.ZodObject<{
|
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
index_host: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
declare const PineconeCancelBulkImportOutput: z.
|
|
8
|
+
declare const PineconeCancelBulkImportOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
9
|
declare const pineconeCancelBulkImport: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
10
10
|
id: string;
|
|
11
11
|
index_host: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-bulk-import.d.cts","names":[],"sources":["../../src/actions/cancel-bulk-import.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"cancel-bulk-import.d.cts","names":[],"sources":["../../src/actions/cancel-bulk-import.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -5,7 +5,7 @@ declare const PineconeCancelBulkImportInput: z.ZodObject<{
|
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
index_host: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
declare const PineconeCancelBulkImportOutput: z.
|
|
8
|
+
declare const PineconeCancelBulkImportOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
9
|
declare const pineconeCancelBulkImport: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
10
10
|
id: string;
|
|
11
11
|
index_host: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-bulk-import.d.mts","names":[],"sources":["../../src/actions/cancel-bulk-import.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"cancel-bulk-import.d.mts","names":[],"sources":["../../src/actions/cancel-bulk-import.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -8,7 +8,7 @@ const pineconeCancelBulkImport = action("PINECONE_CANCEL_BULK_IMPORT", {
|
|
|
8
8
|
id: z.string().describe("Unique identifier of the import operation to cancel"),
|
|
9
9
|
index_host: z.string().describe("The host URL of the index where the bulk import is running. Get this from the list indexes API or Pinecone console (e.g., 'your-index-epf46k1.svc.aped-4627-b74a.pinecone.io')")
|
|
10
10
|
}).describe("Request model for canceling a bulk import operation."),
|
|
11
|
-
output: z.
|
|
11
|
+
output: z.record(z.string(), z.unknown()).describe("Response schema for the cancel bulk import action.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { pineconeCancelBulkImport };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-bulk-import.mjs","names":[],"sources":["../../src/actions/cancel-bulk-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeCancelBulkImportInput = z.object({\n id: z.string().describe(\"Unique identifier of the import operation to cancel\"),\n index_host: z.string().describe(\"The host URL of the index where the bulk import is running. Get this from the list indexes API or Pinecone console (e.g., 'your-index-epf46k1.svc.aped-4627-b74a.pinecone.io')\"),\n}).describe(\"Request model for canceling a bulk import operation.\");\nexport const PineconeCancelBulkImportOutput = z.
|
|
1
|
+
{"version":3,"file":"cancel-bulk-import.mjs","names":[],"sources":["../../src/actions/cancel-bulk-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeCancelBulkImportInput = z.object({\n id: z.string().describe(\"Unique identifier of the import operation to cancel\"),\n index_host: z.string().describe(\"The host URL of the index where the bulk import is running. Get this from the list indexes API or Pinecone console (e.g., 'your-index-epf46k1.svc.aped-4627-b74a.pinecone.io')\"),\n}).describe(\"Request model for canceling a bulk import operation.\");\nexport const PineconeCancelBulkImportOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for the cancel bulk import action.\");\n\nexport const pineconeCancelBulkImport = action(\"PINECONE_CANCEL_BULK_IMPORT\", {\n slug: \"pinecone-cancel-bulk-import\",\n name: \"Cancel Bulk Import\",\n description: \"Tool to cancel a bulk import operation in Pinecone. Use when you need to stop an ongoing import operation that is not yet finished.\",\n input: PineconeCancelBulkImportInput,\n output: PineconeCancelBulkImportOutput,\n});\n"],"mappings":";;AAUA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAV2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL;CAClN,CAAC,CAAC,CAAC,SAAS,sDAOH;CACP,QAP4C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAO/E;AACV,CAAC"}
|
|
@@ -3,12 +3,12 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/chat-assistant.ts
|
|
4
4
|
const PineconeChatAssistantInput = zod.z.object({
|
|
5
5
|
model: zod.z.string().default("gpt-4o").describe("The large language model to use for answer generation. Default is 'gpt-4o'.").optional(),
|
|
6
|
-
filter: zod.z.
|
|
6
|
+
filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optionally filter which documents can be retrieved using metadata fields. Example: {\"genre\": {\"$ne\": \"documentary\"}}").optional(),
|
|
7
7
|
stream: zod.z.boolean().default(false).describe("If false, the assistant returns a single JSON response. If true, the assistant returns a stream of responses. Default is false.").optional(),
|
|
8
8
|
messages: zod.z.array(zod.z.object({
|
|
9
9
|
role: zod.z.string().describe("Role of the message sender. Typically 'user' or 'assistant'."),
|
|
10
10
|
content: zod.z.string().describe("Content of the message.")
|
|
11
|
-
}).describe("A message in a chat conversation.")).describe("List of messages in the conversation. Must include at least one message with role 'user'."),
|
|
11
|
+
}).passthrough().describe("A message in a chat conversation.")).describe("List of messages in the conversation. Must include at least one message with role 'user'."),
|
|
12
12
|
temperature: zod.z.number().default(0).describe("Controls randomness of model output: lower values make responses more deterministic, higher values increase creativity. Default is 0.0.").optional(),
|
|
13
13
|
json_response: zod.z.boolean().default(false).describe("If true, the assistant will be instructed to return a JSON response. Cannot be used with streaming. Default is false.").optional(),
|
|
14
14
|
assistant_host: zod.z.string().describe("The host URL for the assistant endpoint (e.g., 'prod-1-data.ke.pinecone.io'). This is the data plane host for your assistant."),
|
|
@@ -25,31 +25,31 @@ const PineconeChatAssistant_UsageStatsSchema = zod.z.object({
|
|
|
25
25
|
total_tokens: zod.z.number().int().describe("Total number of tokens used.").nullable().optional(),
|
|
26
26
|
prompt_tokens: zod.z.number().int().describe("Number of tokens in the prompt.").nullable().optional(),
|
|
27
27
|
completion_tokens: zod.z.number().int().describe("Number of tokens in the completion.").nullable().optional()
|
|
28
|
-
}).describe("Usage statistics for the chat request.");
|
|
28
|
+
}).passthrough().describe("Usage statistics for the chat request.");
|
|
29
29
|
const PineconeChatAssistant_ResponseMessageSchema = zod.z.object({
|
|
30
30
|
role: zod.z.string().describe("Role of the message sender (typically 'assistant').").nullable().optional(),
|
|
31
31
|
content: zod.z.string().describe("Content of the message.").nullable().optional()
|
|
32
|
-
}).describe("Message returned in the assistant's response.");
|
|
32
|
+
}).passthrough().describe("Message returned in the assistant's response.");
|
|
33
33
|
const PineconeChatAssistant_FileMetadataSchema = zod.z.object({
|
|
34
34
|
id: zod.z.string().describe("Unique identifier for the file.").nullable().optional(),
|
|
35
35
|
name: zod.z.string().describe("Name of the file.").nullable().optional(),
|
|
36
36
|
status: zod.z.string().describe("Status of the file (e.g., 'Available').").nullable().optional(),
|
|
37
37
|
created_on: zod.z.string().describe("Timestamp when the file was created.").nullable().optional(),
|
|
38
38
|
updated_on: zod.z.string().describe("Timestamp when the file was last updated.").nullable().optional()
|
|
39
|
-
}).describe("Metadata for a file referenced in citations.");
|
|
39
|
+
}).passthrough().describe("Metadata for a file referenced in citations.");
|
|
40
40
|
const PineconeChatAssistant_HighlightSchema = zod.z.object({
|
|
41
41
|
type: zod.z.string().describe("Type of highlight (e.g., 'text').").nullable().optional(),
|
|
42
42
|
content: zod.z.string().describe("Content of the highlight snippet.").nullable().optional()
|
|
43
|
-
}).describe("Highlight snippet from a referenced document.");
|
|
43
|
+
}).passthrough().describe("Highlight snippet from a referenced document.");
|
|
44
44
|
const PineconeChatAssistant_ReferenceSchema = zod.z.object({
|
|
45
45
|
file: PineconeChatAssistant_FileMetadataSchema.nullable().optional(),
|
|
46
46
|
pages: zod.z.array(zod.z.number().int()).describe("Page numbers where the reference appears.").nullable().optional(),
|
|
47
47
|
highlight: PineconeChatAssistant_HighlightSchema.nullable().optional()
|
|
48
|
-
}).describe("A reference to a document or file that supports the assistant's response.");
|
|
48
|
+
}).passthrough().describe("A reference to a document or file that supports the assistant's response.");
|
|
49
49
|
const PineconeChatAssistant_CitationSchema = zod.z.object({
|
|
50
50
|
position: zod.z.number().int().describe("Position in the response where the citation applies.").nullable().optional(),
|
|
51
51
|
references: zod.z.array(PineconeChatAssistant_ReferenceSchema).describe("List of references that support the citation.").nullable().optional()
|
|
52
|
-
}).describe("A citation with position and references.");
|
|
52
|
+
}).passthrough().describe("A citation with position and references.");
|
|
53
53
|
const PineconeChatAssistantOutput = zod.z.object({
|
|
54
54
|
id: zod.z.string().describe("Unique identifier for the chat response.").nullable().optional(),
|
|
55
55
|
model: zod.z.string().describe("The model used to generate the response.").nullable().optional(),
|
|
@@ -57,7 +57,7 @@ const PineconeChatAssistantOutput = zod.z.object({
|
|
|
57
57
|
message: PineconeChatAssistant_ResponseMessageSchema.nullable().optional(),
|
|
58
58
|
citations: zod.z.array(PineconeChatAssistant_CitationSchema).describe("Citations with references to supporting documents.").nullable().optional(),
|
|
59
59
|
finish_reason: zod.z.string().describe("Reason the response finished (e.g., 'stop').").nullable().optional()
|
|
60
|
-
}).describe("Response from chatting with a Pinecone assistant.");
|
|
60
|
+
}).passthrough().describe("Response from chatting with a Pinecone assistant.");
|
|
61
61
|
const pineconeChatAssistant = require_action.action("PINECONE_CHAT_ASSISTANT", {
|
|
62
62
|
slug: "pinecone-chat-assistant",
|
|
63
63
|
name: "Chat with Assistant",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-assistant.cjs","names":["z","action"],"sources":["../../src/actions/chat-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeChatAssistantInput = z.object({\n model: z.string().default(\"gpt-4o\").describe(\"The large language model to use for answer generation. Default is 'gpt-4o'.\").optional(),\n filter: z.object({}).describe(\"Optionally filter which documents can be retrieved using metadata fields. Example: {\\\"genre\\\": {\\\"$ne\\\": \\\"documentary\\\"}}\").optional(),\n stream: z.boolean().default(false).describe(\"If false, the assistant returns a single JSON response. If true, the assistant returns a stream of responses. Default is false.\").optional(),\n messages: z.array(z.object({\n role: z.string().describe(\"Role of the message sender. Typically 'user' or 'assistant'.\"),\n content: z.string().describe(\"Content of the message.\"),\n}).describe(\"A message in a chat conversation.\")).describe(\"List of messages in the conversation. Must include at least one message with role 'user'.\"),\n temperature: z.number().default(0).describe(\"Controls randomness of model output: lower values make responses more deterministic, higher values increase creativity. Default is 0.0.\").optional(),\n json_response: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return a JSON response. Cannot be used with streaming. Default is false.\").optional(),\n assistant_host: z.string().describe(\"The host URL for the assistant endpoint (e.g., 'prod-1-data.ke.pinecone.io'). This is the data plane host for your assistant.\"),\n assistant_name: z.string().describe(\"The name of the assistant to chat with.\"),\n context_options: z.object({\n top_k: z.number().int().describe(\"Maximum number of context snippets to use. Default is 16. Maximum is 64.\").optional(),\n multimodal: z.boolean().describe(\"Whether to send image-related context snippets to the LLM. If false, only text context snippets are sent. Default is true.\").optional(),\n snippet_size: z.number().int().describe(\"Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.\").optional(),\n include_binary_content: z.boolean().describe(\"If image-related context snippets are sent to the LLM, determines whether they should include base64 image data. If false, only the image caption is sent. Only available when multimodal=true. Default is true.\").optional(),\n}).describe(\"Controls the context snippets sent to the LLM.\").optional(),\n include_highlights: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return highlights from the referenced documents that support its response. Default is false.\").optional(),\n}).describe(\"Request parameters for chatting with a Pinecone assistant.\");\nconst PineconeChatAssistant_UsageStatsSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used.\").nullable().optional(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable().optional(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the completion.\").nullable().optional(),\n}).describe(\"Usage statistics for the chat request.\");\nconst PineconeChatAssistant_ResponseMessageSchema = z.object({\n role: z.string().describe(\"Role of the message sender (typically 'assistant').\").nullable().optional(),\n content: z.string().describe(\"Content of the message.\").nullable().optional(),\n}).describe(\"Message returned in the assistant's response.\");\nconst PineconeChatAssistant_FileMetadataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the file.\").nullable().optional(),\n name: z.string().describe(\"Name of the file.\").nullable().optional(),\n status: z.string().describe(\"Status of the file (e.g., 'Available').\").nullable().optional(),\n created_on: z.string().describe(\"Timestamp when the file was created.\").nullable().optional(),\n updated_on: z.string().describe(\"Timestamp when the file was last updated.\").nullable().optional(),\n}).describe(\"Metadata for a file referenced in citations.\");\nconst PineconeChatAssistant_HighlightSchema = z.object({\n type: z.string().describe(\"Type of highlight (e.g., 'text').\").nullable().optional(),\n content: z.string().describe(\"Content of the highlight snippet.\").nullable().optional(),\n}).describe(\"Highlight snippet from a referenced document.\");\nconst PineconeChatAssistant_ReferenceSchema = z.object({\n file: PineconeChatAssistant_FileMetadataSchema.nullable().optional(),\n pages: z.array(z.number().int()).describe(\"Page numbers where the reference appears.\").nullable().optional(),\n highlight: PineconeChatAssistant_HighlightSchema.nullable().optional(),\n}).describe(\"A reference to a document or file that supports the assistant's response.\");\nconst PineconeChatAssistant_CitationSchema = z.object({\n position: z.number().int().describe(\"Position in the response where the citation applies.\").nullable().optional(),\n references: z.array(PineconeChatAssistant_ReferenceSchema).describe(\"List of references that support the citation.\").nullable().optional(),\n}).describe(\"A citation with position and references.\");\nexport const PineconeChatAssistantOutput = z.object({\n id: z.string().describe(\"Unique identifier for the chat response.\").nullable().optional(),\n model: z.string().describe(\"The model used to generate the response.\").nullable().optional(),\n usage: PineconeChatAssistant_UsageStatsSchema.nullable().optional(),\n message: PineconeChatAssistant_ResponseMessageSchema.nullable().optional(),\n citations: z.array(PineconeChatAssistant_CitationSchema).describe(\"Citations with references to supporting documents.\").nullable().optional(),\n finish_reason: z.string().describe(\"Reason the response finished (e.g., 'stop').\").nullable().optional(),\n}).describe(\"Response from chatting with a Pinecone assistant.\");\n\nexport const pineconeChatAssistant = action(\"PINECONE_CHAT_ASSISTANT\", {\n slug: \"pinecone-chat-assistant\",\n name: \"Chat with Assistant\",\n description: \"Tool to chat with a Pinecone assistant and get structured responses with citations. Use when you need to query an assistant that has access to your knowledge base and want to get back answers with document references and citations.\",\n input: PineconeChatAssistantInput,\n output: PineconeChatAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACrK,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACxL,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACxF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACxD,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,SAAS,2FAA2F;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAChM,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CACrL,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACnK,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAC7E,iBAAiBA,IAAAA,E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E,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,YAAYA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAClE,SAAS,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"chat-assistant.cjs","names":["z","action"],"sources":["../../src/actions/chat-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeChatAssistantInput = z.object({\n model: z.string().default(\"gpt-4o\").describe(\"The large language model to use for answer generation. Default is 'gpt-4o'.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Optionally filter which documents can be retrieved using metadata fields. Example: {\\\"genre\\\": {\\\"$ne\\\": \\\"documentary\\\"}}\").optional(),\n stream: z.boolean().default(false).describe(\"If false, the assistant returns a single JSON response. If true, the assistant returns a stream of responses. Default is false.\").optional(),\n messages: z.array(z.object({\n role: z.string().describe(\"Role of the message sender. Typically 'user' or 'assistant'.\"),\n content: z.string().describe(\"Content of the message.\"),\n}).passthrough().describe(\"A message in a chat conversation.\")).describe(\"List of messages in the conversation. Must include at least one message with role 'user'.\"),\n temperature: z.number().default(0).describe(\"Controls randomness of model output: lower values make responses more deterministic, higher values increase creativity. Default is 0.0.\").optional(),\n json_response: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return a JSON response. Cannot be used with streaming. Default is false.\").optional(),\n assistant_host: z.string().describe(\"The host URL for the assistant endpoint (e.g., 'prod-1-data.ke.pinecone.io'). This is the data plane host for your assistant.\"),\n assistant_name: z.string().describe(\"The name of the assistant to chat with.\"),\n context_options: z.object({\n top_k: z.number().int().describe(\"Maximum number of context snippets to use. Default is 16. Maximum is 64.\").optional(),\n multimodal: z.boolean().describe(\"Whether to send image-related context snippets to the LLM. If false, only text context snippets are sent. Default is true.\").optional(),\n snippet_size: z.number().int().describe(\"Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.\").optional(),\n include_binary_content: z.boolean().describe(\"If image-related context snippets are sent to the LLM, determines whether they should include base64 image data. If false, only the image caption is sent. Only available when multimodal=true. Default is true.\").optional(),\n}).describe(\"Controls the context snippets sent to the LLM.\").optional(),\n include_highlights: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return highlights from the referenced documents that support its response. Default is false.\").optional(),\n}).describe(\"Request parameters for chatting with a Pinecone assistant.\");\nconst PineconeChatAssistant_UsageStatsSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used.\").nullable().optional(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable().optional(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the completion.\").nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the chat request.\");\nconst PineconeChatAssistant_ResponseMessageSchema = z.object({\n role: z.string().describe(\"Role of the message sender (typically 'assistant').\").nullable().optional(),\n content: z.string().describe(\"Content of the message.\").nullable().optional(),\n}).passthrough().describe(\"Message returned in the assistant's response.\");\nconst PineconeChatAssistant_FileMetadataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the file.\").nullable().optional(),\n name: z.string().describe(\"Name of the file.\").nullable().optional(),\n status: z.string().describe(\"Status of the file (e.g., 'Available').\").nullable().optional(),\n created_on: z.string().describe(\"Timestamp when the file was created.\").nullable().optional(),\n updated_on: z.string().describe(\"Timestamp when the file was last updated.\").nullable().optional(),\n}).passthrough().describe(\"Metadata for a file referenced in citations.\");\nconst PineconeChatAssistant_HighlightSchema = z.object({\n type: z.string().describe(\"Type of highlight (e.g., 'text').\").nullable().optional(),\n content: z.string().describe(\"Content of the highlight snippet.\").nullable().optional(),\n}).passthrough().describe(\"Highlight snippet from a referenced document.\");\nconst PineconeChatAssistant_ReferenceSchema = z.object({\n file: PineconeChatAssistant_FileMetadataSchema.nullable().optional(),\n pages: z.array(z.number().int()).describe(\"Page numbers where the reference appears.\").nullable().optional(),\n highlight: PineconeChatAssistant_HighlightSchema.nullable().optional(),\n}).passthrough().describe(\"A reference to a document or file that supports the assistant's response.\");\nconst PineconeChatAssistant_CitationSchema = z.object({\n position: z.number().int().describe(\"Position in the response where the citation applies.\").nullable().optional(),\n references: z.array(PineconeChatAssistant_ReferenceSchema).describe(\"List of references that support the citation.\").nullable().optional(),\n}).passthrough().describe(\"A citation with position and references.\");\nexport const PineconeChatAssistantOutput = z.object({\n id: z.string().describe(\"Unique identifier for the chat response.\").nullable().optional(),\n model: z.string().describe(\"The model used to generate the response.\").nullable().optional(),\n usage: PineconeChatAssistant_UsageStatsSchema.nullable().optional(),\n message: PineconeChatAssistant_ResponseMessageSchema.nullable().optional(),\n citations: z.array(PineconeChatAssistant_CitationSchema).describe(\"Citations with references to supporting documents.\").nullable().optional(),\n finish_reason: z.string().describe(\"Reason the response finished (e.g., 'stop').\").nullable().optional(),\n}).passthrough().describe(\"Response from chatting with a Pinecone assistant.\");\n\nexport const pineconeChatAssistant = action(\"PINECONE_CHAT_ASSISTANT\", {\n slug: \"pinecone-chat-assistant\",\n name: \"Chat with Assistant\",\n description: \"Tool to chat with a Pinecone assistant and get structured responses with citations. Use when you need to query an assistant that has access to your knowledge base and want to get back answers with document references and citations.\",\n input: PineconeChatAssistantInput,\n output: PineconeChatAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrI,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CAC1L,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACxL,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACxF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,SAAS,2FAA2F;CAClK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAChM,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CACrL,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACnK,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,C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odString>>;
|
|
6
|
-
filter: z.ZodOptional<z.
|
|
6
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
7
|
stream: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
8
|
messages: z.ZodArray<z.ZodObject<{
|
|
9
9
|
role: z.ZodString;
|
|
10
10
|
content: z.ZodString;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
12
|
temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
13
13
|
json_response: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
14
14
|
assistant_host: z.ZodString;
|
|
@@ -28,11 +28,11 @@ declare const PineconeChatAssistantOutput: z.ZodObject<{
|
|
|
28
28
|
total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
29
|
prompt_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
32
|
message: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
33
|
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
36
|
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
37
37
|
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
38
|
references: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -42,25 +42,26 @@ declare const PineconeChatAssistantOutput: z.ZodObject<{
|
|
|
42
42
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
created_on: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
updated_on: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
46
|
pages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
47
47
|
highlight: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
48
48
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
49
|
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
-
}, z.core.$
|
|
51
|
-
}, z.core.$
|
|
52
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>>;
|
|
51
|
+
}, z.core.$loose>>>>;
|
|
52
|
+
}, z.core.$loose>>>>;
|
|
53
53
|
finish_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>;
|
|
55
55
|
declare const pineconeChatAssistant: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
56
56
|
messages: {
|
|
57
|
+
[x: string]: unknown;
|
|
57
58
|
role: string;
|
|
58
59
|
content: string;
|
|
59
60
|
}[];
|
|
60
61
|
assistant_host: string;
|
|
61
62
|
assistant_name: string;
|
|
62
63
|
model?: string | undefined;
|
|
63
|
-
filter?: Record<string,
|
|
64
|
+
filter?: Record<string, unknown> | undefined;
|
|
64
65
|
stream?: boolean | undefined;
|
|
65
66
|
temperature?: number | undefined;
|
|
66
67
|
json_response?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-assistant.d.cts","names":[],"sources":["../../src/actions/chat-assistant.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA
|
|
1
|
+
{"version":3,"file":"chat-assistant.d.cts","names":[],"sources":["../../src/actions/chat-assistant.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;WAMhC,MAAA"}
|
|
@@ -3,12 +3,12 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/chat-assistant.d.ts
|
|
4
4
|
declare const PineconeChatAssistantInput: z.ZodObject<{
|
|
5
5
|
model: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
6
|
-
filter: z.ZodOptional<z.
|
|
6
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
7
|
stream: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
8
|
messages: z.ZodArray<z.ZodObject<{
|
|
9
9
|
role: z.ZodString;
|
|
10
10
|
content: z.ZodString;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
12
|
temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
13
13
|
json_response: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
14
14
|
assistant_host: z.ZodString;
|
|
@@ -28,11 +28,11 @@ declare const PineconeChatAssistantOutput: z.ZodObject<{
|
|
|
28
28
|
total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
29
|
prompt_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
32
|
message: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
33
|
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
36
|
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
37
37
|
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
38
|
references: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -42,25 +42,26 @@ declare const PineconeChatAssistantOutput: z.ZodObject<{
|
|
|
42
42
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
created_on: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
updated_on: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
46
|
pages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
47
47
|
highlight: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
48
48
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
49
|
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
-
}, z.core.$
|
|
51
|
-
}, z.core.$
|
|
52
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>>;
|
|
51
|
+
}, z.core.$loose>>>>;
|
|
52
|
+
}, z.core.$loose>>>>;
|
|
53
53
|
finish_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>;
|
|
55
55
|
declare const pineconeChatAssistant: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
56
56
|
messages: {
|
|
57
|
+
[x: string]: unknown;
|
|
57
58
|
role: string;
|
|
58
59
|
content: string;
|
|
59
60
|
}[];
|
|
60
61
|
assistant_host: string;
|
|
61
62
|
assistant_name: string;
|
|
62
63
|
model?: string | undefined;
|
|
63
|
-
filter?: Record<string,
|
|
64
|
+
filter?: Record<string, unknown> | undefined;
|
|
64
65
|
stream?: boolean | undefined;
|
|
65
66
|
temperature?: number | undefined;
|
|
66
67
|
json_response?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-assistant.d.mts","names":[],"sources":["../../src/actions/chat-assistant.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA
|
|
1
|
+
{"version":3,"file":"chat-assistant.d.mts","names":[],"sources":["../../src/actions/chat-assistant.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;WAMhC,MAAA"}
|
|
@@ -3,12 +3,12 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/chat-assistant.ts
|
|
4
4
|
const PineconeChatAssistantInput = z.object({
|
|
5
5
|
model: z.string().default("gpt-4o").describe("The large language model to use for answer generation. Default is 'gpt-4o'.").optional(),
|
|
6
|
-
filter: z.
|
|
6
|
+
filter: z.record(z.string(), z.unknown()).describe("Optionally filter which documents can be retrieved using metadata fields. Example: {\"genre\": {\"$ne\": \"documentary\"}}").optional(),
|
|
7
7
|
stream: z.boolean().default(false).describe("If false, the assistant returns a single JSON response. If true, the assistant returns a stream of responses. Default is false.").optional(),
|
|
8
8
|
messages: z.array(z.object({
|
|
9
9
|
role: z.string().describe("Role of the message sender. Typically 'user' or 'assistant'."),
|
|
10
10
|
content: z.string().describe("Content of the message.")
|
|
11
|
-
}).describe("A message in a chat conversation.")).describe("List of messages in the conversation. Must include at least one message with role 'user'."),
|
|
11
|
+
}).passthrough().describe("A message in a chat conversation.")).describe("List of messages in the conversation. Must include at least one message with role 'user'."),
|
|
12
12
|
temperature: z.number().default(0).describe("Controls randomness of model output: lower values make responses more deterministic, higher values increase creativity. Default is 0.0.").optional(),
|
|
13
13
|
json_response: z.boolean().default(false).describe("If true, the assistant will be instructed to return a JSON response. Cannot be used with streaming. Default is false.").optional(),
|
|
14
14
|
assistant_host: z.string().describe("The host URL for the assistant endpoint (e.g., 'prod-1-data.ke.pinecone.io'). This is the data plane host for your assistant."),
|
|
@@ -25,31 +25,31 @@ const PineconeChatAssistant_UsageStatsSchema = z.object({
|
|
|
25
25
|
total_tokens: z.number().int().describe("Total number of tokens used.").nullable().optional(),
|
|
26
26
|
prompt_tokens: z.number().int().describe("Number of tokens in the prompt.").nullable().optional(),
|
|
27
27
|
completion_tokens: z.number().int().describe("Number of tokens in the completion.").nullable().optional()
|
|
28
|
-
}).describe("Usage statistics for the chat request.");
|
|
28
|
+
}).passthrough().describe("Usage statistics for the chat request.");
|
|
29
29
|
const PineconeChatAssistant_ResponseMessageSchema = z.object({
|
|
30
30
|
role: z.string().describe("Role of the message sender (typically 'assistant').").nullable().optional(),
|
|
31
31
|
content: z.string().describe("Content of the message.").nullable().optional()
|
|
32
|
-
}).describe("Message returned in the assistant's response.");
|
|
32
|
+
}).passthrough().describe("Message returned in the assistant's response.");
|
|
33
33
|
const PineconeChatAssistant_FileMetadataSchema = z.object({
|
|
34
34
|
id: z.string().describe("Unique identifier for the file.").nullable().optional(),
|
|
35
35
|
name: z.string().describe("Name of the file.").nullable().optional(),
|
|
36
36
|
status: z.string().describe("Status of the file (e.g., 'Available').").nullable().optional(),
|
|
37
37
|
created_on: z.string().describe("Timestamp when the file was created.").nullable().optional(),
|
|
38
38
|
updated_on: z.string().describe("Timestamp when the file was last updated.").nullable().optional()
|
|
39
|
-
}).describe("Metadata for a file referenced in citations.");
|
|
39
|
+
}).passthrough().describe("Metadata for a file referenced in citations.");
|
|
40
40
|
const PineconeChatAssistant_HighlightSchema = z.object({
|
|
41
41
|
type: z.string().describe("Type of highlight (e.g., 'text').").nullable().optional(),
|
|
42
42
|
content: z.string().describe("Content of the highlight snippet.").nullable().optional()
|
|
43
|
-
}).describe("Highlight snippet from a referenced document.");
|
|
43
|
+
}).passthrough().describe("Highlight snippet from a referenced document.");
|
|
44
44
|
const PineconeChatAssistant_ReferenceSchema = z.object({
|
|
45
45
|
file: PineconeChatAssistant_FileMetadataSchema.nullable().optional(),
|
|
46
46
|
pages: z.array(z.number().int()).describe("Page numbers where the reference appears.").nullable().optional(),
|
|
47
47
|
highlight: PineconeChatAssistant_HighlightSchema.nullable().optional()
|
|
48
|
-
}).describe("A reference to a document or file that supports the assistant's response.");
|
|
48
|
+
}).passthrough().describe("A reference to a document or file that supports the assistant's response.");
|
|
49
49
|
const PineconeChatAssistant_CitationSchema = z.object({
|
|
50
50
|
position: z.number().int().describe("Position in the response where the citation applies.").nullable().optional(),
|
|
51
51
|
references: z.array(PineconeChatAssistant_ReferenceSchema).describe("List of references that support the citation.").nullable().optional()
|
|
52
|
-
}).describe("A citation with position and references.");
|
|
52
|
+
}).passthrough().describe("A citation with position and references.");
|
|
53
53
|
const pineconeChatAssistant = action("PINECONE_CHAT_ASSISTANT", {
|
|
54
54
|
slug: "pinecone-chat-assistant",
|
|
55
55
|
name: "Chat with Assistant",
|
|
@@ -62,7 +62,7 @@ const pineconeChatAssistant = action("PINECONE_CHAT_ASSISTANT", {
|
|
|
62
62
|
message: PineconeChatAssistant_ResponseMessageSchema.nullable().optional(),
|
|
63
63
|
citations: z.array(PineconeChatAssistant_CitationSchema).describe("Citations with references to supporting documents.").nullable().optional(),
|
|
64
64
|
finish_reason: z.string().describe("Reason the response finished (e.g., 'stop').").nullable().optional()
|
|
65
|
-
}).describe("Response from chatting with a Pinecone assistant.")
|
|
65
|
+
}).passthrough().describe("Response from chatting with a Pinecone assistant.")
|
|
66
66
|
});
|
|
67
67
|
//#endregion
|
|
68
68
|
export { pineconeChatAssistant };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-assistant.mjs","names":[],"sources":["../../src/actions/chat-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeChatAssistantInput = z.object({\n model: z.string().default(\"gpt-4o\").describe(\"The large language model to use for answer generation. Default is 'gpt-4o'.\").optional(),\n filter: z.object({}).describe(\"Optionally filter which documents can be retrieved using metadata fields. Example: {\\\"genre\\\": {\\\"$ne\\\": \\\"documentary\\\"}}\").optional(),\n stream: z.boolean().default(false).describe(\"If false, the assistant returns a single JSON response. If true, the assistant returns a stream of responses. Default is false.\").optional(),\n messages: z.array(z.object({\n role: z.string().describe(\"Role of the message sender. Typically 'user' or 'assistant'.\"),\n content: z.string().describe(\"Content of the message.\"),\n}).describe(\"A message in a chat conversation.\")).describe(\"List of messages in the conversation. Must include at least one message with role 'user'.\"),\n temperature: z.number().default(0).describe(\"Controls randomness of model output: lower values make responses more deterministic, higher values increase creativity. Default is 0.0.\").optional(),\n json_response: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return a JSON response. Cannot be used with streaming. Default is false.\").optional(),\n assistant_host: z.string().describe(\"The host URL for the assistant endpoint (e.g., 'prod-1-data.ke.pinecone.io'). This is the data plane host for your assistant.\"),\n assistant_name: z.string().describe(\"The name of the assistant to chat with.\"),\n context_options: z.object({\n top_k: z.number().int().describe(\"Maximum number of context snippets to use. Default is 16. Maximum is 64.\").optional(),\n multimodal: z.boolean().describe(\"Whether to send image-related context snippets to the LLM. If false, only text context snippets are sent. Default is true.\").optional(),\n snippet_size: z.number().int().describe(\"Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.\").optional(),\n include_binary_content: z.boolean().describe(\"If image-related context snippets are sent to the LLM, determines whether they should include base64 image data. If false, only the image caption is sent. Only available when multimodal=true. Default is true.\").optional(),\n}).describe(\"Controls the context snippets sent to the LLM.\").optional(),\n include_highlights: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return highlights from the referenced documents that support its response. Default is false.\").optional(),\n}).describe(\"Request parameters for chatting with a Pinecone assistant.\");\nconst PineconeChatAssistant_UsageStatsSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used.\").nullable().optional(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable().optional(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the completion.\").nullable().optional(),\n}).describe(\"Usage statistics for the chat request.\");\nconst PineconeChatAssistant_ResponseMessageSchema = z.object({\n role: z.string().describe(\"Role of the message sender (typically 'assistant').\").nullable().optional(),\n content: z.string().describe(\"Content of the message.\").nullable().optional(),\n}).describe(\"Message returned in the assistant's response.\");\nconst PineconeChatAssistant_FileMetadataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the file.\").nullable().optional(),\n name: z.string().describe(\"Name of the file.\").nullable().optional(),\n status: z.string().describe(\"Status of the file (e.g., 'Available').\").nullable().optional(),\n created_on: z.string().describe(\"Timestamp when the file was created.\").nullable().optional(),\n updated_on: z.string().describe(\"Timestamp when the file was last updated.\").nullable().optional(),\n}).describe(\"Metadata for a file referenced in citations.\");\nconst PineconeChatAssistant_HighlightSchema = z.object({\n type: z.string().describe(\"Type of highlight (e.g., 'text').\").nullable().optional(),\n content: z.string().describe(\"Content of the highlight snippet.\").nullable().optional(),\n}).describe(\"Highlight snippet from a referenced document.\");\nconst PineconeChatAssistant_ReferenceSchema = z.object({\n file: PineconeChatAssistant_FileMetadataSchema.nullable().optional(),\n pages: z.array(z.number().int()).describe(\"Page numbers where the reference appears.\").nullable().optional(),\n highlight: PineconeChatAssistant_HighlightSchema.nullable().optional(),\n}).describe(\"A reference to a document or file that supports the assistant's response.\");\nconst PineconeChatAssistant_CitationSchema = z.object({\n position: z.number().int().describe(\"Position in the response where the citation applies.\").nullable().optional(),\n references: z.array(PineconeChatAssistant_ReferenceSchema).describe(\"List of references that support the citation.\").nullable().optional(),\n}).describe(\"A citation with position and references.\");\nexport const PineconeChatAssistantOutput = z.object({\n id: z.string().describe(\"Unique identifier for the chat response.\").nullable().optional(),\n model: z.string().describe(\"The model used to generate the response.\").nullable().optional(),\n usage: PineconeChatAssistant_UsageStatsSchema.nullable().optional(),\n message: PineconeChatAssistant_ResponseMessageSchema.nullable().optional(),\n citations: z.array(PineconeChatAssistant_CitationSchema).describe(\"Citations with references to supporting documents.\").nullable().optional(),\n finish_reason: z.string().describe(\"Reason the response finished (e.g., 'stop').\").nullable().optional(),\n}).describe(\"Response from chatting with a Pinecone assistant.\");\n\nexport const pineconeChatAssistant = action(\"PINECONE_CHAT_ASSISTANT\", {\n slug: \"pinecone-chat-assistant\",\n name: \"Chat with Assistant\",\n description: \"Tool to chat with a Pinecone assistant and get structured responses with citations. Use when you need to query an assistant that has access to your knowledge base and want to get back answers with document references and citations.\",\n input: PineconeChatAssistantInput,\n output: PineconeChatAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACrK,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACxL,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACxF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACxD,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,SAAS,2FAA2F;CACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAChM,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uHAAuH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AC,CAAC,SAAS;CAChH,YAAY,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAUtD,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;EAClE,SAAS,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACzE,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"chat-assistant.mjs","names":[],"sources":["../../src/actions/chat-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeChatAssistantInput = z.object({\n model: z.string().default(\"gpt-4o\").describe(\"The large language model to use for answer generation. Default is 'gpt-4o'.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Optionally filter which documents can be retrieved using metadata fields. Example: {\\\"genre\\\": {\\\"$ne\\\": \\\"documentary\\\"}}\").optional(),\n stream: z.boolean().default(false).describe(\"If false, the assistant returns a single JSON response. If true, the assistant returns a stream of responses. Default is false.\").optional(),\n messages: z.array(z.object({\n role: z.string().describe(\"Role of the message sender. Typically 'user' or 'assistant'.\"),\n content: z.string().describe(\"Content of the message.\"),\n}).passthrough().describe(\"A message in a chat conversation.\")).describe(\"List of messages in the conversation. Must include at least one message with role 'user'.\"),\n temperature: z.number().default(0).describe(\"Controls randomness of model output: lower values make responses more deterministic, higher values increase creativity. Default is 0.0.\").optional(),\n json_response: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return a JSON response. Cannot be used with streaming. Default is false.\").optional(),\n assistant_host: z.string().describe(\"The host URL for the assistant endpoint (e.g., 'prod-1-data.ke.pinecone.io'). This is the data plane host for your assistant.\"),\n assistant_name: z.string().describe(\"The name of the assistant to chat with.\"),\n context_options: z.object({\n top_k: z.number().int().describe(\"Maximum number of context snippets to use. Default is 16. Maximum is 64.\").optional(),\n multimodal: z.boolean().describe(\"Whether to send image-related context snippets to the LLM. If false, only text context snippets are sent. Default is true.\").optional(),\n snippet_size: z.number().int().describe(\"Maximum context snippet size in tokens. Default is 2048. Minimum is 512. Maximum is 8192.\").optional(),\n include_binary_content: z.boolean().describe(\"If image-related context snippets are sent to the LLM, determines whether they should include base64 image data. If false, only the image caption is sent. Only available when multimodal=true. Default is true.\").optional(),\n}).describe(\"Controls the context snippets sent to the LLM.\").optional(),\n include_highlights: z.boolean().default(false).describe(\"If true, the assistant will be instructed to return highlights from the referenced documents that support its response. Default is false.\").optional(),\n}).describe(\"Request parameters for chatting with a Pinecone assistant.\");\nconst PineconeChatAssistant_UsageStatsSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used.\").nullable().optional(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable().optional(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the completion.\").nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the chat request.\");\nconst PineconeChatAssistant_ResponseMessageSchema = z.object({\n role: z.string().describe(\"Role of the message sender (typically 'assistant').\").nullable().optional(),\n content: z.string().describe(\"Content of the message.\").nullable().optional(),\n}).passthrough().describe(\"Message returned in the assistant's response.\");\nconst PineconeChatAssistant_FileMetadataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the file.\").nullable().optional(),\n name: z.string().describe(\"Name of the file.\").nullable().optional(),\n status: z.string().describe(\"Status of the file (e.g., 'Available').\").nullable().optional(),\n created_on: z.string().describe(\"Timestamp when the file was created.\").nullable().optional(),\n updated_on: z.string().describe(\"Timestamp when the file was last updated.\").nullable().optional(),\n}).passthrough().describe(\"Metadata for a file referenced in citations.\");\nconst PineconeChatAssistant_HighlightSchema = z.object({\n type: z.string().describe(\"Type of highlight (e.g., 'text').\").nullable().optional(),\n content: z.string().describe(\"Content of the highlight snippet.\").nullable().optional(),\n}).passthrough().describe(\"Highlight snippet from a referenced document.\");\nconst PineconeChatAssistant_ReferenceSchema = z.object({\n file: PineconeChatAssistant_FileMetadataSchema.nullable().optional(),\n pages: z.array(z.number().int()).describe(\"Page numbers where the reference appears.\").nullable().optional(),\n highlight: PineconeChatAssistant_HighlightSchema.nullable().optional(),\n}).passthrough().describe(\"A reference to a document or file that supports the assistant's response.\");\nconst PineconeChatAssistant_CitationSchema = z.object({\n position: z.number().int().describe(\"Position in the response where the citation applies.\").nullable().optional(),\n references: z.array(PineconeChatAssistant_ReferenceSchema).describe(\"List of references that support the citation.\").nullable().optional(),\n}).passthrough().describe(\"A citation with position and references.\");\nexport const PineconeChatAssistantOutput = z.object({\n id: z.string().describe(\"Unique identifier for the chat response.\").nullable().optional(),\n model: z.string().describe(\"The model used to generate the response.\").nullable().optional(),\n usage: PineconeChatAssistant_UsageStatsSchema.nullable().optional(),\n message: PineconeChatAssistant_ResponseMessageSchema.nullable().optional(),\n citations: z.array(PineconeChatAssistant_CitationSchema).describe(\"Citations with references to supporting documents.\").nullable().optional(),\n finish_reason: z.string().describe(\"Reason the response finished (e.g., 'stop').\").nullable().optional(),\n}).passthrough().describe(\"Response from chatting with a Pinecone assistant.\");\n\nexport const pineconeChatAssistant = action(\"PINECONE_CHAT_ASSISTANT\", {\n slug: \"pinecone-chat-assistant\",\n name: \"Chat with Assistant\",\n description: \"Tool to chat with a Pinecone assistant and get structured responses with citations. Use when you need to query an assistant that has access to your knowledge base and want to get back answers with document references and citations.\",\n input: PineconeChatAssistantInput,\n output: PineconeChatAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrI,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CAC1L,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACxL,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACxF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,SAAS,2FAA2F;CAClK,aAAa,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAChM,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CACrL,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACnK,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAC7E,iBAAiB,EAAE,OAAO;EAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACtH,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;EACxK,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,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AAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;EAClE,SAAS,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACzE,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -3,12 +3,12 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/chat-completion-assistant.ts
|
|
4
4
|
const PineconeChatCompletionAssistantInput = zod.z.object({
|
|
5
5
|
model: zod.z.string().default("gpt-4o").describe("The large language model to use for answer generation.").optional(),
|
|
6
|
-
filter: zod.z.
|
|
6
|
+
filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optionally filter which documents can be retrieved using metadata fields.").optional(),
|
|
7
7
|
stream: zod.z.boolean().default(false).describe("If false, returns a single JSON response. If true, returns a stream of responses.").optional(),
|
|
8
8
|
messages: zod.z.array(zod.z.object({
|
|
9
9
|
role: zod.z.string().describe("The role of the message sender. Typically 'user', 'assistant', or 'system'."),
|
|
10
10
|
content: zod.z.string().describe("The content of the message.")
|
|
11
|
-
}).describe("A single message in the chat conversation.")).describe("The list of messages in the conversation, ordered from oldest to newest."),
|
|
11
|
+
}).passthrough().describe("A single message in the chat conversation.")).describe("The list of messages in the conversation, ordered from oldest to newest."),
|
|
12
12
|
temperature: zod.z.number().default(0).describe("Controls the randomness of the model's output: lower values make responses more deterministic, while higher values increase creativity. Range: 0.0-2.0.").optional(),
|
|
13
13
|
assistant_host: zod.z.string().describe("The host URL of the assistant. Get this from the list assistants operation."),
|
|
14
14
|
assistant_name: zod.z.string().describe("The name of the assistant to chat with.")
|
|
@@ -17,22 +17,22 @@ const PineconeChatCompletionAssistant_ChatUsageSchema = zod.z.object({
|
|
|
17
17
|
total_tokens: zod.z.number().int().describe("Total number of tokens used.").nullable().optional(),
|
|
18
18
|
prompt_tokens: zod.z.number().int().describe("Number of tokens in the prompt.").nullable().optional(),
|
|
19
19
|
completion_tokens: zod.z.number().int().describe("Number of tokens in the completion.").nullable().optional()
|
|
20
|
-
}).describe("Usage statistics for the chat completion request.");
|
|
20
|
+
}).passthrough().describe("Usage statistics for the chat completion request.");
|
|
21
21
|
const PineconeChatCompletionAssistant_ChatMessageResponseSchema = zod.z.object({
|
|
22
22
|
role: zod.z.string().describe("The role of the message sender.").nullable(),
|
|
23
23
|
content: zod.z.string().describe("The content of the message.").nullable()
|
|
24
|
-
}).describe("A message in the chat completion response.");
|
|
24
|
+
}).passthrough().describe("A message in the chat completion response.");
|
|
25
25
|
const PineconeChatCompletionAssistant_ChatChoiceSchema = zod.z.object({
|
|
26
26
|
index: zod.z.number().int().describe("The index of this choice in the array of choices.").nullable(),
|
|
27
27
|
message: PineconeChatCompletionAssistant_ChatMessageResponseSchema.nullable(),
|
|
28
28
|
finish_reason: zod.z.string().describe("The reason the model stopped generating tokens.").nullable().optional()
|
|
29
|
-
}).describe("A single choice in the chat completion response.");
|
|
29
|
+
}).passthrough().describe("A single choice in the chat completion response.");
|
|
30
30
|
const PineconeChatCompletionAssistantOutput = zod.z.object({
|
|
31
31
|
id: zod.z.string().describe("Unique identifier for the chat completion.").nullable().optional(),
|
|
32
32
|
model: zod.z.string().describe("The model used for the chat completion.").nullable().optional(),
|
|
33
33
|
usage: PineconeChatCompletionAssistant_ChatUsageSchema.nullable().optional(),
|
|
34
34
|
choices: zod.z.array(PineconeChatCompletionAssistant_ChatChoiceSchema).describe("Array of chat completion choices.").nullable().optional()
|
|
35
|
-
}).describe("Response from the chat completion assistant.");
|
|
35
|
+
}).passthrough().describe("Response from the chat completion assistant.");
|
|
36
36
|
const pineconeChatCompletionAssistant = require_action.action("PINECONE_CHAT_COMPLETION_ASSISTANT", {
|
|
37
37
|
slug: "pinecone-chat-completion-assistant",
|
|
38
38
|
name: "Chat with Assistant",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-completion-assistant.cjs","names":["z","action"],"sources":["../../src/actions/chat-completion-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeChatCompletionAssistantInput = z.object({\n model: z.string().default(\"gpt-4o\").describe(\"The large language model to use for answer generation.\").optional(),\n filter: z.
|
|
1
|
+
{"version":3,"file":"chat-completion-assistant.cjs","names":["z","action"],"sources":["../../src/actions/chat-completion-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeChatCompletionAssistantInput = z.object({\n model: z.string().default(\"gpt-4o\").describe(\"The large language model to use for answer generation.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Optionally filter which documents can be retrieved using metadata fields.\").optional(),\n stream: z.boolean().default(false).describe(\"If false, returns a single JSON response. If true, returns a stream of responses.\").optional(),\n messages: z.array(z.object({\n role: z.string().describe(\"The role of the message sender. Typically 'user', 'assistant', or 'system'.\"),\n content: z.string().describe(\"The content of the message.\"),\n}).passthrough().describe(\"A single message in the chat conversation.\")).describe(\"The list of messages in the conversation, ordered from oldest to newest.\"),\n temperature: z.number().default(0).describe(\"Controls the randomness of the model's output: lower values make responses more deterministic, while higher values increase creativity. Range: 0.0-2.0.\").optional(),\n assistant_host: z.string().describe(\"The host URL of the assistant. Get this from the list assistants operation.\"),\n assistant_name: z.string().describe(\"The name of the assistant to chat with.\"),\n}).describe(\"Request parameters for chatting with a Pinecone assistant.\");\nconst PineconeChatCompletionAssistant_ChatUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used.\").nullable().optional(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable().optional(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the completion.\").nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the chat completion request.\");\nconst PineconeChatCompletionAssistant_ChatMessageResponseSchema = z.object({\n role: z.string().describe(\"The role of the message sender.\").nullable(),\n content: z.string().describe(\"The content of the message.\").nullable(),\n}).passthrough().describe(\"A message in the chat completion response.\");\nconst PineconeChatCompletionAssistant_ChatChoiceSchema = z.object({\n index: z.number().int().describe(\"The index of this choice in the array of choices.\").nullable(),\n message: PineconeChatCompletionAssistant_ChatMessageResponseSchema.nullable(),\n finish_reason: z.string().describe(\"The reason the model stopped generating tokens.\").nullable().optional(),\n}).passthrough().describe(\"A single choice in the chat completion response.\");\nexport const PineconeChatCompletionAssistantOutput = z.object({\n id: z.string().describe(\"Unique identifier for the chat completion.\").nullable().optional(),\n model: z.string().describe(\"The model used for the chat completion.\").nullable().optional(),\n usage: PineconeChatCompletionAssistant_ChatUsageSchema.nullable().optional(),\n choices: z.array(PineconeChatCompletionAssistant_ChatChoiceSchema).describe(\"Array of chat completion choices.\").nullable().optional(),\n}).passthrough().describe(\"Response from the chat completion assistant.\");\n\nexport const pineconeChatCompletionAssistant = action(\"PINECONE_CHAT_COMPLETION_ASSISTANT\", {\n slug: \"pinecone-chat-completion-assistant\",\n name: \"Chat with Assistant\",\n description: \"Tool to chat with a Pinecone assistant through an OpenAI-compatible interface. Use when you need to interact with a Pinecone assistant that has access to indexed documents and can answer questions based on retrieved context.\",\n input: PineconeChatCompletionAssistantInput,\n output: PineconeChatCompletionAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OA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CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC/F,SAAS,0DAA0D,SAAS;CAC5E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAO,gDAAgD,SAAS,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -3,12 +3,12 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/chat-completion-assistant.d.ts
|
|
4
4
|
declare const PineconeChatCompletionAssistantInput: z.ZodObject<{
|
|
5
5
|
model: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
6
|
-
filter: z.ZodOptional<z.
|
|
6
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
7
|
stream: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
8
|
messages: z.ZodArray<z.ZodObject<{
|
|
9
9
|
role: z.ZodString;
|
|
10
10
|
content: z.ZodString;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
12
|
temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
13
13
|
assistant_host: z.ZodString;
|
|
14
14
|
assistant_name: z.ZodString;
|
|
@@ -20,25 +20,26 @@ declare const PineconeChatCompletionAssistantOutput: z.ZodObject<{
|
|
|
20
20
|
total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
21
|
prompt_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
22
|
completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>>;
|
|
24
24
|
choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
25
25
|
index: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
message: z.ZodNullable<z.ZodObject<{
|
|
27
27
|
role: z.ZodNullable<z.ZodString>;
|
|
28
28
|
content: z.ZodNullable<z.ZodString>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
finish_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
}, z.core.$
|
|
32
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
33
|
declare const pineconeChatCompletionAssistant: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
34
|
messages: {
|
|
35
|
+
[x: string]: unknown;
|
|
35
36
|
role: string;
|
|
36
37
|
content: string;
|
|
37
38
|
}[];
|
|
38
39
|
assistant_host: string;
|
|
39
40
|
assistant_name: string;
|
|
40
41
|
model?: string | undefined;
|
|
41
|
-
filter?: Record<string,
|
|
42
|
+
filter?: Record<string, unknown> | undefined;
|
|
42
43
|
stream?: boolean | undefined;
|
|
43
44
|
temperature?: number | undefined;
|
|
44
45
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-completion-assistant.d.cts","names":[],"sources":["../../src/actions/chat-completion-assistant.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;cA0BpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAOrC,+BAAA,gCAA+B,wBAAA
|
|
1
|
+
{"version":3,"file":"chat-completion-assistant.d.cts","names":[],"sources":["../../src/actions/chat-completion-assistant.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;cA0BpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAOrC,+BAAA,gCAA+B,wBAAA;;;;;;;;;WAM1C,MAAA"}
|