@keystrokehq/ragie 0.1.0 → 0.1.2
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 +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-document-from-url.cjs +5 -5
- package/dist/actions/create-document-from-url.cjs.map +1 -1
- package/dist/actions/create-document-from-url.d.cts +28 -3
- package/dist/actions/create-document-from-url.d.cts.map +1 -1
- package/dist/actions/create-document-from-url.d.mts +28 -3
- package/dist/actions/create-document-from-url.d.mts.map +1 -1
- package/dist/actions/create-document-from-url.mjs +5 -5
- package/dist/actions/create-document-from-url.mjs.map +1 -1
- package/dist/actions/create-document-raw.cjs +5 -5
- package/dist/actions/create-document-raw.cjs.map +1 -1
- package/dist/actions/create-document-raw.d.cts +26 -3
- package/dist/actions/create-document-raw.d.cts.map +1 -1
- package/dist/actions/create-document-raw.d.mts +26 -3
- package/dist/actions/create-document-raw.d.mts.map +1 -1
- package/dist/actions/create-document-raw.mjs +5 -5
- package/dist/actions/create-document-raw.mjs.map +1 -1
- package/dist/actions/create-document.cjs +7 -7
- package/dist/actions/create-document.cjs.map +1 -1
- package/dist/actions/create-document.d.cts +42 -3
- package/dist/actions/create-document.d.cts.map +1 -1
- package/dist/actions/create-document.d.mts +42 -3
- package/dist/actions/create-document.d.mts.map +1 -1
- package/dist/actions/create-document.mjs +7 -7
- package/dist/actions/create-document.mjs.map +1 -1
- package/dist/actions/create-instruction.cjs +7 -7
- package/dist/actions/create-instruction.cjs.map +1 -1
- package/dist/actions/create-instruction.d.cts +33 -3
- package/dist/actions/create-instruction.d.cts.map +1 -1
- package/dist/actions/create-instruction.d.mts +33 -3
- package/dist/actions/create-instruction.d.mts.map +1 -1
- package/dist/actions/create-instruction.mjs +7 -7
- package/dist/actions/create-instruction.mjs.map +1 -1
- package/dist/actions/create-oauth-redirect-url.cjs +1 -1
- package/dist/actions/create-oauth-redirect-url.cjs.map +1 -1
- package/dist/actions/create-oauth-redirect-url.d.cts +25 -3
- package/dist/actions/create-oauth-redirect-url.d.cts.map +1 -1
- package/dist/actions/create-oauth-redirect-url.d.mts +25 -3
- package/dist/actions/create-oauth-redirect-url.d.mts.map +1 -1
- package/dist/actions/create-oauth-redirect-url.mjs +1 -1
- package/dist/actions/create-oauth-redirect-url.mjs.map +1 -1
- package/dist/actions/create-partition-partitions-post.cjs +3 -3
- package/dist/actions/create-partition-partitions-post.cjs.map +1 -1
- package/dist/actions/create-partition-partitions-post.d.cts +83 -3
- package/dist/actions/create-partition-partitions-post.d.cts.map +1 -1
- package/dist/actions/create-partition-partitions-post.d.mts +83 -3
- package/dist/actions/create-partition-partitions-post.d.mts.map +1 -1
- package/dist/actions/create-partition-partitions-post.mjs +3 -3
- package/dist/actions/create-partition-partitions-post.mjs.map +1 -1
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +13 -3
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +13 -3
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-instruction.cjs.map +1 -1
- package/dist/actions/delete-instruction.d.cts +9 -3
- package/dist/actions/delete-instruction.d.cts.map +1 -1
- package/dist/actions/delete-instruction.d.mts +9 -3
- package/dist/actions/delete-instruction.d.mts.map +1 -1
- package/dist/actions/delete-instruction.mjs.map +1 -1
- package/dist/actions/delete-partition.cjs.map +1 -1
- package/dist/actions/delete-partition.d.cts +11 -3
- package/dist/actions/delete-partition.d.cts.map +1 -1
- package/dist/actions/delete-partition.d.mts +11 -3
- package/dist/actions/delete-partition.d.mts.map +1 -1
- package/dist/actions/delete-partition.mjs.map +1 -1
- package/dist/actions/get-document-chunk-content.cjs +1 -1
- package/dist/actions/get-document-chunk-content.cjs.map +1 -1
- package/dist/actions/get-document-chunk-content.d.cts +31 -3
- package/dist/actions/get-document-chunk-content.d.cts.map +1 -1
- package/dist/actions/get-document-chunk-content.d.mts +31 -3
- package/dist/actions/get-document-chunk-content.d.mts.map +1 -1
- package/dist/actions/get-document-chunk-content.mjs +1 -1
- package/dist/actions/get-document-chunk-content.mjs.map +1 -1
- package/dist/actions/get-document-chunk.cjs +3 -3
- package/dist/actions/get-document-chunk.cjs.map +1 -1
- package/dist/actions/get-document-chunk.d.cts +18 -3
- package/dist/actions/get-document-chunk.d.cts.map +1 -1
- package/dist/actions/get-document-chunk.d.mts +18 -3
- package/dist/actions/get-document-chunk.d.mts.map +1 -1
- package/dist/actions/get-document-chunk.mjs +3 -3
- package/dist/actions/get-document-chunk.mjs.map +1 -1
- package/dist/actions/get-document-chunks.cjs +3 -3
- package/dist/actions/get-document-chunks.cjs.map +1 -1
- package/dist/actions/get-document-chunks.d.cts +29 -3
- package/dist/actions/get-document-chunks.d.cts.map +1 -1
- package/dist/actions/get-document-chunks.d.mts +29 -3
- package/dist/actions/get-document-chunks.d.mts.map +1 -1
- package/dist/actions/get-document-chunks.mjs +3 -3
- package/dist/actions/get-document-chunks.mjs.map +1 -1
- package/dist/actions/get-document-content.cjs +1 -1
- package/dist/actions/get-document-content.cjs.map +1 -1
- package/dist/actions/get-document-content.d.cts +27 -3
- package/dist/actions/get-document-content.d.cts.map +1 -1
- package/dist/actions/get-document-content.d.mts +27 -3
- package/dist/actions/get-document-content.d.mts.map +1 -1
- package/dist/actions/get-document-content.mjs +1 -1
- package/dist/actions/get-document-content.mjs.map +1 -1
- package/dist/actions/get-document-summary.cjs +2 -2
- package/dist/actions/get-document-summary.cjs.map +1 -1
- package/dist/actions/get-document-summary.d.cts +12 -3
- package/dist/actions/get-document-summary.d.cts.map +1 -1
- package/dist/actions/get-document-summary.d.mts +12 -3
- package/dist/actions/get-document-summary.d.mts.map +1 -1
- package/dist/actions/get-document-summary.mjs +2 -2
- package/dist/actions/get-document-summary.mjs.map +1 -1
- package/dist/actions/get-document.cjs +6 -6
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +21 -3
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +21 -3
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +6 -6
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-partition.cjs +3 -3
- package/dist/actions/get-partition.cjs.map +1 -1
- package/dist/actions/get-partition.d.cts +43 -3
- package/dist/actions/get-partition.d.cts.map +1 -1
- package/dist/actions/get-partition.d.mts +43 -3
- package/dist/actions/get-partition.d.mts.map +1 -1
- package/dist/actions/get-partition.mjs +3 -3
- package/dist/actions/get-partition.mjs.map +1 -1
- package/dist/actions/get-response.cjs.map +1 -1
- package/dist/actions/get-response.d.cts +78 -3
- package/dist/actions/get-response.d.cts.map +1 -1
- package/dist/actions/get-response.d.mts +78 -3
- package/dist/actions/get-response.d.mts.map +1 -1
- package/dist/actions/get-response.mjs.map +1 -1
- package/dist/actions/list-connection-source-types.cjs +4 -4
- package/dist/actions/list-connection-source-types.cjs.map +1 -1
- package/dist/actions/list-connection-source-types.d.cts +10 -3
- package/dist/actions/list-connection-source-types.d.cts.map +1 -1
- package/dist/actions/list-connection-source-types.d.mts +10 -3
- package/dist/actions/list-connection-source-types.d.mts.map +1 -1
- package/dist/actions/list-connection-source-types.mjs +4 -4
- package/dist/actions/list-connection-source-types.mjs.map +1 -1
- package/dist/actions/list-connections-connections-get.cjs +8 -8
- package/dist/actions/list-connections-connections-get.cjs.map +1 -1
- package/dist/actions/list-connections-connections-get.d.cts +31 -3
- package/dist/actions/list-connections-connections-get.d.cts.map +1 -1
- package/dist/actions/list-connections-connections-get.d.mts +31 -3
- package/dist/actions/list-connections-connections-get.d.mts.map +1 -1
- package/dist/actions/list-connections-connections-get.mjs +8 -8
- package/dist/actions/list-connections-connections-get.mjs.map +1 -1
- package/dist/actions/list-documents.cjs +7 -7
- package/dist/actions/list-documents.cjs.map +1 -1
- package/dist/actions/list-documents.d.cts +30 -3
- package/dist/actions/list-documents.d.cts.map +1 -1
- package/dist/actions/list-documents.d.mts +30 -3
- package/dist/actions/list-documents.d.mts.map +1 -1
- package/dist/actions/list-documents.mjs +7 -7
- package/dist/actions/list-documents.mjs.map +1 -1
- package/dist/actions/list-entities-by-document.cjs +6 -6
- package/dist/actions/list-entities-by-document.cjs.map +1 -1
- package/dist/actions/list-entities-by-document.d.cts +27 -3
- package/dist/actions/list-entities-by-document.d.cts.map +1 -1
- package/dist/actions/list-entities-by-document.d.mts +27 -3
- package/dist/actions/list-entities-by-document.d.mts.map +1 -1
- package/dist/actions/list-entities-by-document.mjs +6 -6
- package/dist/actions/list-entities-by-document.mjs.map +1 -1
- package/dist/actions/list-entities-by-instruction.cjs +6 -6
- package/dist/actions/list-entities-by-instruction.cjs.map +1 -1
- package/dist/actions/list-entities-by-instruction.d.cts +27 -3
- package/dist/actions/list-entities-by-instruction.d.cts.map +1 -1
- package/dist/actions/list-entities-by-instruction.d.mts +27 -3
- package/dist/actions/list-entities-by-instruction.d.mts.map +1 -1
- package/dist/actions/list-entities-by-instruction.mjs +6 -6
- package/dist/actions/list-entities-by-instruction.mjs.map +1 -1
- package/dist/actions/list-instructions.cjs +7 -7
- package/dist/actions/list-instructions.cjs.map +1 -1
- package/dist/actions/list-instructions.d.cts +19 -3
- package/dist/actions/list-instructions.d.cts.map +1 -1
- package/dist/actions/list-instructions.d.mts +19 -3
- package/dist/actions/list-instructions.d.mts.map +1 -1
- package/dist/actions/list-instructions.mjs +7 -7
- package/dist/actions/list-instructions.mjs.map +1 -1
- package/dist/actions/list-partitions.cjs +4 -4
- package/dist/actions/list-partitions.cjs.map +1 -1
- package/dist/actions/list-partitions.d.cts +36 -3
- package/dist/actions/list-partitions.d.cts.map +1 -1
- package/dist/actions/list-partitions.d.mts +36 -3
- package/dist/actions/list-partitions.d.mts.map +1 -1
- package/dist/actions/list-partitions.mjs +4 -4
- package/dist/actions/list-partitions.mjs.map +1 -1
- package/dist/actions/patch-document-metadata.cjs.map +1 -1
- package/dist/actions/patch-document-metadata.d.cts +16 -3
- package/dist/actions/patch-document-metadata.d.cts.map +1 -1
- package/dist/actions/patch-document-metadata.d.mts +16 -3
- package/dist/actions/patch-document-metadata.d.mts.map +1 -1
- package/dist/actions/patch-document-metadata.mjs.map +1 -1
- package/dist/actions/retrieve.cjs.map +1 -1
- package/dist/actions/retrieve.d.cts +31 -3
- package/dist/actions/retrieve.d.cts.map +1 -1
- package/dist/actions/retrieve.d.mts +31 -3
- package/dist/actions/retrieve.d.mts.map +1 -1
- package/dist/actions/retrieve.mjs.map +1 -1
- package/dist/actions/set-partition-limits.cjs +3 -3
- package/dist/actions/set-partition-limits.cjs.map +1 -1
- package/dist/actions/set-partition-limits.d.cts +61 -3
- package/dist/actions/set-partition-limits.d.cts.map +1 -1
- package/dist/actions/set-partition-limits.d.mts +61 -3
- package/dist/actions/set-partition-limits.d.mts.map +1 -1
- package/dist/actions/set-partition-limits.mjs +3 -3
- package/dist/actions/set-partition-limits.mjs.map +1 -1
- package/dist/actions/update-document-from-url.cjs +1 -1
- package/dist/actions/update-document-from-url.cjs.map +1 -1
- package/dist/actions/update-document-from-url.d.cts +22 -3
- package/dist/actions/update-document-from-url.d.cts.map +1 -1
- package/dist/actions/update-document-from-url.d.mts +22 -3
- package/dist/actions/update-document-from-url.d.mts.map +1 -1
- package/dist/actions/update-document-from-url.mjs +1 -1
- package/dist/actions/update-document-from-url.mjs.map +1 -1
- package/dist/actions/update-document-raw.cjs +1 -1
- package/dist/actions/update-document-raw.cjs.map +1 -1
- package/dist/actions/update-document-raw.d.cts +11 -3
- package/dist/actions/update-document-raw.d.cts.map +1 -1
- package/dist/actions/update-document-raw.d.mts +11 -3
- package/dist/actions/update-document-raw.d.mts.map +1 -1
- package/dist/actions/update-document-raw.mjs +1 -1
- package/dist/actions/update-document-raw.mjs.map +1 -1
- package/dist/actions/update-instruction.cjs +7 -7
- package/dist/actions/update-instruction.cjs.map +1 -1
- package/dist/actions/update-instruction.d.cts +20 -3
- package/dist/actions/update-instruction.d.cts.map +1 -1
- package/dist/actions/update-instruction.d.mts +20 -3
- package/dist/actions/update-instruction.d.mts.map +1 -1
- package/dist/actions/update-instruction.mjs +7 -7
- package/dist/actions/update-instruction.mjs.map +1 -1
- package/dist/actions/update-partition.cjs +16 -16
- package/dist/actions/update-partition.cjs.map +1 -1
- package/dist/actions/update-partition.d.cts +49 -3
- package/dist/actions/update-partition.d.cts.map +1 -1
- package/dist/actions/update-partition.d.mts +49 -3
- package/dist/actions/update-partition.d.mts.map +1 -1
- package/dist/actions/update-partition.mjs +16 -16
- package/dist/actions/update-partition.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-instructions.d.mts","names":[],"sources":["../../src/actions/list-instructions.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-instructions.d.mts","names":[],"sources":["../../src/actions/list-instructions.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAa1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,15 +3,15 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-instructions.ts
|
|
4
4
|
const RagieListInstructionsInput = z.object({}).describe("Request model for listing instructions. No parameters are required for this request.");
|
|
5
5
|
const RagieListInstructions_InstructionItemSchema = z.object({
|
|
6
|
-
id: z.string().describe("Unique identifier for the instruction (UUID format)."),
|
|
7
|
-
name: z.string().describe("Unique identifier name for the instruction."),
|
|
8
|
-
scope: z.enum(["document", "chunk"]).describe("Determines the application level. Values: 'document' or 'chunk'."),
|
|
9
|
-
active: z.boolean().describe("Indicates whether the instruction is currently active and applies to documents during creation/update."),
|
|
6
|
+
id: z.string().describe("Unique identifier for the instruction (UUID format).").nullable(),
|
|
7
|
+
name: z.string().describe("Unique identifier name for the instruction.").nullable(),
|
|
8
|
+
scope: z.enum(["document", "chunk"]).describe("Determines the application level. Values: 'document' or 'chunk'.").nullable(),
|
|
9
|
+
active: z.boolean().describe("Indicates whether the instruction is currently active and applies to documents during creation/update.").nullable(),
|
|
10
10
|
filter: z.record(z.string(), z.unknown()).describe("Metadata filter for matching documents. Supports operators: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin.").nullable().optional(),
|
|
11
|
-
prompt: z.string().describe("Natural language instruction text that is applied to documents."),
|
|
11
|
+
prompt: z.string().describe("Natural language instruction text that is applied to documents.").nullable(),
|
|
12
12
|
partition: z.string().describe("Partition identifier to scope the instruction to a specific partition.").nullable().optional(),
|
|
13
|
-
created_at: z.string().describe("ISO 8601 timestamp when the instruction was created."),
|
|
14
|
-
updated_at: z.string().describe("ISO 8601 timestamp when the instruction was last modified."),
|
|
13
|
+
created_at: z.string().describe("ISO 8601 timestamp when the instruction was created.").nullable(),
|
|
14
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the instruction was last modified.").nullable(),
|
|
15
15
|
entity_schema: z.record(z.string(), z.unknown()).describe("JSON Schema object defining the structure of entities to be extracted. Root must be of object type.")
|
|
16
16
|
}).describe("Schema for a single instruction item in the list.");
|
|
17
17
|
const ragieListInstructions = action("RAGIE_LIST_INSTRUCTIONS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-instructions.mjs","names":[],"sources":["../../src/actions/list-instructions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListInstructionsInput
|
|
1
|
+
{"version":3,"file":"list-instructions.mjs","names":[],"sources":["../../src/actions/list-instructions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListInstructionsInput = z.object({}).describe(\"Request model for listing instructions. No parameters are required for this request.\");\nconst RagieListInstructions_InstructionItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the instruction (UUID format).\").nullable(),\n name: z.string().describe(\"Unique identifier name for the instruction.\").nullable(),\n scope: z.enum([\"document\", \"chunk\"]).describe(\"Determines the application level. Values: 'document' or 'chunk'.\").nullable(),\n active: z.boolean().describe(\"Indicates whether the instruction is currently active and applies to documents during creation/update.\").nullable(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter for matching documents. Supports operators: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin.\").nullable().optional(),\n prompt: z.string().describe(\"Natural language instruction text that is applied to documents.\").nullable(),\n partition: z.string().describe(\"Partition identifier to scope the instruction to a specific partition.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the instruction was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the instruction was last modified.\").nullable(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema object defining the structure of entities to be extracted. Root must be of object type.\"),\n}).describe(\"Schema for a single instruction item in the list.\");\nexport const RagieListInstructionsOutput = z.object({\n instructions: z.array(RagieListInstructions_InstructionItemSchema).describe(\"List of instruction objects.\"),\n}).describe(\"Response schema for listing instructions.\");\n\nexport const ragieListInstructions = action(\"RAGIE_LIST_INSTRUCTIONS\", {\n slug: \"ragie-list-instructions\",\n name: \"List Instructions\",\n description: \"Tool to retrieve all instruction records from the Ragie system. Use when you need to view all available instructions that define natural language prompts and entity schemas applied to documents.\",\n input: RagieListInstructionsInput,\n output: RagieListInstructionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,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_PaginationMetadataSchema = zod.z.object({
|
|
9
9
|
next_cursor: zod.z.string().describe("Cursor for retrieving subsequent pages (null if no more pages)").nullable().optional(),
|
|
10
|
-
total_count: zod.z.number().int().describe("Total number of partitions available")
|
|
10
|
+
total_count: zod.z.number().int().describe("Total number of partitions available").nullable()
|
|
11
11
|
}).describe("Pagination metadata for the response.");
|
|
12
12
|
const RagieListPartitions_PartitionLimitsSchema = zod.z.object({
|
|
13
13
|
media_hosted_limit_max: zod.z.number().int().describe("Maximum limit, in MBs, for media hosted").nullable().optional(),
|
|
@@ -24,11 +24,11 @@ const RagieListPartitions_PartitionLimitsSchema = zod.z.object({
|
|
|
24
24
|
video_processed_limit_monthly: zod.z.number().int().describe("Monthly limit, in minutes, for video processing").nullable().optional()
|
|
25
25
|
}).describe("Usage limits configuration for a partition.");
|
|
26
26
|
const RagieListPartitions_PartitionSchema = zod.z.object({
|
|
27
|
-
name: zod.z.string().describe("Partition identifier"),
|
|
27
|
+
name: zod.z.string().describe("Partition identifier").nullable(),
|
|
28
28
|
limits: RagieListPartitions_PartitionLimitsSchema.nullable(),
|
|
29
|
-
is_default: zod.z.boolean().describe("Whether this is the default partition"),
|
|
29
|
+
is_default: zod.z.boolean().describe("Whether this is the default partition").nullable(),
|
|
30
30
|
description: zod.z.string().describe("Partition description").nullable().optional(),
|
|
31
|
-
context_aware: zod.z.boolean().describe("Context-awareness status"),
|
|
31
|
+
context_aware: zod.z.boolean().describe("Context-awareness status").nullable(),
|
|
32
32
|
metadata_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Schema for partition metadata").nullable().optional(),
|
|
33
33
|
limit_exceeded_at: zod.z.string().describe("Timestamp when partition exceeded limits").nullable().optional()
|
|
34
34
|
}).describe("Partition object containing details about a single partition.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-partitions.cjs","names":["z","action"],"sources":["../../src/actions/list-partitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListPartitionsInput
|
|
1
|
+
{"version":3,"file":"list-partitions.cjs","names":["z","action"],"sources":["../../src/actions/list-partitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListPartitionsInput = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination to retrieve the next page of results\").optional(),\n page_size: z.number().int().describe(\"The number of items per page (must be greater than 0 and less than or equal to 100). Defaults to 10.\").optional(),\n}).describe(\"Request model for listing partitions.\");\nconst RagieListPartitions_PaginationMetadataSchema = z.object({\n next_cursor: z.string().describe(\"Cursor for retrieving subsequent pages (null if no more pages)\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of partitions available\").nullable(),\n}).describe(\"Pagination metadata for the response.\");\nconst RagieListPartitions_PartitionLimitsSchema = z.object({\n media_hosted_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Maximum limit, in pages, for hosted documents\").nullable().optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_max: z.number().int().describe(\"Maximum limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for video processing\").nullable().optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly limit of hosted pages added in current month\").nullable().optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for video processing\").nullable().optional(),\n}).describe(\"Usage limits configuration for a partition.\");\nconst RagieListPartitions_PartitionSchema = z.object({\n name: z.string().describe(\"Partition identifier\").nullable(),\n limits: RagieListPartitions_PartitionLimitsSchema.nullable(),\n is_default: z.boolean().describe(\"Whether this is the default partition\").nullable(),\n description: z.string().describe(\"Partition description\").nullable().optional(),\n context_aware: z.boolean().describe(\"Context-awareness status\").nullable(),\n metadata_schema: z.record(z.string(), z.unknown()).describe(\"Schema for partition metadata\").nullable().optional(),\n limit_exceeded_at: z.string().describe(\"Timestamp when partition exceeded limits\").nullable().optional(),\n}).describe(\"Partition object containing details about a single partition.\");\nexport const RagieListPartitionsOutput = z.object({\n pagination: RagieListPartitions_PaginationMetadataSchema.nullable(),\n partitions: z.array(RagieListPartitions_PartitionSchema).describe(\"Array of Partition objects\"),\n}).describe(\"Response model for listing partitions.\");\n\nexport const ragieListPartitions = action(\"RAGIE_LIST_PARTITIONS\", {\n slug: \"ragie-list-partitions\",\n name: \"List Partitions\",\n description: \"Tool to retrieve a paginated list of all partitions sorted by name in ascending order. Use when you need to list available partitions with their configurations and limits.\",\n input: RagieListPartitionsInput,\n output: RagieListPartitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SA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CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-partitions.d.ts
|
|
4
|
-
declare const RagieListPartitionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieListPartitionsInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RagieListPartitionsOutput: z.ZodObject<{
|
|
9
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
total_count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
partitions: z.ZodArray<z.ZodObject<{
|
|
14
|
+
name: z.ZodNullable<z.ZodString>;
|
|
15
|
+
limits: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
media_hosted_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
pages_hosted_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
media_streamed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
audio_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
pages_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
video_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
media_hosted_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
pages_hosted_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
media_streamed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
audio_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
pages_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
video_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
is_default: z.ZodNullable<z.ZodBoolean>;
|
|
30
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
context_aware: z.ZodNullable<z.ZodBoolean>;
|
|
32
|
+
metadata_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
33
|
+
limit_exceeded_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const ragieListPartitions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
cursor?: string | undefined;
|
|
38
|
+
page_size?: number | undefined;
|
|
39
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
40
|
//#endregion
|
|
8
41
|
export { ragieListPartitions };
|
|
9
42
|
//# sourceMappingURL=list-partitions.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-partitions.d.cts","names":[],"sources":["../../src/actions/list-partitions.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"list-partitions.d.cts","names":[],"sources":["../../src/actions/list-partitions.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA+BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-partitions.d.ts
|
|
4
|
-
declare const RagieListPartitionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieListPartitionsInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RagieListPartitionsOutput: z.ZodObject<{
|
|
9
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
total_count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
partitions: z.ZodArray<z.ZodObject<{
|
|
14
|
+
name: z.ZodNullable<z.ZodString>;
|
|
15
|
+
limits: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
media_hosted_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
pages_hosted_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
media_streamed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
audio_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
pages_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
video_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
media_hosted_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
pages_hosted_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
media_streamed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
audio_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
pages_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
video_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
is_default: z.ZodNullable<z.ZodBoolean>;
|
|
30
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
context_aware: z.ZodNullable<z.ZodBoolean>;
|
|
32
|
+
metadata_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
33
|
+
limit_exceeded_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const ragieListPartitions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
cursor?: string | undefined;
|
|
38
|
+
page_size?: number | undefined;
|
|
39
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
40
|
//#endregion
|
|
8
41
|
export { ragieListPartitions };
|
|
9
42
|
//# sourceMappingURL=list-partitions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-partitions.d.mts","names":[],"sources":["../../src/actions/list-partitions.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"list-partitions.d.mts","names":[],"sources":["../../src/actions/list-partitions.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA+BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -7,7 +7,7 @@ const RagieListPartitionsInput = z.object({
|
|
|
7
7
|
}).describe("Request model for listing partitions.");
|
|
8
8
|
const RagieListPartitions_PaginationMetadataSchema = z.object({
|
|
9
9
|
next_cursor: z.string().describe("Cursor for retrieving subsequent pages (null if no more pages)").nullable().optional(),
|
|
10
|
-
total_count: z.number().int().describe("Total number of partitions available")
|
|
10
|
+
total_count: z.number().int().describe("Total number of partitions available").nullable()
|
|
11
11
|
}).describe("Pagination metadata for the response.");
|
|
12
12
|
const RagieListPartitions_PartitionLimitsSchema = z.object({
|
|
13
13
|
media_hosted_limit_max: z.number().int().describe("Maximum limit, in MBs, for media hosted").nullable().optional(),
|
|
@@ -24,11 +24,11 @@ const RagieListPartitions_PartitionLimitsSchema = z.object({
|
|
|
24
24
|
video_processed_limit_monthly: z.number().int().describe("Monthly limit, in minutes, for video processing").nullable().optional()
|
|
25
25
|
}).describe("Usage limits configuration for a partition.");
|
|
26
26
|
const RagieListPartitions_PartitionSchema = z.object({
|
|
27
|
-
name: z.string().describe("Partition identifier"),
|
|
27
|
+
name: z.string().describe("Partition identifier").nullable(),
|
|
28
28
|
limits: RagieListPartitions_PartitionLimitsSchema.nullable(),
|
|
29
|
-
is_default: z.boolean().describe("Whether this is the default partition"),
|
|
29
|
+
is_default: z.boolean().describe("Whether this is the default partition").nullable(),
|
|
30
30
|
description: z.string().describe("Partition description").nullable().optional(),
|
|
31
|
-
context_aware: z.boolean().describe("Context-awareness status"),
|
|
31
|
+
context_aware: z.boolean().describe("Context-awareness status").nullable(),
|
|
32
32
|
metadata_schema: z.record(z.string(), z.unknown()).describe("Schema for partition metadata").nullable().optional(),
|
|
33
33
|
limit_exceeded_at: z.string().describe("Timestamp when partition exceeded limits").nullable().optional()
|
|
34
34
|
}).describe("Partition object containing details about a single partition.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-partitions.mjs","names":[],"sources":["../../src/actions/list-partitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListPartitionsInput
|
|
1
|
+
{"version":3,"file":"list-partitions.mjs","names":[],"sources":["../../src/actions/list-partitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListPartitionsInput = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination to retrieve the next page of results\").optional(),\n page_size: z.number().int().describe(\"The number of items per page (must be greater than 0 and less than or equal to 100). Defaults to 10.\").optional(),\n}).describe(\"Request model for listing partitions.\");\nconst RagieListPartitions_PaginationMetadataSchema = z.object({\n next_cursor: z.string().describe(\"Cursor for retrieving subsequent pages (null if no more pages)\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of partitions available\").nullable(),\n}).describe(\"Pagination metadata for the response.\");\nconst RagieListPartitions_PartitionLimitsSchema = z.object({\n media_hosted_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Maximum limit, in pages, for hosted documents\").nullable().optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_max: z.number().int().describe(\"Maximum limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for video processing\").nullable().optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly limit of hosted pages added in current month\").nullable().optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for video processing\").nullable().optional(),\n}).describe(\"Usage limits configuration for a partition.\");\nconst RagieListPartitions_PartitionSchema = z.object({\n name: z.string().describe(\"Partition identifier\").nullable(),\n limits: RagieListPartitions_PartitionLimitsSchema.nullable(),\n is_default: z.boolean().describe(\"Whether this is the default partition\").nullable(),\n description: z.string().describe(\"Partition description\").nullable().optional(),\n context_aware: z.boolean().describe(\"Context-awareness status\").nullable(),\n metadata_schema: z.record(z.string(), z.unknown()).describe(\"Schema for partition metadata\").nullable().optional(),\n limit_exceeded_at: z.string().describe(\"Timestamp when partition exceeded limits\").nullable().optional(),\n}).describe(\"Partition object containing details about a single partition.\");\nexport const RagieListPartitionsOutput = z.object({\n pagination: RagieListPartitions_PaginationMetadataSchema.nullable(),\n partitions: z.array(RagieListPartitions_PartitionSchema).describe(\"Array of Partition objects\"),\n}).describe(\"Response model for listing partitions.\");\n\nexport const ragieListPartitions = action(\"RAGIE_LIST_PARTITIONS\", {\n slug: \"ragie-list-partitions\",\n name: \"List Partitions\",\n description: \"Tool to retrieve a paginated list of all partitions sorted by name in ascending order. Use when you need to list available partitions with their configurations and limits.\",\n input: RagieListPartitionsInput,\n output: RagieListPartitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4C,EAAE,OAAO;CACzD,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,wBAAwB,EAAE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;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,QAAQ,0CAA0C,SAAS;CAC3D,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAM3E,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,YAAY,6CAA6C,SAAS;EAClE,YAAY,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4BAA4B;CAChG,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-document-metadata.cjs","names":["z","action"],"sources":["../../src/actions/patch-document-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagiePatchDocumentMetadataInput
|
|
1
|
+
{"version":3,"file":"patch-document-metadata.cjs","names":["z","action"],"sources":["../../src/actions/patch-document-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagiePatchDocumentMetadataInput = z.object({\n async: z.boolean().default(false).describe(\"Whether to run the metadata update asynchronously. If true, the metadata update will be run in the background and the response will be 202 Accepted.\").optional(),\n metadata: z.object({}).describe(\"The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed.\"),\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for patching document metadata with partial updates.\");\nexport const RagiePatchDocumentMetadataOutput = z.object({\n status: z.string().describe(\"Status string indicating the operation was accepted for background processing. Present when async=true (202 Accepted).\").nullable().optional(),\n metadata: z.object({}).describe(\"The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).\").nullable().optional(),\n}).describe(\"Response model for patching document metadata.\");\n\nexport const ragiePatchDocumentMetadata = action(\"RAGIE_PATCH_DOCUMENT_METADATA\", {\n slug: \"ragie-patch-document-metadata\",\n name: \"Patch Document Metadata\",\n description: \"Tool to update metadata for a specific document with partial update support. Use when you need to modify document metadata fields without replacing the entire metadata object. Supports both synchronous and asynchronous updates.\",\n input: RagiePatchDocumentMetadataInput,\n output: RagiePatchDocumentMetadataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC5M,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gMAAgM;CAChO,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACnJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACzF,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpP,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/patch-document-metadata.d.ts
|
|
4
|
-
declare const RagiePatchDocumentMetadataInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagiePatchDocumentMetadataInput: z.ZodObject<{
|
|
5
|
+
async: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6
|
+
metadata: z.ZodObject<{}, z.core.$strip>;
|
|
7
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
8
|
+
document_id: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const RagiePatchDocumentMetadataOutput: z.ZodObject<{
|
|
11
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const ragiePatchDocumentMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
metadata: Record<string, never>;
|
|
16
|
+
document_id: string;
|
|
17
|
+
async?: boolean | undefined;
|
|
18
|
+
partition?: string | undefined;
|
|
19
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { ragiePatchDocumentMetadata };
|
|
9
22
|
//# sourceMappingURL=patch-document-metadata.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-document-metadata.d.cts","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"patch-document-metadata.d.cts","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA;YAMrC,MAAA"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/patch-document-metadata.d.ts
|
|
4
|
-
declare const RagiePatchDocumentMetadataInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagiePatchDocumentMetadataInput: z.ZodObject<{
|
|
5
|
+
async: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6
|
+
metadata: z.ZodObject<{}, z.core.$strip>;
|
|
7
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
8
|
+
document_id: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const RagiePatchDocumentMetadataOutput: z.ZodObject<{
|
|
11
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const ragiePatchDocumentMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
metadata: Record<string, never>;
|
|
16
|
+
document_id: string;
|
|
17
|
+
async?: boolean | undefined;
|
|
18
|
+
partition?: string | undefined;
|
|
19
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { ragiePatchDocumentMetadata };
|
|
9
22
|
//# sourceMappingURL=patch-document-metadata.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-document-metadata.d.mts","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"patch-document-metadata.d.mts","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA;YAMrC,MAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-document-metadata.mjs","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagiePatchDocumentMetadataInput
|
|
1
|
+
{"version":3,"file":"patch-document-metadata.mjs","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagiePatchDocumentMetadataInput = z.object({\n async: z.boolean().default(false).describe(\"Whether to run the metadata update asynchronously. If true, the metadata update will be run in the background and the response will be 202 Accepted.\").optional(),\n metadata: z.object({}).describe(\"The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed.\"),\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for patching document metadata with partial updates.\");\nexport const RagiePatchDocumentMetadataOutput = z.object({\n status: z.string().describe(\"Status string indicating the operation was accepted for background processing. Present when async=true (202 Accepted).\").nullable().optional(),\n metadata: z.object({}).describe(\"The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).\").nullable().optional(),\n}).describe(\"Response model for patching document metadata.\");\n\nexport const ragiePatchDocumentMetadata = action(\"RAGIE_PATCH_DOCUMENT_METADATA\", {\n slug: \"ragie-patch-document-metadata\",\n name: \"Patch Document Metadata\",\n description: \"Tool to update metadata for a specific document with partial update support. Use when you need to modify document metadata fields without replacing the entire metadata object. Supports both synchronous and asynchronous updates.\",\n input: RagiePatchDocumentMetadataInput,\n output: RagiePatchDocumentMetadataOutput,\n});\n"],"mappings":";;AAeA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6C,EAAE,OAAO;EACtD,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;EAC5M,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gMAAgM;EAChO,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;EACnJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACzF,CAAC,CAAC,CAAC,SAAS,oEAUH;CACP,QAV8C,EAAE,OAAO;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1K,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpP,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve.cjs","names":["z","action"],"sources":["../../src/actions/retrieve.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieRetrieveInput
|
|
1
|
+
{"version":3,"file":"retrieve.cjs","names":["z","action"],"sources":["../../src/actions/retrieve.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieRetrieveInput = z.object({\n query: z.string().describe(\"The query to search with when retrieving document chunks.\"),\n top_k: z.number().int().default(8).describe(\"The maximum number of chunks to return. Defaults to 8.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata search filter supporting operators: $eq (equal), $ne (not equal), $gt (greater than), $gte (greater than or equal), $lt (less than), $lte (less than or equal), $in (in array), $nin (not in array). Example: {\\\"department\\\": {\\\"$in\\\": [\\\"sales\\\", \\\"marketing\\\"]}}.\").optional(),\n rerank: z.boolean().default(false).describe(\"Reranks the chunks for semantic relevancy post cosine similarity.\").optional(),\n partition: z.string().describe(\"The partition to scope a retrieval to. If omitted, the retrieval will be scoped to the default partition.\").optional(),\n recency_bias: z.boolean().default(false).describe(\"Enables recency bias which will favor more recent documents vs older documents.\").optional(),\n max_chunks_per_document: z.number().int().describe(\"Maximum number of chunks to retrieve per document.\").optional(),\n}).describe(\"Request model for retrieving document chunks based on a query.\");\nconst RagieRetrieve_ScoredChunkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the chunk.\").nullable().optional(),\n text: z.string().describe(\"The chunk content/text.\").nullable().optional(),\n index: z.number().int().describe(\"Position/index of the chunk within the source document.\").nullable().optional(),\n links: z.record(z.string(), z.unknown()).describe(\"Navigation references.\").nullable().optional(),\n score: z.number().describe(\"Relevance score indicating how well the chunk matches the query.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata.\").nullable().optional(),\n document_id: z.string().describe(\"Identifier of the source document.\").nullable().optional(),\n document_name: z.string().describe(\"Name of the source document.\").nullable().optional(),\n document_metadata: z.record(z.string(), z.unknown()).describe(\"Document-level metadata.\").nullable().optional(),\n}).describe(\"A document chunk with its relevance score.\");\nexport const RagieRetrieveOutput = z.object({\n scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe(\"Array of retrieved document chunks with relevance scores.\"),\n}).describe(\"Response model for document chunk retrieval.\");\n\nexport const ragieRetrieve = action(\"RAGIE_RETRIEVE\", {\n slug: \"ragie-retrieve\",\n name: \"Retrieve Document Chunks\",\n description: \"Tool to retrieve relevant document chunks based on a query. Use when you need to search and retrieve document content that matches a specific query, with optional filtering and reranking capabilities.\",\n input: RagieRetrieveInput,\n output: RagieRetrieveOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iRAAiR,CAAC,CAAC,SAAS;CAC/U,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC1H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACrJ,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC9I,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CA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Input: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieRetrieveInput: z.ZodObject<{
|
|
5
|
+
query: z.ZodString;
|
|
6
|
+
top_k: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
rerank: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
9
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
10
|
+
recency_bias: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
11
|
+
max_chunks_per_document: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const RagieRetrieveOutput: z.ZodObject<{
|
|
14
|
+
scored_chunks: z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
19
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
+
document_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
document_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
document_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const ragieRetrieve: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
query: string;
|
|
28
|
+
top_k?: number | undefined;
|
|
29
|
+
filter?: Record<string, unknown> | undefined;
|
|
30
|
+
rerank?: boolean | undefined;
|
|
31
|
+
partition?: string | undefined;
|
|
32
|
+
recency_bias?: boolean | undefined;
|
|
33
|
+
max_chunks_per_document?: number | undefined;
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { ragieRetrieve };
|
|
9
37
|
//# sourceMappingURL=retrieve.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve.d.cts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;cAIa,kBAAA,
|
|
1
|
+
{"version":3,"file":"retrieve.d.cts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;cAoBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA;;;WAMxB,MAAA"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/retrieve.d.ts
|
|
4
|
-
declare const RagieRetrieveInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieRetrieveInput: z.ZodObject<{
|
|
5
|
+
query: z.ZodString;
|
|
6
|
+
top_k: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
rerank: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
9
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
10
|
+
recency_bias: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
11
|
+
max_chunks_per_document: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const RagieRetrieveOutput: z.ZodObject<{
|
|
14
|
+
scored_chunks: z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
19
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
+
document_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
document_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
document_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const ragieRetrieve: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
query: string;
|
|
28
|
+
top_k?: number | undefined;
|
|
29
|
+
filter?: Record<string, unknown> | undefined;
|
|
30
|
+
rerank?: boolean | undefined;
|
|
31
|
+
partition?: string | undefined;
|
|
32
|
+
recency_bias?: boolean | undefined;
|
|
33
|
+
max_chunks_per_document?: number | undefined;
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { ragieRetrieve };
|
|
9
37
|
//# sourceMappingURL=retrieve.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve.d.mts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;cAIa,kBAAA,
|
|
1
|
+
{"version":3,"file":"retrieve.d.mts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;cAoBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA;;;WAMxB,MAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve.mjs","names":[],"sources":["../../src/actions/retrieve.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieRetrieveInput
|
|
1
|
+
{"version":3,"file":"retrieve.mjs","names":[],"sources":["../../src/actions/retrieve.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieRetrieveInput = z.object({\n query: z.string().describe(\"The query to search with when retrieving document chunks.\"),\n top_k: z.number().int().default(8).describe(\"The maximum number of chunks to return. Defaults to 8.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata search filter supporting operators: $eq (equal), $ne (not equal), $gt (greater than), $gte (greater than or equal), $lt (less than), $lte (less than or equal), $in (in array), $nin (not in array). Example: {\\\"department\\\": {\\\"$in\\\": [\\\"sales\\\", \\\"marketing\\\"]}}.\").optional(),\n rerank: z.boolean().default(false).describe(\"Reranks the chunks for semantic relevancy post cosine similarity.\").optional(),\n partition: z.string().describe(\"The partition to scope a retrieval to. If omitted, the retrieval will be scoped to the default partition.\").optional(),\n recency_bias: z.boolean().default(false).describe(\"Enables recency bias which will favor more recent documents vs older documents.\").optional(),\n max_chunks_per_document: z.number().int().describe(\"Maximum number of chunks to retrieve per document.\").optional(),\n}).describe(\"Request model for retrieving document chunks based on a query.\");\nconst RagieRetrieve_ScoredChunkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the chunk.\").nullable().optional(),\n text: z.string().describe(\"The chunk content/text.\").nullable().optional(),\n index: z.number().int().describe(\"Position/index of the chunk within the source document.\").nullable().optional(),\n links: z.record(z.string(), z.unknown()).describe(\"Navigation references.\").nullable().optional(),\n score: z.number().describe(\"Relevance score indicating how well the chunk matches the query.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata.\").nullable().optional(),\n document_id: z.string().describe(\"Identifier of the source document.\").nullable().optional(),\n document_name: z.string().describe(\"Name of the source document.\").nullable().optional(),\n document_metadata: z.record(z.string(), z.unknown()).describe(\"Document-level metadata.\").nullable().optional(),\n}).describe(\"A document chunk with its relevance score.\");\nexport const RagieRetrieveOutput = z.object({\n scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe(\"Array of retrieved document chunks with relevance scores.\"),\n}).describe(\"Response model for document chunk retrieval.\");\n\nexport const ragieRetrieve = action(\"RAGIE_RETRIEVE\", {\n slug: \"ragie-retrieve\",\n name: \"Retrieve Document Chunks\",\n description: \"Tool to retrieve relevant document chunks based on a query. Use when you need to search and retrieve document content that matches a specific query, with optional filtering and reranking capabilities.\",\n input: RagieRetrieveInput,\n output: RagieRetrieveOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqB,EAAE,OAAO;CACzC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iRAAiR,CAAC,CAAC,SAAS;CAC/U,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC1H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACrJ,cAAc,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC9I,yBAAyB,EAAE,OAAO,CAAC,CAAC,IAAI,CA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AC9H,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -40,12 +40,12 @@ const RagieSetPartitionLimits_PartitionLimitsSchema = zod.z.object({
|
|
|
40
40
|
video_processed_limit_monthly: zod.z.number().int().describe("Monthly video processing limit in minutes.").nullable().optional()
|
|
41
41
|
}).describe("Model for partition limit values.");
|
|
42
42
|
const RagieSetPartitionLimitsOutput = zod.z.object({
|
|
43
|
-
name: zod.z.string().describe("Partition identifier."),
|
|
43
|
+
name: zod.z.string().describe("Partition identifier.").nullable(),
|
|
44
44
|
stats: RagieSetPartitionLimits_PartitionStatsSchema.nullable(),
|
|
45
45
|
limits: RagieSetPartitionLimits_PartitionLimitsSchema.nullable(),
|
|
46
|
-
is_default: zod.z.boolean().describe("Whether this is the default partition."),
|
|
46
|
+
is_default: zod.z.boolean().describe("Whether this is the default partition.").nullable(),
|
|
47
47
|
description: zod.z.string().describe("Partition description.").nullable().optional(),
|
|
48
|
-
context_aware: zod.z.boolean().describe("Context-awareness setting."),
|
|
48
|
+
context_aware: zod.z.boolean().describe("Context-awareness setting.").nullable(),
|
|
49
49
|
metadata_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Schema definition for metadata.").nullable().optional(),
|
|
50
50
|
limit_exceeded_at: zod.z.string().describe("Timestamp when limits were exceeded, if applicable.").nullable().optional()
|
|
51
51
|
}).describe("Response model for partition detail after setting limits.");
|