@keystrokehq/ragie 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-document-from-url.cjs +34 -0
- package/dist/actions/create-document-from-url.cjs.map +1 -0
- package/dist/actions/create-document-from-url.d.cts +9 -0
- package/dist/actions/create-document-from-url.d.cts.map +1 -0
- package/dist/actions/create-document-from-url.d.mts +9 -0
- package/dist/actions/create-document-from-url.d.mts.map +1 -0
- package/dist/actions/create-document-from-url.mjs +31 -0
- package/dist/actions/create-document-from-url.mjs.map +1 -0
- package/dist/actions/create-document-raw.cjs +33 -0
- package/dist/actions/create-document-raw.cjs.map +1 -0
- package/dist/actions/create-document-raw.d.cts +9 -0
- package/dist/actions/create-document-raw.d.cts.map +1 -0
- package/dist/actions/create-document-raw.d.mts +9 -0
- package/dist/actions/create-document-raw.d.mts.map +1 -0
- package/dist/actions/create-document-raw.mjs +30 -0
- package/dist/actions/create-document-raw.mjs.map +1 -0
- package/dist/actions/create-document.cjs +41 -0
- package/dist/actions/create-document.cjs.map +1 -0
- package/dist/actions/create-document.d.cts +9 -0
- package/dist/actions/create-document.d.cts.map +1 -0
- package/dist/actions/create-document.d.mts +9 -0
- package/dist/actions/create-document.d.mts.map +1 -0
- package/dist/actions/create-document.mjs +38 -0
- package/dist/actions/create-document.mjs.map +1 -0
- package/dist/actions/create-instruction.cjs +35 -0
- package/dist/actions/create-instruction.cjs.map +1 -0
- package/dist/actions/create-instruction.d.cts +9 -0
- package/dist/actions/create-instruction.d.cts.map +1 -0
- package/dist/actions/create-instruction.d.mts +9 -0
- package/dist/actions/create-instruction.d.mts.map +1 -0
- package/dist/actions/create-instruction.mjs +32 -0
- package/dist/actions/create-instruction.mjs.map +1 -0
- package/dist/actions/create-oauth-redirect-url.cjs +26 -0
- package/dist/actions/create-oauth-redirect-url.cjs.map +1 -0
- package/dist/actions/create-oauth-redirect-url.d.cts +9 -0
- package/dist/actions/create-oauth-redirect-url.d.cts.map +1 -0
- package/dist/actions/create-oauth-redirect-url.d.mts +9 -0
- package/dist/actions/create-oauth-redirect-url.d.mts.map +1 -0
- package/dist/actions/create-oauth-redirect-url.mjs +23 -0
- package/dist/actions/create-oauth-redirect-url.mjs.map +1 -0
- package/dist/actions/create-partition-partitions-post.cjs +68 -0
- package/dist/actions/create-partition-partitions-post.cjs.map +1 -0
- package/dist/actions/create-partition-partitions-post.d.cts +9 -0
- package/dist/actions/create-partition-partitions-post.d.cts.map +1 -0
- package/dist/actions/create-partition-partitions-post.d.mts +9 -0
- package/dist/actions/create-partition-partitions-post.d.mts.map +1 -0
- package/dist/actions/create-partition-partitions-post.mjs +67 -0
- package/dist/actions/create-partition-partitions-post.mjs.map +1 -0
- package/dist/actions/delete-document.cjs +20 -0
- package/dist/actions/delete-document.cjs.map +1 -0
- package/dist/actions/delete-document.d.cts +9 -0
- package/dist/actions/delete-document.d.cts.map +1 -0
- package/dist/actions/delete-document.d.mts +9 -0
- package/dist/actions/delete-document.d.mts.map +1 -0
- package/dist/actions/delete-document.mjs +17 -0
- package/dist/actions/delete-document.mjs.map +1 -0
- package/dist/actions/delete-instruction.cjs +16 -0
- package/dist/actions/delete-instruction.cjs.map +1 -0
- package/dist/actions/delete-instruction.d.cts +9 -0
- package/dist/actions/delete-instruction.d.cts.map +1 -0
- package/dist/actions/delete-instruction.d.mts +9 -0
- package/dist/actions/delete-instruction.d.mts.map +1 -0
- package/dist/actions/delete-instruction.mjs +13 -0
- package/dist/actions/delete-instruction.mjs.map +1 -0
- package/dist/actions/delete-partition.cjs +19 -0
- package/dist/actions/delete-partition.cjs.map +1 -0
- package/dist/actions/delete-partition.d.cts +9 -0
- package/dist/actions/delete-partition.d.cts.map +1 -0
- package/dist/actions/delete-partition.d.mts +9 -0
- package/dist/actions/delete-partition.d.mts.map +1 -0
- package/dist/actions/delete-partition.mjs +16 -0
- package/dist/actions/delete-partition.mjs.map +1 -0
- package/dist/actions/get-document-chunk-content.cjs +37 -0
- package/dist/actions/get-document-chunk-content.cjs.map +1 -0
- package/dist/actions/get-document-chunk-content.d.cts +9 -0
- package/dist/actions/get-document-chunk-content.d.cts.map +1 -0
- package/dist/actions/get-document-chunk-content.d.mts +9 -0
- package/dist/actions/get-document-chunk-content.d.mts.map +1 -0
- package/dist/actions/get-document-chunk-content.mjs +34 -0
- package/dist/actions/get-document-chunk-content.mjs.map +1 -0
- package/dist/actions/get-document-chunk.cjs +29 -0
- package/dist/actions/get-document-chunk.cjs.map +1 -0
- package/dist/actions/get-document-chunk.d.cts +9 -0
- package/dist/actions/get-document-chunk.d.cts.map +1 -0
- package/dist/actions/get-document-chunk.d.mts +9 -0
- package/dist/actions/get-document-chunk.d.mts.map +1 -0
- package/dist/actions/get-document-chunk.mjs +28 -0
- package/dist/actions/get-document-chunk.mjs.map +1 -0
- package/dist/actions/get-document-chunks.cjs +37 -0
- package/dist/actions/get-document-chunks.cjs.map +1 -0
- package/dist/actions/get-document-chunks.d.cts +9 -0
- package/dist/actions/get-document-chunks.d.cts.map +1 -0
- package/dist/actions/get-document-chunks.d.mts +9 -0
- package/dist/actions/get-document-chunks.d.mts.map +1 -0
- package/dist/actions/get-document-chunks.mjs +36 -0
- package/dist/actions/get-document-chunks.mjs.map +1 -0
- package/dist/actions/get-document-content.cjs +34 -0
- package/dist/actions/get-document-content.cjs.map +1 -0
- package/dist/actions/get-document-content.d.cts +9 -0
- package/dist/actions/get-document-content.d.cts.map +1 -0
- package/dist/actions/get-document-content.d.mts +9 -0
- package/dist/actions/get-document-content.d.mts.map +1 -0
- package/dist/actions/get-document-content.mjs +31 -0
- package/dist/actions/get-document-content.mjs.map +1 -0
- package/dist/actions/get-document-summary.cjs +22 -0
- package/dist/actions/get-document-summary.cjs.map +1 -0
- package/dist/actions/get-document-summary.d.cts +9 -0
- package/dist/actions/get-document-summary.d.cts.map +1 -0
- package/dist/actions/get-document-summary.d.mts +9 -0
- package/dist/actions/get-document-summary.d.mts.map +1 -0
- package/dist/actions/get-document-summary.mjs +19 -0
- package/dist/actions/get-document-summary.mjs.map +1 -0
- package/dist/actions/get-document.cjs +31 -0
- package/dist/actions/get-document.cjs.map +1 -0
- package/dist/actions/get-document.d.cts +9 -0
- package/dist/actions/get-document.d.cts.map +1 -0
- package/dist/actions/get-document.d.mts +9 -0
- package/dist/actions/get-document.d.mts.map +1 -0
- package/dist/actions/get-document.mjs +28 -0
- package/dist/actions/get-document.mjs.map +1 -0
- package/dist/actions/get-partition.cjs +54 -0
- package/dist/actions/get-partition.cjs.map +1 -0
- package/dist/actions/get-partition.d.cts +9 -0
- package/dist/actions/get-partition.d.cts.map +1 -0
- package/dist/actions/get-partition.d.mts +9 -0
- package/dist/actions/get-partition.d.mts.map +1 -0
- package/dist/actions/get-partition.mjs +53 -0
- package/dist/actions/get-partition.mjs.map +1 -0
- package/dist/actions/get-response.cjs +79 -0
- package/dist/actions/get-response.cjs.map +1 -0
- package/dist/actions/get-response.d.cts +9 -0
- package/dist/actions/get-response.d.cts.map +1 -0
- package/dist/actions/get-response.d.mts +9 -0
- package/dist/actions/get-response.d.mts.map +1 -0
- package/dist/actions/get-response.mjs +78 -0
- package/dist/actions/get-response.mjs.map +1 -0
- package/dist/actions/index.cjs +63 -0
- package/dist/actions/index.d.cts +32 -0
- package/dist/actions/index.d.mts +32 -0
- package/dist/actions/index.mjs +32 -0
- package/dist/actions/list-connection-source-types.cjs +22 -0
- package/dist/actions/list-connection-source-types.cjs.map +1 -0
- package/dist/actions/list-connection-source-types.d.cts +9 -0
- package/dist/actions/list-connection-source-types.d.cts.map +1 -0
- package/dist/actions/list-connection-source-types.d.mts +9 -0
- package/dist/actions/list-connection-source-types.d.mts.map +1 -0
- package/dist/actions/list-connection-source-types.mjs +21 -0
- package/dist/actions/list-connection-source-types.mjs.map +1 -0
- package/dist/actions/list-connections-connections-get.cjs +41 -0
- package/dist/actions/list-connections-connections-get.cjs.map +1 -0
- package/dist/actions/list-connections-connections-get.d.cts +9 -0
- package/dist/actions/list-connections-connections-get.d.cts.map +1 -0
- package/dist/actions/list-connections-connections-get.d.mts +9 -0
- package/dist/actions/list-connections-connections-get.d.mts.map +1 -0
- package/dist/actions/list-connections-connections-get.mjs +40 -0
- package/dist/actions/list-connections-connections-get.mjs.map +1 -0
- package/dist/actions/list-documents.cjs +40 -0
- package/dist/actions/list-documents.cjs.map +1 -0
- package/dist/actions/list-documents.d.cts +9 -0
- package/dist/actions/list-documents.d.cts.map +1 -0
- package/dist/actions/list-documents.d.mts +9 -0
- package/dist/actions/list-documents.d.mts.map +1 -0
- package/dist/actions/list-documents.mjs +39 -0
- package/dist/actions/list-documents.mjs.map +1 -0
- package/dist/actions/list-entities-by-document.cjs +37 -0
- package/dist/actions/list-entities-by-document.cjs.map +1 -0
- package/dist/actions/list-entities-by-document.d.cts +9 -0
- package/dist/actions/list-entities-by-document.d.cts.map +1 -0
- package/dist/actions/list-entities-by-document.d.mts +9 -0
- package/dist/actions/list-entities-by-document.d.mts.map +1 -0
- package/dist/actions/list-entities-by-document.mjs +36 -0
- package/dist/actions/list-entities-by-document.mjs.map +1 -0
- package/dist/actions/list-entities-by-instruction.cjs +37 -0
- package/dist/actions/list-entities-by-instruction.cjs.map +1 -0
- package/dist/actions/list-entities-by-instruction.d.cts +9 -0
- package/dist/actions/list-entities-by-instruction.d.cts.map +1 -0
- package/dist/actions/list-entities-by-instruction.d.mts +9 -0
- package/dist/actions/list-entities-by-instruction.d.mts.map +1 -0
- package/dist/actions/list-entities-by-instruction.mjs +36 -0
- package/dist/actions/list-entities-by-instruction.mjs.map +1 -0
- package/dist/actions/list-instructions.cjs +28 -0
- package/dist/actions/list-instructions.cjs.map +1 -0
- package/dist/actions/list-instructions.d.cts +9 -0
- package/dist/actions/list-instructions.d.cts.map +1 -0
- package/dist/actions/list-instructions.d.mts +9 -0
- package/dist/actions/list-instructions.d.mts.map +1 -0
- package/dist/actions/list-instructions.mjs +27 -0
- package/dist/actions/list-instructions.mjs.map +1 -0
- package/dist/actions/list-partitions.cjs +49 -0
- package/dist/actions/list-partitions.cjs.map +1 -0
- package/dist/actions/list-partitions.d.cts +9 -0
- package/dist/actions/list-partitions.d.cts.map +1 -0
- package/dist/actions/list-partitions.d.mts +9 -0
- package/dist/actions/list-partitions.d.mts.map +1 -0
- package/dist/actions/list-partitions.mjs +48 -0
- package/dist/actions/list-partitions.mjs.map +1 -0
- package/dist/actions/patch-document-metadata.cjs +24 -0
- package/dist/actions/patch-document-metadata.cjs.map +1 -0
- package/dist/actions/patch-document-metadata.d.cts +9 -0
- package/dist/actions/patch-document-metadata.d.cts.map +1 -0
- package/dist/actions/patch-document-metadata.d.mts +9 -0
- package/dist/actions/patch-document-metadata.d.mts.map +1 -0
- package/dist/actions/patch-document-metadata.mjs +21 -0
- package/dist/actions/patch-document-metadata.mjs.map +1 -0
- package/dist/actions/retrieve.cjs +35 -0
- package/dist/actions/retrieve.cjs.map +1 -0
- package/dist/actions/retrieve.d.cts +9 -0
- package/dist/actions/retrieve.d.cts.map +1 -0
- package/dist/actions/retrieve.d.mts +9 -0
- package/dist/actions/retrieve.d.mts.map +1 -0
- package/dist/actions/retrieve.mjs +34 -0
- package/dist/actions/retrieve.mjs.map +1 -0
- package/dist/actions/set-partition-limits.cjs +62 -0
- package/dist/actions/set-partition-limits.cjs.map +1 -0
- package/dist/actions/set-partition-limits.d.cts +9 -0
- package/dist/actions/set-partition-limits.d.cts.map +1 -0
- package/dist/actions/set-partition-limits.d.mts +9 -0
- package/dist/actions/set-partition-limits.d.mts.map +1 -0
- package/dist/actions/set-partition-limits.mjs +61 -0
- package/dist/actions/set-partition-limits.mjs.map +1 -0
- package/dist/actions/update-document-from-url.cjs +21 -0
- package/dist/actions/update-document-from-url.cjs.map +1 -0
- package/dist/actions/update-document-from-url.d.cts +9 -0
- package/dist/actions/update-document-from-url.d.cts.map +1 -0
- package/dist/actions/update-document-from-url.d.mts +9 -0
- package/dist/actions/update-document-from-url.d.mts.map +1 -0
- package/dist/actions/update-document-from-url.mjs +18 -0
- package/dist/actions/update-document-from-url.mjs.map +1 -0
- package/dist/actions/update-document-raw.cjs +19 -0
- package/dist/actions/update-document-raw.cjs.map +1 -0
- package/dist/actions/update-document-raw.d.cts +9 -0
- package/dist/actions/update-document-raw.d.cts.map +1 -0
- package/dist/actions/update-document-raw.d.mts +9 -0
- package/dist/actions/update-document-raw.d.mts.map +1 -0
- package/dist/actions/update-document-raw.mjs +16 -0
- package/dist/actions/update-document-raw.mjs.map +1 -0
- package/dist/actions/update-instruction.cjs +31 -0
- package/dist/actions/update-instruction.cjs.map +1 -0
- package/dist/actions/update-instruction.d.cts +9 -0
- package/dist/actions/update-instruction.d.cts.map +1 -0
- package/dist/actions/update-instruction.d.mts +9 -0
- package/dist/actions/update-instruction.d.mts.map +1 -0
- package/dist/actions/update-instruction.mjs +30 -0
- package/dist/actions/update-instruction.mjs.map +1 -0
- package/dist/actions/update-partition.cjs +59 -0
- package/dist/actions/update-partition.cjs.map +1 -0
- package/dist/actions/update-partition.d.cts +9 -0
- package/dist/actions/update-partition.d.cts.map +1 -0
- package/dist/actions/update-partition.d.mts +9 -0
- package/dist/actions/update-partition.d.mts.map +1 -0
- package/dist/actions/update-partition.mjs +58 -0
- package/dist/actions/update-partition.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +68 -0
- package/dist/index.d.cts +34 -0
- package/dist/index.d.mts +34 -0
- package/dist/index.mjs +35 -0
- package/package.json +49 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-document-chunk-content.ts
|
|
4
|
+
const RagieGetDocumentChunkContentInput = zod.z.object({
|
|
5
|
+
chunk_id: zod.z.string().describe("The unique identifier of the chunk (UUID format)."),
|
|
6
|
+
download: zod.z.boolean().default(false).describe("Whether to return the content as a file download or a raw stream. Default is false.").optional(),
|
|
7
|
+
partition: zod.z.string().describe("Optional partition identifier to scope the request for multi-tenant isolation.").optional(),
|
|
8
|
+
media_type: zod.z.enum([
|
|
9
|
+
"text/plain",
|
|
10
|
+
"audio/mpeg",
|
|
11
|
+
"video/mp4",
|
|
12
|
+
"image/webp",
|
|
13
|
+
"image/heic",
|
|
14
|
+
"image/bmp",
|
|
15
|
+
"image/png",
|
|
16
|
+
"image/jpeg",
|
|
17
|
+
"image/tiff"
|
|
18
|
+
]).describe("Desired output format as MIME type. If not specified, returns the content in its original format.").optional(),
|
|
19
|
+
document_id: zod.z.string().describe("The unique identifier of the document (UUID format)."),
|
|
20
|
+
range_header: zod.z.string().describe("Standard HTTP range header for byte-range requests (partial content), e.g., 'bytes=0-1023'.").optional()
|
|
21
|
+
}).describe("Request model for retrieving document chunk content.");
|
|
22
|
+
const RagieGetDocumentChunkContentOutput = zod.z.object({
|
|
23
|
+
content: zod.z.string().describe("The chunk content. For text/plain, contains the text. For binary formats, contains base64-encoded data or URL to the content."),
|
|
24
|
+
content_type: zod.z.string().describe("The MIME type of the returned content.").nullable().optional(),
|
|
25
|
+
content_length: zod.z.number().int().describe("The size of the content in bytes.").nullable().optional()
|
|
26
|
+
}).describe("Response model for document chunk content.");
|
|
27
|
+
const ragieGetDocumentChunkContent = require_action.action("RAGIE_GET_DOCUMENT_CHUNK_CONTENT", {
|
|
28
|
+
slug: "ragie-get-document-chunk-content",
|
|
29
|
+
name: "Get Document Chunk Content",
|
|
30
|
+
description: "Tool to retrieve document chunk content in requested format with streaming support for media. Use when you need to get the actual content of a specific chunk from a document.",
|
|
31
|
+
input: RagieGetDocumentChunkContentInput,
|
|
32
|
+
output: RagieGetDocumentChunkContentOutput
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.ragieGetDocumentChunkContent = ragieGetDocumentChunkContent;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=get-document-chunk-content.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunk-content.cjs","names":["z","action"],"sources":["../../src/actions/get-document-chunk-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunkContentInput: z.ZodTypeAny = z.object({\n chunk_id: z.string().describe(\"The unique identifier of the chunk (UUID format).\"),\n download: z.boolean().default(false).describe(\"Whether to return the content as a file download or a raw stream. Default is false.\").optional(),\n partition: z.string().describe(\"Optional partition identifier to scope the request for multi-tenant isolation.\").optional(),\n media_type: z.enum([\"text/plain\", \"audio/mpeg\", \"video/mp4\", \"image/webp\", \"image/heic\", \"image/bmp\", \"image/png\", \"image/jpeg\", \"image/tiff\"]).describe(\"Desired output format as MIME type. If not specified, returns the content in its original format.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n range_header: z.string().describe(\"Standard HTTP range header for byte-range requests (partial content), e.g., 'bytes=0-1023'.\").optional(),\n}).describe(\"Request model for retrieving document chunk content.\");\nexport const RagieGetDocumentChunkContentOutput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The chunk content. For text/plain, contains the text. For binary formats, contains base64-encoded data or URL to the content.\"),\n content_type: z.string().describe(\"The MIME type of the returned content.\").nullable().optional(),\n content_length: z.number().int().describe(\"The size of the content in bytes.\").nullable().optional(),\n}).describe(\"Response model for document chunk content.\");\n\nexport const ragieGetDocumentChunkContent = action(\"RAGIE_GET_DOCUMENT_CHUNK_CONTENT\", {\n slug: \"ragie-get-document-chunk-content\",\n name: \"Get Document Chunk Content\",\n description: \"Tool to retrieve document chunk content in requested format with streaming support for media. Use when you need to get the actual content of a specific chunk from a document.\",\n input: RagieGetDocumentChunkContentInput,\n output: RagieGetDocumentChunkContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACjF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC9I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAc;EAAa;EAAc;EAAc;EAAa;EAAa;EAAc;CAAY,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACvQ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CAC5J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-document-chunk-content.d.ts
|
|
4
|
+
declare const RagieGetDocumentChunkContentInput: z.ZodTypeAny;
|
|
5
|
+
declare const RagieGetDocumentChunkContentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const ragieGetDocumentChunkContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ragieGetDocumentChunkContent };
|
|
9
|
+
//# sourceMappingURL=get-document-chunk-content.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunk-content.d.cts","names":[],"sources":["../../src/actions/get-document-chunk-content.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAOiB;AAAA,cACtD,kCAAA,EAAoC,CAAA,CAAE,UAIM;AAAA,cAE5C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-document-chunk-content.d.ts
|
|
4
|
+
declare const RagieGetDocumentChunkContentInput: z.ZodTypeAny;
|
|
5
|
+
declare const RagieGetDocumentChunkContentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const ragieGetDocumentChunkContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ragieGetDocumentChunkContent };
|
|
9
|
+
//# sourceMappingURL=get-document-chunk-content.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunk-content.d.mts","names":[],"sources":["../../src/actions/get-document-chunk-content.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAOiB;AAAA,cACtD,kCAAA,EAAoC,CAAA,CAAE,UAIM;AAAA,cAE5C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const ragieGetDocumentChunkContent = action("RAGIE_GET_DOCUMENT_CHUNK_CONTENT", {
|
|
4
|
+
slug: "ragie-get-document-chunk-content",
|
|
5
|
+
name: "Get Document Chunk Content",
|
|
6
|
+
description: "Tool to retrieve document chunk content in requested format with streaming support for media. Use when you need to get the actual content of a specific chunk from a document.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
chunk_id: z.string().describe("The unique identifier of the chunk (UUID format)."),
|
|
9
|
+
download: z.boolean().default(false).describe("Whether to return the content as a file download or a raw stream. Default is false.").optional(),
|
|
10
|
+
partition: z.string().describe("Optional partition identifier to scope the request for multi-tenant isolation.").optional(),
|
|
11
|
+
media_type: z.enum([
|
|
12
|
+
"text/plain",
|
|
13
|
+
"audio/mpeg",
|
|
14
|
+
"video/mp4",
|
|
15
|
+
"image/webp",
|
|
16
|
+
"image/heic",
|
|
17
|
+
"image/bmp",
|
|
18
|
+
"image/png",
|
|
19
|
+
"image/jpeg",
|
|
20
|
+
"image/tiff"
|
|
21
|
+
]).describe("Desired output format as MIME type. If not specified, returns the content in its original format.").optional(),
|
|
22
|
+
document_id: z.string().describe("The unique identifier of the document (UUID format)."),
|
|
23
|
+
range_header: z.string().describe("Standard HTTP range header for byte-range requests (partial content), e.g., 'bytes=0-1023'.").optional()
|
|
24
|
+
}).describe("Request model for retrieving document chunk content."),
|
|
25
|
+
output: z.object({
|
|
26
|
+
content: z.string().describe("The chunk content. For text/plain, contains the text. For binary formats, contains base64-encoded data or URL to the content."),
|
|
27
|
+
content_type: z.string().describe("The MIME type of the returned content.").nullable().optional(),
|
|
28
|
+
content_length: z.number().int().describe("The size of the content in bytes.").nullable().optional()
|
|
29
|
+
}).describe("Response model for document chunk content.")
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { ragieGetDocumentChunkContent };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=get-document-chunk-content.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunk-content.mjs","names":[],"sources":["../../src/actions/get-document-chunk-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunkContentInput: z.ZodTypeAny = z.object({\n chunk_id: z.string().describe(\"The unique identifier of the chunk (UUID format).\"),\n download: z.boolean().default(false).describe(\"Whether to return the content as a file download or a raw stream. Default is false.\").optional(),\n partition: z.string().describe(\"Optional partition identifier to scope the request for multi-tenant isolation.\").optional(),\n media_type: z.enum([\"text/plain\", \"audio/mpeg\", \"video/mp4\", \"image/webp\", \"image/heic\", \"image/bmp\", \"image/png\", \"image/jpeg\", \"image/tiff\"]).describe(\"Desired output format as MIME type. If not specified, returns the content in its original format.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n range_header: z.string().describe(\"Standard HTTP range header for byte-range requests (partial content), e.g., 'bytes=0-1023'.\").optional(),\n}).describe(\"Request model for retrieving document chunk content.\");\nexport const RagieGetDocumentChunkContentOutput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The chunk content. For text/plain, contains the text. For binary formats, contains base64-encoded data or URL to the content.\"),\n content_type: z.string().describe(\"The MIME type of the returned content.\").nullable().optional(),\n content_length: z.number().int().describe(\"The size of the content in bytes.\").nullable().optional(),\n}).describe(\"Response model for document chunk content.\");\n\nexport const ragieGetDocumentChunkContent = action(\"RAGIE_GET_DOCUMENT_CHUNK_CONTENT\", {\n slug: \"ragie-get-document-chunk-content\",\n name: \"Get Document Chunk Content\",\n description: \"Tool to retrieve document chunk content in requested format with streaming support for media. Use when you need to get the actual content of a specific chunk from a document.\",\n input: RagieGetDocumentChunkContentInput,\n output: RagieGetDocumentChunkContentOutput,\n});\n"],"mappings":";;AAkBA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB6D,EAAE,OAAO;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EACjF,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC9I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,KAAK;GAAC;GAAc;GAAc;GAAa;GAAc;GAAc;GAAa;GAAa;GAAc;EAAY,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACvQ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,sDAWH;CACP,QAX8D,EAAE,OAAO;EACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;EAC5J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-document-chunk.ts
|
|
4
|
+
const RagieGetDocumentChunkInput = zod.z.object({
|
|
5
|
+
chunk_id: zod.z.string().describe("The ID of the chunk (UUID format)."),
|
|
6
|
+
partition: zod.z.string().describe("Optional partition to scope the request; if omitted, defaults to the default partition for newer accounts.").optional(),
|
|
7
|
+
document_id: zod.z.string().describe("The ID of the document (UUID format).")
|
|
8
|
+
}).describe("Request model for retrieving a document chunk by document and chunk ID.");
|
|
9
|
+
const RagieGetDocumentChunk_ChunkMetadataSchema = zod.z.object({}).describe("Custom chunk metadata.");
|
|
10
|
+
const RagieGetDocumentChunk_ModalityDataSchema = zod.z.object({}).describe("Additional data for audio/video chunks, including word-level timestamps.");
|
|
11
|
+
const RagieGetDocumentChunkOutput = zod.z.object({
|
|
12
|
+
id: zod.z.string().describe("The chunk identifier (UUID)."),
|
|
13
|
+
text: zod.z.string().describe("Chunk content."),
|
|
14
|
+
index: zod.z.number().int().describe("Position within document (default: -1)."),
|
|
15
|
+
links: zod.z.object({}).describe("Dictionary of Link objects with href and type properties.").nullable().optional(),
|
|
16
|
+
metadata: RagieGetDocumentChunk_ChunkMetadataSchema.nullable().optional(),
|
|
17
|
+
modality_data: RagieGetDocumentChunk_ModalityDataSchema.nullable().optional()
|
|
18
|
+
}).describe("Response model for document chunk details.");
|
|
19
|
+
const ragieGetDocumentChunk = require_action.action("RAGIE_GET_DOCUMENT_CHUNK", {
|
|
20
|
+
slug: "ragie-get-document-chunk",
|
|
21
|
+
name: "Get Document Chunk",
|
|
22
|
+
description: "Tool to retrieve a specific document chunk by its document and chunk ID. Use when you need detailed information about a specific chunk within a document, including its content, metadata, position index, and optional modality data for audio/video chunks.",
|
|
23
|
+
input: RagieGetDocumentChunkInput,
|
|
24
|
+
output: RagieGetDocumentChunkOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.ragieGetDocumentChunk = ragieGetDocumentChunk;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=get-document-chunk.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunk.cjs","names":["z","action"],"sources":["../../src/actions/get-document-chunk.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunkInput: z.ZodTypeAny = z.object({\n chunk_id: z.string().describe(\"The ID of the chunk (UUID format).\"),\n partition: z.string().describe(\"Optional partition to scope the request; if omitted, defaults to the default partition for newer accounts.\").optional(),\n document_id: z.string().describe(\"The ID of the document (UUID format).\"),\n}).describe(\"Request model for retrieving a document chunk by document and chunk ID.\");\nconst RagieGetDocumentChunk_ChunkMetadataSchema: z.ZodTypeAny = z.object({}).describe(\"Custom chunk metadata.\");\nconst RagieGetDocumentChunk_ModalityDataSchema: z.ZodTypeAny = z.object({}).describe(\"Additional data for audio/video chunks, including word-level timestamps.\");\nexport const RagieGetDocumentChunkOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The chunk identifier (UUID).\"),\n text: z.string().describe(\"Chunk content.\"),\n index: z.number().int().describe(\"Position within document (default: -1).\"),\n links: z.object({}).describe(\"Dictionary of Link objects with href and type properties.\").nullable().optional(),\n metadata: RagieGetDocumentChunk_ChunkMetadataSchema.nullable().optional(),\n modality_data: RagieGetDocumentChunk_ModalityDataSchema.nullable().optional(),\n}).describe(\"Response model for document chunk details.\");\n\nexport const ragieGetDocumentChunk = action(\"RAGIE_GET_DOCUMENT_CHUNK\", {\n slug: \"ragie-get-document-chunk\",\n name: \"Get Document Chunk\",\n description: \"Tool to retrieve a specific document chunk by its document and chunk ID. Use when you need detailed information about a specific chunk within a document, including its content, metadata, position index, and optional modality data for audio/video chunks.\",\n input: RagieGetDocumentChunkInput,\n output: RagieGetDocumentChunkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACtJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC1E,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,4CAA0DA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB;AAC9G,MAAM,2CAAyDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAC/J,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACxE,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-document-chunk.d.ts
|
|
4
|
+
declare const RagieGetDocumentChunkInput: z.ZodTypeAny;
|
|
5
|
+
declare const RagieGetDocumentChunkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const ragieGetDocumentChunk: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ragieGetDocumentChunk };
|
|
9
|
+
//# sourceMappingURL=get-document-chunk.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunk.d.cts","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAI2C;AAAA,cAGzE,2BAAA,EAA6B,CAAA,CAAE,UAOa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-document-chunk.d.ts
|
|
4
|
+
declare const RagieGetDocumentChunkInput: z.ZodTypeAny;
|
|
5
|
+
declare const RagieGetDocumentChunkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const ragieGetDocumentChunk: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ragieGetDocumentChunk };
|
|
9
|
+
//# sourceMappingURL=get-document-chunk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunk.d.mts","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAI2C;AAAA,cAGzE,2BAAA,EAA6B,CAAA,CAAE,UAOa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-document-chunk.ts
|
|
4
|
+
const RagieGetDocumentChunkInput = z.object({
|
|
5
|
+
chunk_id: z.string().describe("The ID of the chunk (UUID format)."),
|
|
6
|
+
partition: z.string().describe("Optional partition to scope the request; if omitted, defaults to the default partition for newer accounts.").optional(),
|
|
7
|
+
document_id: z.string().describe("The ID of the document (UUID format).")
|
|
8
|
+
}).describe("Request model for retrieving a document chunk by document and chunk ID.");
|
|
9
|
+
const RagieGetDocumentChunk_ChunkMetadataSchema = z.object({}).describe("Custom chunk metadata.");
|
|
10
|
+
const RagieGetDocumentChunk_ModalityDataSchema = z.object({}).describe("Additional data for audio/video chunks, including word-level timestamps.");
|
|
11
|
+
const ragieGetDocumentChunk = action("RAGIE_GET_DOCUMENT_CHUNK", {
|
|
12
|
+
slug: "ragie-get-document-chunk",
|
|
13
|
+
name: "Get Document Chunk",
|
|
14
|
+
description: "Tool to retrieve a specific document chunk by its document and chunk ID. Use when you need detailed information about a specific chunk within a document, including its content, metadata, position index, and optional modality data for audio/video chunks.",
|
|
15
|
+
input: RagieGetDocumentChunkInput,
|
|
16
|
+
output: z.object({
|
|
17
|
+
id: z.string().describe("The chunk identifier (UUID)."),
|
|
18
|
+
text: z.string().describe("Chunk content."),
|
|
19
|
+
index: z.number().int().describe("Position within document (default: -1)."),
|
|
20
|
+
links: z.object({}).describe("Dictionary of Link objects with href and type properties.").nullable().optional(),
|
|
21
|
+
metadata: RagieGetDocumentChunk_ChunkMetadataSchema.nullable().optional(),
|
|
22
|
+
modality_data: RagieGetDocumentChunk_ModalityDataSchema.nullable().optional()
|
|
23
|
+
}).describe("Response model for document chunk details.")
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ragieGetDocumentChunk };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=get-document-chunk.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunk.mjs","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunkInput: z.ZodTypeAny = z.object({\n chunk_id: z.string().describe(\"The ID of the chunk (UUID format).\"),\n partition: z.string().describe(\"Optional partition to scope the request; if omitted, defaults to the default partition for newer accounts.\").optional(),\n document_id: z.string().describe(\"The ID of the document (UUID format).\"),\n}).describe(\"Request model for retrieving a document chunk by document and chunk ID.\");\nconst RagieGetDocumentChunk_ChunkMetadataSchema: z.ZodTypeAny = z.object({}).describe(\"Custom chunk metadata.\");\nconst RagieGetDocumentChunk_ModalityDataSchema: z.ZodTypeAny = z.object({}).describe(\"Additional data for audio/video chunks, including word-level timestamps.\");\nexport const RagieGetDocumentChunkOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The chunk identifier (UUID).\"),\n text: z.string().describe(\"Chunk content.\"),\n index: z.number().int().describe(\"Position within document (default: -1).\"),\n links: z.object({}).describe(\"Dictionary of Link objects with href and type properties.\").nullable().optional(),\n metadata: RagieGetDocumentChunk_ChunkMetadataSchema.nullable().optional(),\n modality_data: RagieGetDocumentChunk_ModalityDataSchema.nullable().optional(),\n}).describe(\"Response model for document chunk details.\");\n\nexport const ragieGetDocumentChunk = action(\"RAGIE_GET_DOCUMENT_CHUNK\", {\n slug: \"ragie-get-document-chunk\",\n name: \"Get Document Chunk\",\n description: \"Tool to retrieve a specific document chunk by its document and chunk ID. Use when you need detailed information about a specific chunk within a document, including its content, metadata, position index, and optional modality data for audio/video chunks.\",\n input: RagieGetDocumentChunkInput,\n output: RagieGetDocumentChunkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACtJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC1E,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,4CAA0D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB;AAC9G,MAAM,2CAAyD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAU/J,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;EAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACxE,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-document-chunks.ts
|
|
4
|
+
const RagieGetDocumentChunksInput = zod.z.object({
|
|
5
|
+
cursor: zod.z.string().describe("An opaque cursor for pagination used to retrieve subsequent pages.").optional(),
|
|
6
|
+
end_index: zod.z.number().int().describe("The inclusive ending index of the chunk range to list. Omitting both start_index and end_index returns all chunks.").optional(),
|
|
7
|
+
page_size: zod.z.number().int().describe("The number of items per page (range: 1-100, default: 10).").optional(),
|
|
8
|
+
partition: zod.z.string().describe("Header parameter scoping results to a specific partition.").optional(),
|
|
9
|
+
document_id: zod.z.string().describe("The UUID of the document to retrieve chunks from."),
|
|
10
|
+
start_index: zod.z.number().int().describe("The inclusive starting index of the chunk range to list. Omitting both start_index and end_index returns all chunks.").optional()
|
|
11
|
+
}).describe("Request model for retrieving document chunks with pagination support.");
|
|
12
|
+
const RagieGetDocumentChunks_DocumentChunkSchema = zod.z.object({
|
|
13
|
+
id: zod.z.string().describe("Chunk identifier (UUID)."),
|
|
14
|
+
text: zod.z.string().describe("Chunk content text."),
|
|
15
|
+
index: zod.z.number().int().default(-1).describe("Chunk sequence number. Default is -1.").nullable().optional(),
|
|
16
|
+
links: zod.z.object({}).describe("HREF and type mappings for chunk sources.").nullable().optional(),
|
|
17
|
+
metadata: zod.z.object({}).describe("Chunk-level metadata as a dictionary.").nullable().optional()
|
|
18
|
+
}).describe("Model representing a single document chunk.");
|
|
19
|
+
const RagieGetDocumentChunks_PaginationSchema = zod.z.object({
|
|
20
|
+
next_cursor: zod.z.string().describe("Cursor for retrieving the next page. Null if no more pages.").nullable().optional(),
|
|
21
|
+
total_count: zod.z.number().int().describe("Total number of matching chunks across all pages.")
|
|
22
|
+
}).describe("Model representing pagination information.");
|
|
23
|
+
const RagieGetDocumentChunksOutput = zod.z.object({
|
|
24
|
+
chunks: zod.z.array(RagieGetDocumentChunks_DocumentChunkSchema).describe("List of document chunks sorted by index in ascending order."),
|
|
25
|
+
pagination: RagieGetDocumentChunks_PaginationSchema.nullable()
|
|
26
|
+
}).describe("Response model for retrieving document chunks with pagination.");
|
|
27
|
+
const ragieGetDocumentChunks = require_action.action("RAGIE_GET_DOCUMENT_CHUNKS", {
|
|
28
|
+
slug: "ragie-get-document-chunks",
|
|
29
|
+
name: "Get Document Chunks",
|
|
30
|
+
description: "Tool to retrieve document chunks with pagination support. Lists all document chunks sorted by index in ascending order (max 100 items per page). Documents created prior to 9/18/2024 that have not been updated since have chunks sorted by ID instead of index.",
|
|
31
|
+
input: RagieGetDocumentChunksInput,
|
|
32
|
+
output: RagieGetDocumentChunksOutput
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.ragieGetDocumentChunks = ragieGetDocumentChunks;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=get-document-chunks.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunks.cjs","names":["z","action"],"sources":["../../src/actions/get-document-chunks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunksInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination used to retrieve subsequent pages.\").optional(),\n end_index: z.number().int().describe(\"The inclusive ending index of the chunk range to list. Omitting both start_index and end_index returns all chunks.\").optional(),\n page_size: z.number().int().describe(\"The number of items per page (range: 1-100, default: 10).\").optional(),\n partition: z.string().describe(\"Header parameter scoping results to a specific partition.\").optional(),\n document_id: z.string().describe(\"The UUID of the document to retrieve chunks from.\"),\n start_index: z.number().int().describe(\"The inclusive starting index of the chunk range to list. Omitting both start_index and end_index returns all chunks.\").optional(),\n}).describe(\"Request model for retrieving document chunks with pagination support.\");\nconst RagieGetDocumentChunks_DocumentChunkSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Chunk identifier (UUID).\"),\n text: z.string().describe(\"Chunk content text.\"),\n index: z.number().int().default(-1).describe(\"Chunk sequence number. Default is -1.\").nullable().optional(),\n links: z.object({}).describe(\"HREF and type mappings for chunk sources.\").nullable().optional(),\n metadata: z.object({}).describe(\"Chunk-level metadata as a dictionary.\").nullable().optional(),\n}).describe(\"Model representing a single document chunk.\");\nconst RagieGetDocumentChunks_PaginationSchema: z.ZodTypeAny = z.object({\n next_cursor: z.string().describe(\"Cursor for retrieving the next page. Null if no more pages.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of matching chunks across all pages.\"),\n}).describe(\"Model representing pagination information.\");\nexport const RagieGetDocumentChunksOutput: z.ZodTypeAny = z.object({\n chunks: z.array(RagieGetDocumentChunks_DocumentChunkSchema).describe(\"List of document chunks sorted by index in ascending order.\"),\n pagination: RagieGetDocumentChunks_PaginationSchema.nullable(),\n}).describe(\"Response model for retrieving document chunks with pagination.\");\n\nexport const ragieGetDocumentChunks = action(\"RAGIE_GET_DOCUMENT_CHUNKS\", {\n slug: \"ragie-get-document-chunks\",\n name: \"Get Document Chunks\",\n description: \"Tool to retrieve document chunks with pagination support. Lists all document chunks sorted by index in ascending order (max 100 items per page). Documents created prior to 9/18/2024 that have not been updated since have chunks sorted by ID instead of index.\",\n input: RagieGetDocumentChunksInput,\n output: RagieGetDocumentChunksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC3G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;AAC5F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,6DAA6D;CAClI,YAAY,wCAAwC,SAAS;AAC/D,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-document-chunks.d.ts
|
|
4
|
+
declare const RagieGetDocumentChunksInput: z.ZodTypeAny;
|
|
5
|
+
declare const RagieGetDocumentChunksOutput: z.ZodTypeAny;
|
|
6
|
+
declare const ragieGetDocumentChunks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ragieGetDocumentChunks };
|
|
9
|
+
//# sourceMappingURL=get-document-chunks.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunks.d.cts","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAOwC;AAAA,cAYvE,4BAAA,EAA8B,CAAA,CAAE,UAGgC;AAAA,cAEhE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-document-chunks.d.ts
|
|
4
|
+
declare const RagieGetDocumentChunksInput: z.ZodTypeAny;
|
|
5
|
+
declare const RagieGetDocumentChunksOutput: z.ZodTypeAny;
|
|
6
|
+
declare const ragieGetDocumentChunks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ragieGetDocumentChunks };
|
|
9
|
+
//# sourceMappingURL=get-document-chunks.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunks.d.mts","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAOwC;AAAA,cAYvE,4BAAA,EAA8B,CAAA,CAAE,UAGgC;AAAA,cAEhE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-document-chunks.ts
|
|
4
|
+
const RagieGetDocumentChunksInput = z.object({
|
|
5
|
+
cursor: z.string().describe("An opaque cursor for pagination used to retrieve subsequent pages.").optional(),
|
|
6
|
+
end_index: z.number().int().describe("The inclusive ending index of the chunk range to list. Omitting both start_index and end_index returns all chunks.").optional(),
|
|
7
|
+
page_size: z.number().int().describe("The number of items per page (range: 1-100, default: 10).").optional(),
|
|
8
|
+
partition: z.string().describe("Header parameter scoping results to a specific partition.").optional(),
|
|
9
|
+
document_id: z.string().describe("The UUID of the document to retrieve chunks from."),
|
|
10
|
+
start_index: z.number().int().describe("The inclusive starting index of the chunk range to list. Omitting both start_index and end_index returns all chunks.").optional()
|
|
11
|
+
}).describe("Request model for retrieving document chunks with pagination support.");
|
|
12
|
+
const RagieGetDocumentChunks_DocumentChunkSchema = z.object({
|
|
13
|
+
id: z.string().describe("Chunk identifier (UUID)."),
|
|
14
|
+
text: z.string().describe("Chunk content text."),
|
|
15
|
+
index: z.number().int().default(-1).describe("Chunk sequence number. Default is -1.").nullable().optional(),
|
|
16
|
+
links: z.object({}).describe("HREF and type mappings for chunk sources.").nullable().optional(),
|
|
17
|
+
metadata: z.object({}).describe("Chunk-level metadata as a dictionary.").nullable().optional()
|
|
18
|
+
}).describe("Model representing a single document chunk.");
|
|
19
|
+
const RagieGetDocumentChunks_PaginationSchema = z.object({
|
|
20
|
+
next_cursor: z.string().describe("Cursor for retrieving the next page. Null if no more pages.").nullable().optional(),
|
|
21
|
+
total_count: z.number().int().describe("Total number of matching chunks across all pages.")
|
|
22
|
+
}).describe("Model representing pagination information.");
|
|
23
|
+
const ragieGetDocumentChunks = action("RAGIE_GET_DOCUMENT_CHUNKS", {
|
|
24
|
+
slug: "ragie-get-document-chunks",
|
|
25
|
+
name: "Get Document Chunks",
|
|
26
|
+
description: "Tool to retrieve document chunks with pagination support. Lists all document chunks sorted by index in ascending order (max 100 items per page). Documents created prior to 9/18/2024 that have not been updated since have chunks sorted by ID instead of index.",
|
|
27
|
+
input: RagieGetDocumentChunksInput,
|
|
28
|
+
output: z.object({
|
|
29
|
+
chunks: z.array(RagieGetDocumentChunks_DocumentChunkSchema).describe("List of document chunks sorted by index in ascending order."),
|
|
30
|
+
pagination: RagieGetDocumentChunks_PaginationSchema.nullable()
|
|
31
|
+
}).describe("Response model for retrieving document chunks with pagination.")
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { ragieGetDocumentChunks };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=get-document-chunks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-chunks.mjs","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunksInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination used to retrieve subsequent pages.\").optional(),\n end_index: z.number().int().describe(\"The inclusive ending index of the chunk range to list. Omitting both start_index and end_index returns all chunks.\").optional(),\n page_size: z.number().int().describe(\"The number of items per page (range: 1-100, default: 10).\").optional(),\n partition: z.string().describe(\"Header parameter scoping results to a specific partition.\").optional(),\n document_id: z.string().describe(\"The UUID of the document to retrieve chunks from.\"),\n start_index: z.number().int().describe(\"The inclusive starting index of the chunk range to list. Omitting both start_index and end_index returns all chunks.\").optional(),\n}).describe(\"Request model for retrieving document chunks with pagination support.\");\nconst RagieGetDocumentChunks_DocumentChunkSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Chunk identifier (UUID).\"),\n text: z.string().describe(\"Chunk content text.\"),\n index: z.number().int().default(-1).describe(\"Chunk sequence number. Default is -1.\").nullable().optional(),\n links: z.object({}).describe(\"HREF and type mappings for chunk sources.\").nullable().optional(),\n metadata: z.object({}).describe(\"Chunk-level metadata as a dictionary.\").nullable().optional(),\n}).describe(\"Model representing a single document chunk.\");\nconst RagieGetDocumentChunks_PaginationSchema: z.ZodTypeAny = z.object({\n next_cursor: z.string().describe(\"Cursor for retrieving the next page. Null if no more pages.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of matching chunks across all pages.\"),\n}).describe(\"Model representing pagination information.\");\nexport const RagieGetDocumentChunksOutput: z.ZodTypeAny = z.object({\n chunks: z.array(RagieGetDocumentChunks_DocumentChunkSchema).describe(\"List of document chunks sorted by index in ascending order.\"),\n pagination: RagieGetDocumentChunks_PaginationSchema.nullable(),\n}).describe(\"Response model for retrieving document chunks with pagination.\");\n\nexport const ragieGetDocumentChunks = action(\"RAGIE_GET_DOCUMENT_CHUNKS\", {\n slug: \"ragie-get-document-chunks\",\n name: \"Get Document Chunks\",\n description: \"Tool to retrieve document chunks with pagination support. Lists all document chunks sorted by index in ascending order (max 100 items per page). Documents created prior to 9/18/2024 that have not been updated since have chunks sorted by ID instead of index.\",\n input: RagieGetDocumentChunksInput,\n output: RagieGetDocumentChunksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC3G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACpF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,0CAAwD,EAAE,OAAO;CACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;AAC5F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAMxD,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,6DAA6D;EAClI,YAAY,wCAAwC,SAAS;CAC/D,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-document-content.ts
|
|
4
|
+
const RagieGetDocumentContentInput = zod.z.object({
|
|
5
|
+
range: zod.z.string().describe("HTTP range header for partial content requests.").optional(),
|
|
6
|
+
download: zod.z.boolean().describe("Whether to return content as file download. Defaults to false.").optional(),
|
|
7
|
+
partition: zod.z.string().describe("An optional partition to scope the request to.").optional(),
|
|
8
|
+
media_type: zod.z.string().describe("Format to return content in. Accepts: text/plain, audio/mpeg, video/mp4, image/webp, image/heic, image/bmp, image/png, image/jpeg, image/tiff, or application/json. Default returns content with text descriptions of non-textual media.").optional(),
|
|
9
|
+
document_id: zod.z.string().describe("The UUID of the document to retrieve content for.")
|
|
10
|
+
}).describe("Request model for retrieving document content by ID.");
|
|
11
|
+
const RagieGetDocumentContentOutput = zod.z.object({
|
|
12
|
+
id: zod.z.string().describe("Document identifier (UUID).").nullable().optional(),
|
|
13
|
+
name: zod.z.string().describe("Document name.").nullable().optional(),
|
|
14
|
+
status: zod.z.string().describe("Document processing status.").nullable().optional(),
|
|
15
|
+
content: zod.z.string().describe("The document content in requested format."),
|
|
16
|
+
metadata: zod.z.object({}).describe("Custom key-value metadata with string/number/boolean/array values.").nullable().optional(),
|
|
17
|
+
partition: zod.z.string().describe("Partition identifier.").nullable().optional(),
|
|
18
|
+
created_at: zod.z.string().describe("Creation timestamp.").nullable().optional(),
|
|
19
|
+
page_count: zod.z.number().describe("Total page count.").nullable().optional(),
|
|
20
|
+
updated_at: zod.z.string().describe("Last update timestamp.").nullable().optional(),
|
|
21
|
+
chunk_count: zod.z.number().int().describe("Number of document chunks.").nullable().optional(),
|
|
22
|
+
external_id: zod.z.string().describe("External system identifier.").nullable().optional()
|
|
23
|
+
}).describe("Response model for document content retrieval.\nWhen media_type is application/json, returns full document metadata with content.\nWhen media_type is text/plain or other formats, returns just the content.");
|
|
24
|
+
const ragieGetDocumentContent = require_action.action("RAGIE_GET_DOCUMENT_CONTENT", {
|
|
25
|
+
slug: "ragie-get-document-content",
|
|
26
|
+
name: "Get Document Content",
|
|
27
|
+
description: "Tool to retrieve the content of a document by its ID. Use when you need to access the full content of a specific document. The media_type parameter can be used to request content in different formats.",
|
|
28
|
+
input: RagieGetDocumentContentInput,
|
|
29
|
+
output: RagieGetDocumentContentOutput
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.ragieGetDocumentContent = ragieGetDocumentContent;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=get-document-content.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-content.cjs","names":["z","action"],"sources":["../../src/actions/get-document-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentContentInput: z.ZodTypeAny = z.object({\n range: z.string().describe(\"HTTP range header for partial content requests.\").optional(),\n download: z.boolean().describe(\"Whether to return content as file download. Defaults to false.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to.\").optional(),\n media_type: z.string().describe(\"Format to return content in. Accepts: text/plain, audio/mpeg, video/mp4, image/webp, image/heic, image/bmp, image/png, image/jpeg, image/tiff, or application/json. Default returns content with text descriptions of non-textual media.\").optional(),\n document_id: z.string().describe(\"The UUID of the document to retrieve content for.\"),\n}).describe(\"Request model for retrieving document content by ID.\");\nexport const RagieGetDocumentContentOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Document identifier (UUID).\").nullable().optional(),\n name: z.string().describe(\"Document name.\").nullable().optional(),\n status: z.string().describe(\"Document processing status.\").nullable().optional(),\n content: z.string().describe(\"The document content in requested format.\"),\n metadata: z.object({}).describe(\"Custom key-value metadata with string/number/boolean/array values.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n page_count: z.number().describe(\"Total page count.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable().optional(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).describe(\"Response model for document content retrieval.\\nWhen media_type is application/json, returns full document metadata with content.\\nWhen media_type is text/plain or other formats, returns just the content.\");\n\nexport const ragieGetDocumentContent = action(\"RAGIE_GET_DOCUMENT_CONTENT\", {\n slug: \"ragie-get-document-content\",\n name: \"Get Document Content\",\n description: \"Tool to retrieve the content of a document by its ID. Use when you need to access the full content of a specific document. The media_type parameter can be used to request content in different formats.\",\n input: RagieGetDocumentContentInput,\n output: RagieGetDocumentContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC1G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS;CACrR,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AACtF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,8MAA8M;AAE1N,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-document-content.d.ts
|
|
4
|
+
declare const RagieGetDocumentContentInput: z.ZodTypeAny;
|
|
5
|
+
declare const RagieGetDocumentContentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const ragieGetDocumentContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ragieGetDocumentContent };
|
|
9
|
+
//# sourceMappingURL=get-document-content.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-content.d.cts","names":[],"sources":["../../src/actions/get-document-content.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAMsB;AAAA,cACtD,6BAAA,EAA+B,CAAA,CAAE,UAY6K;AAAA,cAE9M,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-document-content.d.ts
|
|
4
|
+
declare const RagieGetDocumentContentInput: z.ZodTypeAny;
|
|
5
|
+
declare const RagieGetDocumentContentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const ragieGetDocumentContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ragieGetDocumentContent };
|
|
9
|
+
//# sourceMappingURL=get-document-content.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-content.d.mts","names":[],"sources":["../../src/actions/get-document-content.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAMsB;AAAA,cACtD,6BAAA,EAA+B,CAAA,CAAE,UAY6K;AAAA,cAE9M,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const ragieGetDocumentContent = action("RAGIE_GET_DOCUMENT_CONTENT", {
|
|
4
|
+
slug: "ragie-get-document-content",
|
|
5
|
+
name: "Get Document Content",
|
|
6
|
+
description: "Tool to retrieve the content of a document by its ID. Use when you need to access the full content of a specific document. The media_type parameter can be used to request content in different formats.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
range: z.string().describe("HTTP range header for partial content requests.").optional(),
|
|
9
|
+
download: z.boolean().describe("Whether to return content as file download. Defaults to false.").optional(),
|
|
10
|
+
partition: z.string().describe("An optional partition to scope the request to.").optional(),
|
|
11
|
+
media_type: z.string().describe("Format to return content in. Accepts: text/plain, audio/mpeg, video/mp4, image/webp, image/heic, image/bmp, image/png, image/jpeg, image/tiff, or application/json. Default returns content with text descriptions of non-textual media.").optional(),
|
|
12
|
+
document_id: z.string().describe("The UUID of the document to retrieve content for.")
|
|
13
|
+
}).describe("Request model for retrieving document content by ID."),
|
|
14
|
+
output: z.object({
|
|
15
|
+
id: z.string().describe("Document identifier (UUID).").nullable().optional(),
|
|
16
|
+
name: z.string().describe("Document name.").nullable().optional(),
|
|
17
|
+
status: z.string().describe("Document processing status.").nullable().optional(),
|
|
18
|
+
content: z.string().describe("The document content in requested format."),
|
|
19
|
+
metadata: z.object({}).describe("Custom key-value metadata with string/number/boolean/array values.").nullable().optional(),
|
|
20
|
+
partition: z.string().describe("Partition identifier.").nullable().optional(),
|
|
21
|
+
created_at: z.string().describe("Creation timestamp.").nullable().optional(),
|
|
22
|
+
page_count: z.number().describe("Total page count.").nullable().optional(),
|
|
23
|
+
updated_at: z.string().describe("Last update timestamp.").nullable().optional(),
|
|
24
|
+
chunk_count: z.number().int().describe("Number of document chunks.").nullable().optional(),
|
|
25
|
+
external_id: z.string().describe("External system identifier.").nullable().optional()
|
|
26
|
+
}).describe("Response model for document content retrieval.\nWhen media_type is application/json, returns full document metadata with content.\nWhen media_type is text/plain or other formats, returns just the content.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { ragieGetDocumentContent };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=get-document-content.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-content.mjs","names":[],"sources":["../../src/actions/get-document-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentContentInput: z.ZodTypeAny = z.object({\n range: z.string().describe(\"HTTP range header for partial content requests.\").optional(),\n download: z.boolean().describe(\"Whether to return content as file download. Defaults to false.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to.\").optional(),\n media_type: z.string().describe(\"Format to return content in. Accepts: text/plain, audio/mpeg, video/mp4, image/webp, image/heic, image/bmp, image/png, image/jpeg, image/tiff, or application/json. Default returns content with text descriptions of non-textual media.\").optional(),\n document_id: z.string().describe(\"The UUID of the document to retrieve content for.\"),\n}).describe(\"Request model for retrieving document content by ID.\");\nexport const RagieGetDocumentContentOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Document identifier (UUID).\").nullable().optional(),\n name: z.string().describe(\"Document name.\").nullable().optional(),\n status: z.string().describe(\"Document processing status.\").nullable().optional(),\n content: z.string().describe(\"The document content in requested format.\"),\n metadata: z.object({}).describe(\"Custom key-value metadata with string/number/boolean/array values.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n page_count: z.number().describe(\"Total page count.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable().optional(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).describe(\"Response model for document content retrieval.\\nWhen media_type is application/json, returns full document metadata with content.\\nWhen media_type is text/plain or other formats, returns just the content.\");\n\nexport const ragieGetDocumentContent = action(\"RAGIE_GET_DOCUMENT_CONTENT\", {\n slug: \"ragie-get-document-content\",\n name: \"Get Document Content\",\n description: \"Tool to retrieve the content of a document by its ID. Use when you need to access the full content of a specific document. The media_type parameter can be used to request content in different formats.\",\n input: RagieGetDocumentContentInput,\n output: RagieGetDocumentContentOutput,\n});\n"],"mappings":";;AAyBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBwD,EAAE,OAAO;EACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACvF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS;EACrR,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACtF,CAAC,CAAC,CAAC,SAAS,sDAmBH;CACP,QAnByD,EAAE,OAAO;EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACxE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,SAAS,8MAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-document-summary.ts
|
|
4
|
+
const RagieGetDocumentSummaryInput = zod.z.object({
|
|
5
|
+
partition: zod.z.string().describe("Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition; older accounts scope to all partitions.").optional(),
|
|
6
|
+
document_id: zod.z.string().describe("The unique identifier of the document (UUID format).")
|
|
7
|
+
}).describe("Request model for retrieving a document summary.");
|
|
8
|
+
const RagieGetDocumentSummaryOutput = zod.z.object({
|
|
9
|
+
summary: zod.z.string().describe("The LLM-generated summary text of the document."),
|
|
10
|
+
document_id: zod.z.string().describe("The ID of the summarized document.")
|
|
11
|
+
}).describe("Response model for document summary.");
|
|
12
|
+
const ragieGetDocumentSummary = require_action.action("RAGIE_GET_DOCUMENT_SUMMARY", {
|
|
13
|
+
slug: "ragie-get-document-summary",
|
|
14
|
+
name: "Get Document Summary",
|
|
15
|
+
description: "Tool to retrieve an LLM-generated summary of a document by its ID. Use when you need to get a concise summary of a document's content.",
|
|
16
|
+
input: RagieGetDocumentSummaryInput,
|
|
17
|
+
output: RagieGetDocumentSummaryOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.ragieGetDocumentSummary = ragieGetDocumentSummary;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=get-document-summary.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-summary.cjs","names":["z","action"],"sources":["../../src/actions/get-document-summary.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentSummaryInput: z.ZodTypeAny = z.object({\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition; older accounts scope to all partitions.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for retrieving a document summary.\");\nexport const RagieGetDocumentSummaryOutput: z.ZodTypeAny = z.object({\n summary: z.string().describe(\"The LLM-generated summary text of the document.\"),\n document_id: z.string().describe(\"The ID of the summarized document.\"),\n}).describe(\"Response model for document summary.\");\n\nexport const ragieGetDocumentSummary = action(\"RAGIE_GET_DOCUMENT_SUMMARY\", {\n slug: \"ragie-get-document-summary\",\n name: \"Get Document Summary\",\n description: \"Tool to retrieve an LLM-generated summary of a document by its ID. Use when you need to get a concise summary of a document's content.\",\n input: RagieGetDocumentSummaryInput,\n output: RagieGetDocumentSummaryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CAC3L,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACzF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;AACvE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-document-summary.d.ts
|
|
4
|
+
declare const RagieGetDocumentSummaryInput: z.ZodTypeAny;
|
|
5
|
+
declare const RagieGetDocumentSummaryOutput: z.ZodTypeAny;
|
|
6
|
+
declare const ragieGetDocumentSummary: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ragieGetDocumentSummary };
|
|
9
|
+
//# sourceMappingURL=get-document-summary.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-summary.d.cts","names":[],"sources":["../../src/actions/get-document-summary.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAGkB;AAAA,cAClD,6BAAA,EAA+B,CAAA,CAAE,UAGK;AAAA,cAEtC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-document-summary.d.ts
|
|
4
|
+
declare const RagieGetDocumentSummaryInput: z.ZodTypeAny;
|
|
5
|
+
declare const RagieGetDocumentSummaryOutput: z.ZodTypeAny;
|
|
6
|
+
declare const ragieGetDocumentSummary: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ragieGetDocumentSummary };
|
|
9
|
+
//# sourceMappingURL=get-document-summary.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-summary.d.mts","names":[],"sources":["../../src/actions/get-document-summary.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAGkB;AAAA,cAClD,6BAAA,EAA+B,CAAA,CAAE,UAGK;AAAA,cAEtC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const ragieGetDocumentSummary = action("RAGIE_GET_DOCUMENT_SUMMARY", {
|
|
4
|
+
slug: "ragie-get-document-summary",
|
|
5
|
+
name: "Get Document Summary",
|
|
6
|
+
description: "Tool to retrieve an LLM-generated summary of a document by its ID. Use when you need to get a concise summary of a document's content.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
partition: z.string().describe("Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition; older accounts scope to all partitions.").optional(),
|
|
9
|
+
document_id: z.string().describe("The unique identifier of the document (UUID format).")
|
|
10
|
+
}).describe("Request model for retrieving a document summary."),
|
|
11
|
+
output: z.object({
|
|
12
|
+
summary: z.string().describe("The LLM-generated summary text of the document."),
|
|
13
|
+
document_id: z.string().describe("The ID of the summarized document.")
|
|
14
|
+
}).describe("Response model for document summary.")
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ragieGetDocumentSummary };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=get-document-summary.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-document-summary.mjs","names":[],"sources":["../../src/actions/get-document-summary.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentSummaryInput: z.ZodTypeAny = z.object({\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition; older accounts scope to all partitions.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for retrieving a document summary.\");\nexport const RagieGetDocumentSummaryOutput: z.ZodTypeAny = z.object({\n summary: z.string().describe(\"The LLM-generated summary text of the document.\"),\n document_id: z.string().describe(\"The ID of the summarized document.\"),\n}).describe(\"Response model for document summary.\");\n\nexport const ragieGetDocumentSummary = action(\"RAGIE_GET_DOCUMENT_SUMMARY\", {\n slug: \"ragie-get-document-summary\",\n name: \"Get Document Summary\",\n description: \"Tool to retrieve an LLM-generated summary of a document by its ID. Use when you need to get a concise summary of a document's content.\",\n input: RagieGetDocumentSummaryInput,\n output: RagieGetDocumentSummaryOutput,\n});\n"],"mappings":";;AAaA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbwD,EAAE,OAAO;EACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;EAC3L,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACzF,CAAC,CAAC,CAAC,SAAS,kDAUH;CACP,QAVyD,EAAE,OAAO;EAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACvE,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
|