@keystrokehq/openperplex 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/custom-search-stream.cjs +2 -2
- package/dist/actions/custom-search-stream.cjs.map +1 -1
- package/dist/actions/custom-search-stream.d.cts +2 -2
- package/dist/actions/custom-search-stream.d.mts +2 -2
- package/dist/actions/custom-search-stream.mjs +2 -2
- package/dist/actions/custom-search-stream.mjs.map +1 -1
- package/dist/actions/custom-search.cjs +2 -2
- package/dist/actions/custom-search.cjs.map +1 -1
- package/dist/actions/custom-search.d.cts +2 -2
- package/dist/actions/custom-search.d.mts +2 -2
- package/dist/actions/custom-search.mjs +2 -2
- package/dist/actions/custom-search.mjs.map +1 -1
- package/dist/actions/get-website-markdown.cjs +1 -1
- package/dist/actions/get-website-markdown.cjs.map +1 -1
- package/dist/actions/get-website-markdown.d.cts +1 -1
- package/dist/actions/get-website-markdown.d.mts +1 -1
- package/dist/actions/get-website-markdown.mjs +1 -1
- package/dist/actions/get-website-markdown.mjs.map +1 -1
- package/dist/actions/get-website-screenshot.cjs +1 -1
- package/dist/actions/get-website-screenshot.cjs.map +1 -1
- package/dist/actions/get-website-screenshot.d.cts +1 -1
- package/dist/actions/get-website-screenshot.d.mts +1 -1
- package/dist/actions/get-website-screenshot.mjs +1 -1
- package/dist/actions/get-website-screenshot.mjs.map +1 -1
- package/dist/actions/get-website-text.cjs +1 -1
- package/dist/actions/get-website-text.cjs.map +1 -1
- package/dist/actions/get-website-text.d.cts +4 -4
- package/dist/actions/get-website-text.d.mts +4 -4
- package/dist/actions/get-website-text.mjs +1 -1
- package/dist/actions/get-website-text.mjs.map +1 -1
- package/dist/actions/query-from-url.cjs +1 -1
- package/dist/actions/query-from-url.cjs.map +1 -1
- package/dist/actions/query-from-url.d.cts +4 -4
- package/dist/actions/query-from-url.d.mts +4 -4
- package/dist/actions/query-from-url.mjs +1 -1
- package/dist/actions/query-from-url.mjs.map +1 -1
- package/dist/actions/search-stream.cjs +2 -2
- package/dist/actions/search-stream.cjs.map +1 -1
- package/dist/actions/search-stream.d.cts +5 -5
- package/dist/actions/search-stream.d.mts +5 -5
- package/dist/actions/search-stream.mjs +2 -2
- package/dist/actions/search-stream.mjs.map +1 -1
- package/dist/actions/search.cjs +2 -2
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +5 -5
- package/dist/actions/search.d.mts +5 -5
- package/dist/actions/search.mjs +2 -2
- package/dist/actions/search.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -24,12 +24,12 @@ const OpenperplexCustomSearchStream_SourceItemSchema = zod.z.object({
|
|
|
24
24
|
url: zod.z.string().describe("URL of the source.").nullable().optional(),
|
|
25
25
|
title: zod.z.string().describe("Title of the source.").nullable().optional(),
|
|
26
26
|
snippet: zod.z.string().describe("Snippet or description from the source.").nullable().optional()
|
|
27
|
-
}).describe("A source item from the search results.");
|
|
27
|
+
}).passthrough().describe("A source item from the search results.");
|
|
28
28
|
const OpenperplexCustomSearchStreamOutput = zod.z.object({
|
|
29
29
|
images: zod.z.array(zod.z.string()).describe("List of image URLs if return_images was enabled.").nullable().optional(),
|
|
30
30
|
sources: zod.z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
|
|
31
31
|
response_text: zod.z.string().describe("The full response text aggregated from LLM streaming chunks.").nullable()
|
|
32
|
-
}).describe("Response model for custom streaming search.");
|
|
32
|
+
}).passthrough().describe("Response model for custom streaming search.");
|
|
33
33
|
const openperplexCustomSearchStream = require_action.action("OPENPERPLEX_CUSTOM_SEARCH_STREAM", {
|
|
34
34
|
slug: "openperplex-custom-search-stream",
|
|
35
35
|
name: "Custom Search Stream",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search-stream.cjs","names":["z","action"],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACnG,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAS,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAClL,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAC1J,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,wCAAwC;
|
|
1
|
+
{"version":3,"file":"custom-search-stream.cjs","names":["z","action"],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAA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AAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -29,9 +29,9 @@ declare const OpenperplexCustomSearchStreamOutput: z.ZodObject<{
|
|
|
29
29
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>>>;
|
|
33
33
|
response_text: z.ZodNullable<z.ZodString>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const openperplexCustomSearchStream: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
user_prompt: string;
|
|
37
37
|
system_prompt: string;
|
|
@@ -29,9 +29,9 @@ declare const OpenperplexCustomSearchStreamOutput: z.ZodObject<{
|
|
|
29
29
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>>>;
|
|
33
33
|
response_text: z.ZodNullable<z.ZodString>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const openperplexCustomSearchStream: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
user_prompt: string;
|
|
37
37
|
system_prompt: string;
|
|
@@ -24,7 +24,7 @@ const OpenperplexCustomSearchStream_SourceItemSchema = z.object({
|
|
|
24
24
|
url: z.string().describe("URL of the source.").nullable().optional(),
|
|
25
25
|
title: z.string().describe("Title of the source.").nullable().optional(),
|
|
26
26
|
snippet: z.string().describe("Snippet or description from the source.").nullable().optional()
|
|
27
|
-
}).describe("A source item from the search results.");
|
|
27
|
+
}).passthrough().describe("A source item from the search results.");
|
|
28
28
|
const openperplexCustomSearchStream = action("OPENPERPLEX_CUSTOM_SEARCH_STREAM", {
|
|
29
29
|
slug: "openperplex-custom-search-stream",
|
|
30
30
|
name: "Custom Search Stream",
|
|
@@ -34,7 +34,7 @@ const openperplexCustomSearchStream = action("OPENPERPLEX_CUSTOM_SEARCH_STREAM",
|
|
|
34
34
|
images: z.array(z.string()).describe("List of image URLs if return_images was enabled.").nullable().optional(),
|
|
35
35
|
sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
|
|
36
36
|
response_text: z.string().describe("The full response text aggregated from LLM streaming chunks.").nullable()
|
|
37
|
-
}).describe("Response model for custom streaming search.")
|
|
37
|
+
}).passthrough().describe("Response model for custom streaming search.")
|
|
38
38
|
});
|
|
39
39
|
//#endregion
|
|
40
40
|
export { openperplexCustomSearchStream };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search-stream.mjs","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAa,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACnG,gBAAgB,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAS,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAClL,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAC1J,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,wCAAwC;
|
|
1
|
+
{"version":3,"file":"custom-search-stream.mjs","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAa,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACnG,gBAAgB,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAS,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAClL,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAC1J,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAOlE,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXiD,EAAE,OAAO;EAC1D,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -14,14 +14,14 @@ const OpenperplexCustomSearch_SourceItemSchema = zod.z.object({
|
|
|
14
14
|
url: zod.z.string().describe("URL of the source").nullable().optional(),
|
|
15
15
|
title: zod.z.string().describe("Title of the source").nullable().optional(),
|
|
16
16
|
snippet: zod.z.string().describe("Snippet from the source").nullable().optional()
|
|
17
|
-
}).describe("A source item in the search response.");
|
|
17
|
+
}).passthrough().describe("A source item in the search response.");
|
|
18
18
|
const OpenperplexCustomSearchOutput = zod.z.object({
|
|
19
19
|
error: zod.z.string().describe("Error message if any error occurred during the search.").nullable().optional(),
|
|
20
20
|
images: zod.z.array(zod.z.string()).describe("List of image URLs found in the search.").nullable().optional(),
|
|
21
21
|
sources: zod.z.array(OpenperplexCustomSearch_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
|
|
22
22
|
llm_response: zod.z.string().describe("The LLM-generated response based on the search results.").nullable(),
|
|
23
23
|
response_time: zod.z.number().describe("The time taken to generate the response in seconds.").nullable().optional()
|
|
24
|
-
}).describe("Response model for the CUSTOM_SEARCH action.");
|
|
24
|
+
}).passthrough().describe("Response model for the CUSTOM_SEARCH action.");
|
|
25
25
|
const openperplexCustomSearch = require_action.action("OPENPERPLEX_CUSTOM_SEARCH", {
|
|
26
26
|
slug: "openperplex-custom-search",
|
|
27
27
|
name: "Custom Search",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search.cjs","names":["z","action"],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchInput = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC1E,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,uCAAuC;
|
|
1
|
+
{"version":3,"file":"custom-search.cjs","names":["z","action"],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchInput = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).passthrough().describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,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CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -17,10 +17,10 @@ declare const OpenperplexCustomSearchOutput: z.ZodObject<{
|
|
|
17
17
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>>>;
|
|
21
21
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
22
22
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const openperplexCustomSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
query: string;
|
|
26
26
|
user_prompt: string;
|
|
@@ -17,10 +17,10 @@ declare const OpenperplexCustomSearchOutput: z.ZodObject<{
|
|
|
17
17
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>>>;
|
|
21
21
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
22
22
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const openperplexCustomSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
query: string;
|
|
26
26
|
user_prompt: string;
|
|
@@ -14,7 +14,7 @@ const OpenperplexCustomSearch_SourceItemSchema = z.object({
|
|
|
14
14
|
url: z.string().describe("URL of the source").nullable().optional(),
|
|
15
15
|
title: z.string().describe("Title of the source").nullable().optional(),
|
|
16
16
|
snippet: z.string().describe("Snippet from the source").nullable().optional()
|
|
17
|
-
}).describe("A source item in the search response.");
|
|
17
|
+
}).passthrough().describe("A source item in the search response.");
|
|
18
18
|
const openperplexCustomSearch = action("OPENPERPLEX_CUSTOM_SEARCH", {
|
|
19
19
|
slug: "openperplex-custom-search",
|
|
20
20
|
name: "Custom Search",
|
|
@@ -26,7 +26,7 @@ const openperplexCustomSearch = action("OPENPERPLEX_CUSTOM_SEARCH", {
|
|
|
26
26
|
sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
|
|
27
27
|
llm_response: z.string().describe("The LLM-generated response based on the search results.").nullable(),
|
|
28
28
|
response_time: z.number().describe("The time taken to generate the response in seconds.").nullable().optional()
|
|
29
|
-
}).describe("Response model for the CUSTOM_SEARCH action.")
|
|
29
|
+
}).passthrough().describe("Response model for the CUSTOM_SEARCH action.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { openperplexCustomSearch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search.mjs","names":[],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchInput = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC1E,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,2CAA2C,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,uCAAuC;
|
|
1
|
+
{"version":3,"file":"custom-search.mjs","names":[],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchInput = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).passthrough().describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC1E,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,2CAA2C,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AASjE,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb2C,EAAE,OAAO;EACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACtG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const OpenperplexGetWebsiteMarkdownInput = zod.z.object({
|
|
|
8
8
|
const OpenperplexGetWebsiteMarkdownOutput = zod.z.object({
|
|
9
9
|
markdown: zod.z.string().describe("The resulting markdown content of the provided website").nullable(),
|
|
10
10
|
response_time: zod.z.number().describe("The time taken to process the request in seconds").nullable().optional()
|
|
11
|
-
}).describe("Response schema for GET_WEBSITE_MARKDOWN action.");
|
|
11
|
+
}).passthrough().describe("Response schema for GET_WEBSITE_MARKDOWN action.");
|
|
12
12
|
const openperplexGetWebsiteMarkdown = require_action.action("OPENPERPLEX_GET_WEBSITE_MARKDOWN", {
|
|
13
13
|
slug: "openperplex-get-website-markdown",
|
|
14
14
|
name: "Get Website Markdown",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-markdown.cjs","names":["z","action"],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteMarkdownInput = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\").nullable(),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,iBAAiBA,IAAAA,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACjG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,kDAAkD;
|
|
1
|
+
{"version":3,"file":"get-website-markdown.cjs","names":["z","action"],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteMarkdownInput = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\").nullable(),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,iBAAiBA,IAAAA,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACjG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const OpenperplexGetWebsiteMarkdownInput: z.ZodObject<{
|
|
|
11
11
|
declare const OpenperplexGetWebsiteMarkdownOutput: z.ZodObject<{
|
|
12
12
|
markdown: z.ZodNullable<z.ZodString>;
|
|
13
13
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const openperplexGetWebsiteMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
url: string;
|
|
17
17
|
markdown_format?: "gfm" | "commonmark" | undefined;
|
|
@@ -11,7 +11,7 @@ declare const OpenperplexGetWebsiteMarkdownInput: z.ZodObject<{
|
|
|
11
11
|
declare const OpenperplexGetWebsiteMarkdownOutput: z.ZodObject<{
|
|
12
12
|
markdown: z.ZodNullable<z.ZodString>;
|
|
13
13
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const openperplexGetWebsiteMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
url: string;
|
|
17
17
|
markdown_format?: "gfm" | "commonmark" | undefined;
|
|
@@ -11,7 +11,7 @@ const openperplexGetWebsiteMarkdown = action("OPENPERPLEX_GET_WEBSITE_MARKDOWN",
|
|
|
11
11
|
output: z.object({
|
|
12
12
|
markdown: z.string().describe("The resulting markdown content of the provided website").nullable(),
|
|
13
13
|
response_time: z.number().describe("The time taken to process the request in seconds").nullable().optional()
|
|
14
|
-
}).describe("Response schema for GET_WEBSITE_MARKDOWN action.")
|
|
14
|
+
}).passthrough().describe("Response schema for GET_WEBSITE_MARKDOWN action.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { openperplexGetWebsiteMarkdown };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-markdown.mjs","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteMarkdownInput = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\").nullable(),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":";;AAaA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACvF,iBAAiB,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAViD,EAAE,OAAO;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACjG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-website-markdown.mjs","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteMarkdownInput = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\").nullable(),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":";;AAaA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACvF,iBAAiB,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAViD,EAAE,OAAO;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACjG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const OpenperplexGetWebsiteScreenshotInput = zod.z.object({
|
|
|
10
10
|
const OpenperplexGetWebsiteScreenshotOutput = zod.z.object({
|
|
11
11
|
url: zod.z.string().describe("The URL to the screenshot image stored in cloud storage.").nullable(),
|
|
12
12
|
response_time: zod.z.number().describe("The time taken to capture the screenshot in seconds.").nullable()
|
|
13
|
-
}).describe("Response schema for GET_WEBSITE_SCREENSHOT.");
|
|
13
|
+
}).passthrough().describe("Response schema for GET_WEBSITE_SCREENSHOT.");
|
|
14
14
|
const openperplexGetWebsiteScreenshot = require_action.action("OPENPERPLEX_GET_WEBSITE_SCREENSHOT", {
|
|
15
15
|
slug: "openperplex-get-website-screenshot",
|
|
16
16
|
name: "Get Website Screenshot",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/get-website-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteScreenshotInput = z.object({\n url: z.string().describe(\"The website URL to capture.\"),\n full_page: z.boolean().default(false).describe(\"Whether to capture the entire scrollable page.\").optional(),\n viewport_width: z.number().int().describe(\"Width of the browser viewport in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Height of the browser viewport in pixels.\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_SCREENSHOT.\");\nexport const OpenperplexGetWebsiteScreenshotOutput = z.object({\n url: z.string().describe(\"The URL to the screenshot image stored in cloud storage.\").nullable(),\n response_time: z.number().describe(\"The time taken to capture the screenshot in seconds.\").nullable(),\n}).describe(\"Response schema for GET_WEBSITE_SCREENSHOT.\");\n\nexport const openperplexGetWebsiteScreenshot = action(\"OPENPERPLEX_GET_WEBSITE_SCREENSHOT\", {\n slug: \"openperplex-get-website-screenshot\",\n name: \"Get Website Screenshot\",\n description: \"Tool to capture a screenshot of a website. Use after confirming the target URL is reachable.\",\n input: OpenperplexGetWebsiteScreenshotInput,\n output: OpenperplexGetWebsiteScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACtD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,6CAA6C;
|
|
1
|
+
{"version":3,"file":"get-website-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/get-website-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteScreenshotInput = z.object({\n url: z.string().describe(\"The website URL to capture.\"),\n full_page: z.boolean().default(false).describe(\"Whether to capture the entire scrollable page.\").optional(),\n viewport_width: z.number().int().describe(\"Width of the browser viewport in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Height of the browser viewport in pixels.\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_SCREENSHOT.\");\nexport const OpenperplexGetWebsiteScreenshotOutput = z.object({\n url: z.string().describe(\"The URL to the screenshot image stored in cloud storage.\").nullable(),\n response_time: z.number().describe(\"The time taken to capture the screenshot in seconds.\").nullable(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_SCREENSHOT.\");\n\nexport const openperplexGetWebsiteScreenshot = action(\"OPENPERPLEX_GET_WEBSITE_SCREENSHOT\", {\n slug: \"openperplex-get-website-screenshot\",\n name: \"Get Website Screenshot\",\n description: \"Tool to capture a screenshot of a website. Use after confirming the target URL is reachable.\",\n input: OpenperplexGetWebsiteScreenshotInput,\n output: OpenperplexGetWebsiteScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACtD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const OpenperplexGetWebsiteScreenshotInput: z.ZodObject<{
|
|
|
10
10
|
declare const OpenperplexGetWebsiteScreenshotOutput: z.ZodObject<{
|
|
11
11
|
url: z.ZodNullable<z.ZodString>;
|
|
12
12
|
response_time: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const openperplexGetWebsiteScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
url: string;
|
|
16
16
|
full_page?: boolean | undefined;
|
|
@@ -10,7 +10,7 @@ declare const OpenperplexGetWebsiteScreenshotInput: z.ZodObject<{
|
|
|
10
10
|
declare const OpenperplexGetWebsiteScreenshotOutput: z.ZodObject<{
|
|
11
11
|
url: z.ZodNullable<z.ZodString>;
|
|
12
12
|
response_time: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const openperplexGetWebsiteScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
url: string;
|
|
16
16
|
full_page?: boolean | undefined;
|
|
@@ -13,7 +13,7 @@ const openperplexGetWebsiteScreenshot = action("OPENPERPLEX_GET_WEBSITE_SCREENSH
|
|
|
13
13
|
output: z.object({
|
|
14
14
|
url: z.string().describe("The URL to the screenshot image stored in cloud storage.").nullable(),
|
|
15
15
|
response_time: z.number().describe("The time taken to capture the screenshot in seconds.").nullable()
|
|
16
|
-
}).describe("Response schema for GET_WEBSITE_SCREENSHOT.")
|
|
16
|
+
}).passthrough().describe("Response schema for GET_WEBSITE_SCREENSHOT.")
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { openperplexGetWebsiteScreenshot };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-screenshot.mjs","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteScreenshotInput = z.object({\n url: z.string().describe(\"The website URL to capture.\"),\n full_page: z.boolean().default(false).describe(\"Whether to capture the entire scrollable page.\").optional(),\n viewport_width: z.number().int().describe(\"Width of the browser viewport in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Height of the browser viewport in pixels.\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_SCREENSHOT.\");\nexport const OpenperplexGetWebsiteScreenshotOutput = z.object({\n url: z.string().describe(\"The URL to the screenshot image stored in cloud storage.\").nullable(),\n response_time: z.number().describe(\"The time taken to capture the screenshot in seconds.\").nullable(),\n}).describe(\"Response schema for GET_WEBSITE_SCREENSHOT.\");\n\nexport const openperplexGetWebsiteScreenshot = action(\"OPENPERPLEX_GET_WEBSITE_SCREENSHOT\", {\n slug: \"openperplex-get-website-screenshot\",\n name: \"Get Website Screenshot\",\n description: \"Tool to capture a screenshot of a website. Use after confirming the target URL is reachable.\",\n input: OpenperplexGetWebsiteScreenshotInput,\n output: OpenperplexGetWebsiteScreenshotOutput,\n});\n"],"mappings":";;AAeA,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfkD,EAAE,OAAO;EAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACtD,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC1G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC/F,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,4CAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-website-screenshot.mjs","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteScreenshotInput = z.object({\n url: z.string().describe(\"The website URL to capture.\"),\n full_page: z.boolean().default(false).describe(\"Whether to capture the entire scrollable page.\").optional(),\n viewport_width: z.number().int().describe(\"Width of the browser viewport in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Height of the browser viewport in pixels.\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_SCREENSHOT.\");\nexport const OpenperplexGetWebsiteScreenshotOutput = z.object({\n url: z.string().describe(\"The URL to the screenshot image stored in cloud storage.\").nullable(),\n response_time: z.number().describe(\"The time taken to capture the screenshot in seconds.\").nullable(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_SCREENSHOT.\");\n\nexport const openperplexGetWebsiteScreenshot = action(\"OPENPERPLEX_GET_WEBSITE_SCREENSHOT\", {\n slug: \"openperplex-get-website-screenshot\",\n name: \"Get Website Screenshot\",\n description: \"Tool to capture a screenshot of a website. Use after confirming the target URL is reachable.\",\n input: OpenperplexGetWebsiteScreenshotInput,\n output: OpenperplexGetWebsiteScreenshotOutput,\n});\n"],"mappings":";;AAeA,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfkD,EAAE,OAAO;EAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACtD,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC1G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC/F,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,4CAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ const OpenperplexGetWebsiteTextInput = zod.z.object({
|
|
|
14
14
|
const OpenperplexGetWebsiteTextOutput = zod.z.object({
|
|
15
15
|
text: zod.z.string().describe("Extracted main text content from the web page.").nullable(),
|
|
16
16
|
response_time: zod.z.number().describe("Time taken to process the request in seconds.").nullable().optional()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const openperplexGetWebsiteText = require_action.action("OPENPERPLEX_GET_WEBSITE_TEXT", {
|
|
19
19
|
slug: "openperplex-get-website-text",
|
|
20
20
|
name: "Get Website Text",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-text.cjs","names":["z","action"],"sources":["../../src/actions/get-website-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteTextInput = z.object({\n url: z.string().describe(\"The URL of the web page to extract text from.\"),\n clean: z.boolean().default(false).describe(\"If true, returns cleaner and more concise text.\").optional(),\n max_length: z.number().int().describe(\"Maximum number of characters to extract.\").optional(),\n return_type: z.enum([\"plain\", \"html\", \"markdown\"]).default(\"plain\").describe(\"Format of the returned text: 'plain', 'html', or 'markdown'.\").optional(),\n}).describe(\"Parameters for extracting text from a website.\");\nexport const OpenperplexGetWebsiteTextOutput = z.object({\n text: z.string().describe(\"Extracted main text content from the web page.\").nullable(),\n response_time: z.number().describe(\"Time taken to process the request in seconds.\").nullable().optional(),\n});\n\nexport const openperplexGetWebsiteText = action(\"OPENPERPLEX_GET_WEBSITE_TEXT\", {\n slug: \"openperplex-get-website-text\",\n name: \"Get Website Text\",\n description: \"Tool to retrieve the main text content of a specified website URL. Use when you need content extraction from online articles or pages. Use after confirming the URL is publicly accessible.\",\n input: OpenperplexGetWebsiteTextInput,\n output: OpenperplexGetWebsiteTextOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACxE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAQ;CAAU,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC;
|
|
1
|
+
{"version":3,"file":"get-website-text.cjs","names":["z","action"],"sources":["../../src/actions/get-website-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteTextInput = z.object({\n url: z.string().describe(\"The URL of the web page to extract text from.\"),\n clean: z.boolean().default(false).describe(\"If true, returns cleaner and more concise text.\").optional(),\n max_length: z.number().int().describe(\"Maximum number of characters to extract.\").optional(),\n return_type: z.enum([\"plain\", \"html\", \"markdown\"]).default(\"plain\").describe(\"Format of the returned text: 'plain', 'html', or 'markdown'.\").optional(),\n}).describe(\"Parameters for extracting text from a website.\");\nexport const OpenperplexGetWebsiteTextOutput = z.object({\n text: z.string().describe(\"Extracted main text content from the web page.\").nullable(),\n response_time: z.number().describe(\"Time taken to process the request in seconds.\").nullable().optional(),\n}).passthrough();\n\nexport const openperplexGetWebsiteText = action(\"OPENPERPLEX_GET_WEBSITE_TEXT\", {\n slug: \"openperplex-get-website-text\",\n name: \"Get Website Text\",\n description: \"Tool to retrieve the main text content of a specified website URL. Use when you need content extraction from online articles or pages. Use after confirming the URL is publicly accessible.\",\n input: OpenperplexGetWebsiteTextInput,\n output: OpenperplexGetWebsiteTextOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACxE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAQ;CAAU,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,20 +6,20 @@ declare const OpenperplexGetWebsiteTextInput: z.ZodObject<{
|
|
|
6
6
|
clean: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
7
|
max_length: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
return_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
-
plain: "plain";
|
|
10
|
-
html: "html";
|
|
11
9
|
markdown: "markdown";
|
|
10
|
+
html: "html";
|
|
11
|
+
plain: "plain";
|
|
12
12
|
}>>>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
declare const OpenperplexGetWebsiteTextOutput: z.ZodObject<{
|
|
15
15
|
text: z.ZodNullable<z.ZodString>;
|
|
16
16
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const openperplexGetWebsiteText: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
url: string;
|
|
20
20
|
clean?: boolean | undefined;
|
|
21
21
|
max_length?: number | undefined;
|
|
22
|
-
return_type?: "
|
|
22
|
+
return_type?: "markdown" | "html" | "plain" | undefined;
|
|
23
23
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { openperplexGetWebsiteText };
|
|
@@ -6,20 +6,20 @@ declare const OpenperplexGetWebsiteTextInput: z.ZodObject<{
|
|
|
6
6
|
clean: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
7
|
max_length: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
return_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
-
plain: "plain";
|
|
10
|
-
html: "html";
|
|
11
9
|
markdown: "markdown";
|
|
10
|
+
html: "html";
|
|
11
|
+
plain: "plain";
|
|
12
12
|
}>>>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
declare const OpenperplexGetWebsiteTextOutput: z.ZodObject<{
|
|
15
15
|
text: z.ZodNullable<z.ZodString>;
|
|
16
16
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const openperplexGetWebsiteText: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
url: string;
|
|
20
20
|
clean?: boolean | undefined;
|
|
21
21
|
max_length?: number | undefined;
|
|
22
|
-
return_type?: "
|
|
22
|
+
return_type?: "markdown" | "html" | "plain" | undefined;
|
|
23
23
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { openperplexGetWebsiteText };
|
|
@@ -17,7 +17,7 @@ const openperplexGetWebsiteText = action("OPENPERPLEX_GET_WEBSITE_TEXT", {
|
|
|
17
17
|
output: z.object({
|
|
18
18
|
text: z.string().describe("Extracted main text content from the web page.").nullable(),
|
|
19
19
|
response_time: z.number().describe("Time taken to process the request in seconds.").nullable().optional()
|
|
20
|
-
})
|
|
20
|
+
}).passthrough()
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
23
23
|
export { openperplexGetWebsiteText };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-text.mjs","names":[],"sources":["../../src/actions/get-website-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteTextInput = z.object({\n url: z.string().describe(\"The URL of the web page to extract text from.\"),\n clean: z.boolean().default(false).describe(\"If true, returns cleaner and more concise text.\").optional(),\n max_length: z.number().int().describe(\"Maximum number of characters to extract.\").optional(),\n return_type: z.enum([\"plain\", \"html\", \"markdown\"]).default(\"plain\").describe(\"Format of the returned text: 'plain', 'html', or 'markdown'.\").optional(),\n}).describe(\"Parameters for extracting text from a website.\");\nexport const OpenperplexGetWebsiteTextOutput = z.object({\n text: z.string().describe(\"Extracted main text content from the web page.\").nullable(),\n response_time: z.number().describe(\"Time taken to process the request in seconds.\").nullable().optional(),\n});\n\nexport const openperplexGetWebsiteText = action(\"OPENPERPLEX_GET_WEBSITE_TEXT\", {\n slug: \"openperplex-get-website-text\",\n name: \"Get Website Text\",\n description: \"Tool to retrieve the main text content of a specified website URL. Use when you need content extraction from online articles or pages. Use after confirming the URL is publicly accessible.\",\n input: OpenperplexGetWebsiteTextInput,\n output: OpenperplexGetWebsiteTextOutput,\n});\n"],"mappings":";;AAeA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACxE,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,KAAK;GAAC;GAAS;GAAQ;EAAU,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,gDAUH;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,
|
|
1
|
+
{"version":3,"file":"get-website-text.mjs","names":[],"sources":["../../src/actions/get-website-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteTextInput = z.object({\n url: z.string().describe(\"The URL of the web page to extract text from.\"),\n clean: z.boolean().default(false).describe(\"If true, returns cleaner and more concise text.\").optional(),\n max_length: z.number().int().describe(\"Maximum number of characters to extract.\").optional(),\n return_type: z.enum([\"plain\", \"html\", \"markdown\"]).default(\"plain\").describe(\"Format of the returned text: 'plain', 'html', or 'markdown'.\").optional(),\n}).describe(\"Parameters for extracting text from a website.\");\nexport const OpenperplexGetWebsiteTextOutput = z.object({\n text: z.string().describe(\"Extracted main text content from the web page.\").nullable(),\n response_time: z.number().describe(\"Time taken to process the request in seconds.\").nullable().optional(),\n}).passthrough();\n\nexport const openperplexGetWebsiteText = action(\"OPENPERPLEX_GET_WEBSITE_TEXT\", {\n slug: \"openperplex-get-website-text\",\n name: \"Get Website Text\",\n description: \"Tool to retrieve the main text content of a specified website URL. Use when you need content extraction from online articles or pages. Use after confirming the URL is publicly accessible.\",\n input: OpenperplexGetWebsiteTextInput,\n output: OpenperplexGetWebsiteTextOutput,\n});\n"],"mappings":";;AAeA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACxE,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,KAAK;GAAC;GAAS;GAAQ;EAAU,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,gDAUH;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ const OpenperplexQueryFromUrlInput = zod.z.object({
|
|
|
15
15
|
const OpenperplexQueryFromUrlOutput = zod.z.object({
|
|
16
16
|
llm_response: zod.z.string().describe("The LLM-generated response to the query based on the URL content.").nullable(),
|
|
17
17
|
response_time: zod.z.number().describe("Time taken to generate the response in seconds.").nullable()
|
|
18
|
-
}).describe("Response model containing the LLM-generated answer from the URL content.");
|
|
18
|
+
}).passthrough().describe("Response model containing the LLM-generated answer from the URL content.");
|
|
19
19
|
const openperplexQueryFromUrl = require_action.action("OPENPERPLEX_QUERY_FROM_URL", {
|
|
20
20
|
slug: "openperplex-query-from-url",
|
|
21
21
|
name: "Query from URL",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-from-url.cjs","names":["z","action"],"sources":["../../src/actions/query-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexQueryFromUrlInput = z.object({\n url: z.string().describe(\"The URL of the website you want to interact with.\"),\n model: z.string().describe(\"LLM model to use. Options: o3-mini-high, o3-mini-medium, gpt-4o, gpt-4o-mini, gemini-2.0-flash. Default is gpt-4o-mini.\").optional(),\n query: z.string().describe(\"The question you want to ask about the content at the URL.\"),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'. Default is 'text'.\").optional(),\n response_language: z.string().describe(\"Language code for the response. 'auto' will auto-detect based on the query. Supported: auto, en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Input parameters for querying content from a URL.\");\nexport const OpenperplexQueryFromUrlOutput = z.object({\n llm_response: z.string().describe(\"The LLM-generated response to the query based on the URL content.\").nullable(),\n response_time: z.number().describe(\"Time taken to generate the response in seconds.\").nullable(),\n}).describe(\"Response model containing the LLM-generated answer from the URL content.\");\n\nexport const openperplexQueryFromUrl = action(\"OPENPERPLEX_QUERY_FROM_URL\", {\n slug: \"openperplex-query-from-url\",\n name: \"Query from URL\",\n description: \"Tool to query documents from a URL. Use when you need to fetch and interrogate web-hosted content with a natural language question.\",\n input: OpenperplexQueryFromUrlInput,\n output: OpenperplexQueryFromUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAC/J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACvF,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxJ,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;AAC1M,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,0EAA0E;
|
|
1
|
+
{"version":3,"file":"query-from-url.cjs","names":["z","action"],"sources":["../../src/actions/query-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexQueryFromUrlInput = z.object({\n url: z.string().describe(\"The URL of the website you want to interact with.\"),\n model: z.string().describe(\"LLM model to use. Options: o3-mini-high, o3-mini-medium, gpt-4o, gpt-4o-mini, gemini-2.0-flash. Default is gpt-4o-mini.\").optional(),\n query: z.string().describe(\"The question you want to ask about the content at the URL.\"),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'. Default is 'text'.\").optional(),\n response_language: z.string().describe(\"Language code for the response. 'auto' will auto-detect based on the query. Supported: auto, en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Input parameters for querying content from a URL.\");\nexport const OpenperplexQueryFromUrlOutput = z.object({\n llm_response: z.string().describe(\"The LLM-generated response to the query based on the URL content.\").nullable(),\n response_time: z.number().describe(\"Time taken to generate the response in seconds.\").nullable(),\n}).passthrough().describe(\"Response model containing the LLM-generated answer from the URL content.\");\n\nexport const openperplexQueryFromUrl = action(\"OPENPERPLEX_QUERY_FROM_URL\", {\n slug: \"openperplex-query-from-url\",\n name: \"Query from URL\",\n description: \"Tool to query documents from a URL. Use when you need to fetch and interrogate web-hosted content with a natural language question.\",\n input: OpenperplexQueryFromUrlInput,\n output: OpenperplexQueryFromUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAC/J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACvF,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxJ,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;AAC1M,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AAEpG,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,21 +6,21 @@ declare const OpenperplexQueryFromUrlInput: z.ZodObject<{
|
|
|
6
6
|
model: z.ZodOptional<z.ZodString>;
|
|
7
7
|
query: z.ZodString;
|
|
8
8
|
answer_type: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
html: "html";
|
|
10
|
-
markdown: "markdown";
|
|
11
9
|
text: "text";
|
|
10
|
+
markdown: "markdown";
|
|
11
|
+
html: "html";
|
|
12
12
|
}>>;
|
|
13
13
|
response_language: z.ZodOptional<z.ZodString>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
declare const OpenperplexQueryFromUrlOutput: z.ZodObject<{
|
|
16
16
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
17
17
|
response_time: z.ZodNullable<z.ZodNumber>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const openperplexQueryFromUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
url: string;
|
|
21
21
|
query: string;
|
|
22
22
|
model?: string | undefined;
|
|
23
|
-
answer_type?: "
|
|
23
|
+
answer_type?: "text" | "markdown" | "html" | undefined;
|
|
24
24
|
response_language?: string | undefined;
|
|
25
25
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
26
|
//#endregion
|
|
@@ -6,21 +6,21 @@ declare const OpenperplexQueryFromUrlInput: z.ZodObject<{
|
|
|
6
6
|
model: z.ZodOptional<z.ZodString>;
|
|
7
7
|
query: z.ZodString;
|
|
8
8
|
answer_type: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
html: "html";
|
|
10
|
-
markdown: "markdown";
|
|
11
9
|
text: "text";
|
|
10
|
+
markdown: "markdown";
|
|
11
|
+
html: "html";
|
|
12
12
|
}>>;
|
|
13
13
|
response_language: z.ZodOptional<z.ZodString>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
declare const OpenperplexQueryFromUrlOutput: z.ZodObject<{
|
|
16
16
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
17
17
|
response_time: z.ZodNullable<z.ZodNumber>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const openperplexQueryFromUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
url: string;
|
|
21
21
|
query: string;
|
|
22
22
|
model?: string | undefined;
|
|
23
|
-
answer_type?: "
|
|
23
|
+
answer_type?: "text" | "markdown" | "html" | undefined;
|
|
24
24
|
response_language?: string | undefined;
|
|
25
25
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
26
|
//#endregion
|
|
@@ -18,7 +18,7 @@ const openperplexQueryFromUrl = action("OPENPERPLEX_QUERY_FROM_URL", {
|
|
|
18
18
|
output: z.object({
|
|
19
19
|
llm_response: z.string().describe("The LLM-generated response to the query based on the URL content.").nullable(),
|
|
20
20
|
response_time: z.number().describe("Time taken to generate the response in seconds.").nullable()
|
|
21
|
-
}).describe("Response model containing the LLM-generated answer from the URL content.")
|
|
21
|
+
}).passthrough().describe("Response model containing the LLM-generated answer from the URL content.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { openperplexQueryFromUrl };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-from-url.mjs","names":[],"sources":["../../src/actions/query-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexQueryFromUrlInput = z.object({\n url: z.string().describe(\"The URL of the website you want to interact with.\"),\n model: z.string().describe(\"LLM model to use. Options: o3-mini-high, o3-mini-medium, gpt-4o, gpt-4o-mini, gemini-2.0-flash. Default is gpt-4o-mini.\").optional(),\n query: z.string().describe(\"The question you want to ask about the content at the URL.\"),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'. Default is 'text'.\").optional(),\n response_language: z.string().describe(\"Language code for the response. 'auto' will auto-detect based on the query. Supported: auto, en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Input parameters for querying content from a URL.\");\nexport const OpenperplexQueryFromUrlOutput = z.object({\n llm_response: z.string().describe(\"The LLM-generated response to the query based on the URL content.\").nullable(),\n response_time: z.number().describe(\"Time taken to generate the response in seconds.\").nullable(),\n}).describe(\"Response model containing the LLM-generated answer from the URL content.\");\n\nexport const openperplexQueryFromUrl = action(\"OPENPERPLEX_QUERY_FROM_URL\", {\n slug: \"openperplex-query-from-url\",\n name: \"Query from URL\",\n description: \"Tool to query documents from a URL. Use when you need to fetch and interrogate web-hosted content with a natural language question.\",\n input: OpenperplexQueryFromUrlInput,\n output: OpenperplexQueryFromUrlOutput,\n});\n"],"mappings":";;AAgBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0C,EAAE,OAAO;EACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;EAC/J,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACvF,aAAa,EAAE,KAAK;GAAC;GAAQ;GAAY;EAAM,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EACxJ,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC1M,CAAC,CAAC,CAAC,SAAS,mDAUH;CACP,QAV2C,EAAE,OAAO;EACpD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAChH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"query-from-url.mjs","names":[],"sources":["../../src/actions/query-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexQueryFromUrlInput = z.object({\n url: z.string().describe(\"The URL of the website you want to interact with.\"),\n model: z.string().describe(\"LLM model to use. Options: o3-mini-high, o3-mini-medium, gpt-4o, gpt-4o-mini, gemini-2.0-flash. Default is gpt-4o-mini.\").optional(),\n query: z.string().describe(\"The question you want to ask about the content at the URL.\"),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'. Default is 'text'.\").optional(),\n response_language: z.string().describe(\"Language code for the response. 'auto' will auto-detect based on the query. Supported: auto, en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Input parameters for querying content from a URL.\");\nexport const OpenperplexQueryFromUrlOutput = z.object({\n llm_response: z.string().describe(\"The LLM-generated response to the query based on the URL content.\").nullable(),\n response_time: z.number().describe(\"Time taken to generate the response in seconds.\").nullable(),\n}).passthrough().describe(\"Response model containing the LLM-generated answer from the URL content.\");\n\nexport const openperplexQueryFromUrl = action(\"OPENPERPLEX_QUERY_FROM_URL\", {\n slug: \"openperplex-query-from-url\",\n name: \"Query from URL\",\n description: \"Tool to query documents from a URL. Use when you need to fetch and interrogate web-hosted content with a natural language question.\",\n input: OpenperplexQueryFromUrlInput,\n output: OpenperplexQueryFromUrlOutput,\n});\n"],"mappings":";;AAgBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0C,EAAE,OAAO;EACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;EAC/J,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACvF,aAAa,EAAE,KAAK;GAAC;GAAQ;GAAY;EAAM,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EACxJ,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC1M,CAAC,CAAC,CAAC,SAAS,mDAUH;CACP,QAV2C,EAAE,OAAO;EACpD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAChH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAOhB;AACV,CAAC"}
|
|
@@ -29,13 +29,13 @@ const OpenperplexSearchStream_SourceItemSchema = zod.z.object({
|
|
|
29
29
|
url: zod.z.string().describe("URL of the source.").nullable().optional(),
|
|
30
30
|
title: zod.z.string().describe("Title of the source.").nullable().optional(),
|
|
31
31
|
snippet: zod.z.string().describe("Snippet or description from the source.").nullable().optional()
|
|
32
|
-
}).describe("A source item from the search results.");
|
|
32
|
+
}).passthrough().describe("A source item from the search results.");
|
|
33
33
|
const OpenperplexSearchStreamOutput = zod.z.object({
|
|
34
34
|
images: zod.z.array(zod.z.string()).describe("List of image URLs if return_images was enabled.").nullable().optional(),
|
|
35
35
|
sources: zod.z.array(OpenperplexSearchStream_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
|
|
36
36
|
citations: zod.z.array(zod.z.string()).describe("List of citations if return_citations was enabled.").nullable().optional(),
|
|
37
37
|
response_text: zod.z.string().describe("The full response text aggregated from LLM streaming chunks.").nullable()
|
|
38
|
-
}).describe("Aggregated response for streaming search.");
|
|
38
|
+
}).passthrough().describe("Aggregated response for streaming search.");
|
|
39
39
|
const openperplexSearchStream = require_action.action("OPENPERPLEX_SEARCH_STREAM", {
|
|
40
40
|
slug: "openperplex-search-stream",
|
|
41
41
|
name: "Search Stream",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-stream.cjs","names":["z","action"],"sources":["../../src/actions/search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).describe(\"A source item from the search results.\");\nexport const OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: OpenperplexSearchStreamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,UAAUA,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,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,wCAAwC;
|
|
1
|
+
{"version":3,"file":"search-stream.cjs","names":["z","action"],"sources":["../../src/actions/search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: OpenperplexSearchStreamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5I,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CACp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AAS;CAC1I,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,9 +6,9 @@ declare const OpenperplexSearchStreamInput: z.ZodObject<{
|
|
|
6
6
|
query: z.ZodString;
|
|
7
7
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
8
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
-
html: "html";
|
|
10
|
-
markdown: "markdown";
|
|
11
9
|
text: "text";
|
|
10
|
+
markdown: "markdown";
|
|
11
|
+
html: "html";
|
|
12
12
|
}>>>;
|
|
13
13
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
14
14
|
general: "general";
|
|
@@ -34,15 +34,15 @@ declare const OpenperplexSearchStreamOutput: z.ZodObject<{
|
|
|
34
34
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>>>;
|
|
38
38
|
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
39
39
|
response_text: z.ZodNullable<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>;
|
|
41
41
|
declare const openperplexSearchStream: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
query: string;
|
|
43
43
|
model?: string | undefined;
|
|
44
44
|
location?: string | undefined;
|
|
45
|
-
answer_type?: "
|
|
45
|
+
answer_type?: "text" | "markdown" | "html" | undefined;
|
|
46
46
|
search_type?: "general" | "news" | undefined;
|
|
47
47
|
date_context?: string | undefined;
|
|
48
48
|
return_images?: boolean | undefined;
|
|
@@ -6,9 +6,9 @@ declare const OpenperplexSearchStreamInput: z.ZodObject<{
|
|
|
6
6
|
query: z.ZodString;
|
|
7
7
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
8
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
-
html: "html";
|
|
10
|
-
markdown: "markdown";
|
|
11
9
|
text: "text";
|
|
10
|
+
markdown: "markdown";
|
|
11
|
+
html: "html";
|
|
12
12
|
}>>>;
|
|
13
13
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
14
14
|
general: "general";
|
|
@@ -34,15 +34,15 @@ declare const OpenperplexSearchStreamOutput: z.ZodObject<{
|
|
|
34
34
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>>>;
|
|
38
38
|
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
39
39
|
response_text: z.ZodNullable<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>;
|
|
41
41
|
declare const openperplexSearchStream: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
query: string;
|
|
43
43
|
model?: string | undefined;
|
|
44
44
|
location?: string | undefined;
|
|
45
|
-
answer_type?: "
|
|
45
|
+
answer_type?: "text" | "markdown" | "html" | undefined;
|
|
46
46
|
search_type?: "general" | "news" | undefined;
|
|
47
47
|
date_context?: string | undefined;
|
|
48
48
|
return_images?: boolean | undefined;
|
|
@@ -29,7 +29,7 @@ const OpenperplexSearchStream_SourceItemSchema = z.object({
|
|
|
29
29
|
url: z.string().describe("URL of the source.").nullable().optional(),
|
|
30
30
|
title: z.string().describe("Title of the source.").nullable().optional(),
|
|
31
31
|
snippet: z.string().describe("Snippet or description from the source.").nullable().optional()
|
|
32
|
-
}).describe("A source item from the search results.");
|
|
32
|
+
}).passthrough().describe("A source item from the search results.");
|
|
33
33
|
const openperplexSearchStream = action("OPENPERPLEX_SEARCH_STREAM", {
|
|
34
34
|
slug: "openperplex-search-stream",
|
|
35
35
|
name: "Search Stream",
|
|
@@ -40,7 +40,7 @@ const openperplexSearchStream = action("OPENPERPLEX_SEARCH_STREAM", {
|
|
|
40
40
|
sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
|
|
41
41
|
citations: z.array(z.string()).describe("List of citations if return_citations was enabled.").nullable().optional(),
|
|
42
42
|
response_text: z.string().describe("The full response text aggregated from LLM streaming chunks.").nullable()
|
|
43
|
-
}).describe("Aggregated response for streaming search.")
|
|
43
|
+
}).passthrough().describe("Aggregated response for streaming search.")
|
|
44
44
|
});
|
|
45
45
|
//#endregion
|
|
46
46
|
export { openperplexSearchStream };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-stream.mjs","names":[],"sources":["../../src/actions/search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).describe(\"A source item from the search results.\");\nexport const OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: Op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,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,wCAAwC;
|
|
1
|
+
{"version":3,"file":"search-stream.mjs","names":[],"sources":["../../src/actions/search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: OpenperplexSearchStreamOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAa,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5I,aAAa,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uI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EAC1I,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
package/dist/actions/search.cjs
CHANGED
|
@@ -29,14 +29,14 @@ const OpenperplexSearch_SourceItemSchema = zod.z.object({
|
|
|
29
29
|
url: zod.z.string().describe("URL of the source").nullable().optional(),
|
|
30
30
|
title: zod.z.string().describe("Title of the source").nullable().optional(),
|
|
31
31
|
snippet: zod.z.string().describe("Snippet from the source").nullable().optional()
|
|
32
|
-
}).describe("A source item in the search response.");
|
|
32
|
+
}).passthrough().describe("A source item in the search response.");
|
|
33
33
|
const OpenperplexSearchOutput = zod.z.object({
|
|
34
34
|
error: zod.z.string().describe("Error message if any error occurred during the search.").nullable().optional(),
|
|
35
35
|
images: zod.z.array(zod.z.string()).describe("List of image URLs found in the search.").nullable().optional(),
|
|
36
36
|
sources: zod.z.array(OpenperplexSearch_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
|
|
37
37
|
llm_response: zod.z.string().describe("The LLM-generated response based on the search results.").nullable(),
|
|
38
38
|
response_time: zod.z.number().describe("The time taken to generate the response in seconds.").nullable().optional()
|
|
39
|
-
}).describe("Response model for a search operation from the OpenPerplex API.");
|
|
39
|
+
}).passthrough().describe("Response model for a search operation from the OpenPerplex API.");
|
|
40
40
|
const openperplexSearch = require_action.action("OPENPERPLEX_SEARCH", {
|
|
41
41
|
slug: "openperplex-search",
|
|
42
42
|
name: "Search Documents",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.cjs","names":["z","action"],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchInput = z.object({\n model: z.string().default(\"gpt-4o-mini\").describe(\"Model to use for generating responses. Options: 'o3-mini-high', 'o3-mini-medium', 'gpt-4o', 'gpt-4o-mini', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"The search query or question you want to ask. This is the primary input for your search.\"),\n location: z.string().default(\"us\").describe(\"Country code for localized search results (e.g., 'us', 'jp', 'br', 'fr').\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search to perform. Options: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date for context. Format example: 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. If not provided, the API uses the current date of the server.\").optional(),\n return_images: z.boolean().default(false).describe(\"Set to True to include images in the result.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).default(\"anytime\").describe(\"Filter results by recency. Options: 'hour', 'day', 'week', 'month', 'year', 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Set to True to include sources in the result.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Set to True to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for the response. Use 'auto' to auto-detect based on the query.\").optional(),\n}).describe(\"Parameters for performing a search query using the OpenPerplex API.\");\nconst OpenperplexSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).describe(\"A source item in the search response.\");\nexport const OpenperplexSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).describe(\"Response model for a search operation from the OpenPerplex API.\");\n\nexport const openperplexSearch = action(\"OPENPERPLEX_SEARCH\", {\n slug: \"openperplex-search\",\n name: \"Search Documents\",\n description: \"Tool to search documents using query parameters. Use when you have a search query and optional filters ready.\",\n input: OpenperplexSearchInput,\n output: OpenperplexSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC7L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACrH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAClI,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrJ,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC1I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACvN,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5G,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAS,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC3M,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9G,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACpH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,uCAAuC;
|
|
1
|
+
{"version":3,"file":"search.cjs","names":["z","action"],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchInput = z.object({\n model: z.string().default(\"gpt-4o-mini\").describe(\"Model to use for generating responses. Options: 'o3-mini-high', 'o3-mini-medium', 'gpt-4o', 'gpt-4o-mini', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"The search query or question you want to ask. This is the primary input for your search.\"),\n location: z.string().default(\"us\").describe(\"Country code for localized search results (e.g., 'us', 'jp', 'br', 'fr').\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search to perform. Options: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date for context. Format example: 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. If not provided, the API uses the current date of the server.\").optional(),\n return_images: z.boolean().default(false).describe(\"Set to True to include images in the result.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).default(\"anytime\").describe(\"Filter results by recency. Options: 'hour', 'day', 'week', 'month', 'year', 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Set to True to include sources in the result.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Set to True to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for the response. Use 'auto' to auto-detect based on the query.\").optional(),\n}).describe(\"Parameters for performing a search query using the OpenPerplex API.\");\nconst OpenperplexSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).passthrough().describe(\"A source item in the search response.\");\nexport const OpenperplexSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a search operation from the OpenPerplex API.\");\n\nexport const openperplexSearch = action(\"OPENPERPLEX_SEARCH\", {\n slug: \"openperplex-search\",\n name: \"Search Documents\",\n description: \"Tool to search documents using query parameters. Use when you have a search query and optional filters ready.\",\n input: OpenperplexSearchInput,\n output: OpenperplexSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS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C,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,oBAAoBC,eAAAA,OAAO,sBAAsB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,9 +6,9 @@ declare const OpenperplexSearchInput: z.ZodObject<{
|
|
|
6
6
|
query: z.ZodString;
|
|
7
7
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
8
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
-
html: "html";
|
|
10
|
-
markdown: "markdown";
|
|
11
9
|
text: "text";
|
|
10
|
+
markdown: "markdown";
|
|
11
|
+
html: "html";
|
|
12
12
|
}>>>;
|
|
13
13
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
14
14
|
general: "general";
|
|
@@ -35,15 +35,15 @@ declare const OpenperplexSearchOutput: z.ZodObject<{
|
|
|
35
35
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>>>>;
|
|
39
39
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
40
40
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>;
|
|
42
42
|
declare const openperplexSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
43
43
|
query: string;
|
|
44
44
|
model?: string | undefined;
|
|
45
45
|
location?: string | undefined;
|
|
46
|
-
answer_type?: "
|
|
46
|
+
answer_type?: "text" | "markdown" | "html" | undefined;
|
|
47
47
|
search_type?: "general" | "news" | undefined;
|
|
48
48
|
date_context?: string | undefined;
|
|
49
49
|
return_images?: boolean | undefined;
|
|
@@ -6,9 +6,9 @@ declare const OpenperplexSearchInput: z.ZodObject<{
|
|
|
6
6
|
query: z.ZodString;
|
|
7
7
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
8
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
-
html: "html";
|
|
10
|
-
markdown: "markdown";
|
|
11
9
|
text: "text";
|
|
10
|
+
markdown: "markdown";
|
|
11
|
+
html: "html";
|
|
12
12
|
}>>>;
|
|
13
13
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
14
14
|
general: "general";
|
|
@@ -35,15 +35,15 @@ declare const OpenperplexSearchOutput: z.ZodObject<{
|
|
|
35
35
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>>>>;
|
|
39
39
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
40
40
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>;
|
|
42
42
|
declare const openperplexSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
43
43
|
query: string;
|
|
44
44
|
model?: string | undefined;
|
|
45
45
|
location?: string | undefined;
|
|
46
|
-
answer_type?: "
|
|
46
|
+
answer_type?: "text" | "markdown" | "html" | undefined;
|
|
47
47
|
search_type?: "general" | "news" | undefined;
|
|
48
48
|
date_context?: string | undefined;
|
|
49
49
|
return_images?: boolean | undefined;
|
package/dist/actions/search.mjs
CHANGED
|
@@ -29,7 +29,7 @@ const OpenperplexSearch_SourceItemSchema = z.object({
|
|
|
29
29
|
url: z.string().describe("URL of the source").nullable().optional(),
|
|
30
30
|
title: z.string().describe("Title of the source").nullable().optional(),
|
|
31
31
|
snippet: z.string().describe("Snippet from the source").nullable().optional()
|
|
32
|
-
}).describe("A source item in the search response.");
|
|
32
|
+
}).passthrough().describe("A source item in the search response.");
|
|
33
33
|
const openperplexSearch = action("OPENPERPLEX_SEARCH", {
|
|
34
34
|
slug: "openperplex-search",
|
|
35
35
|
name: "Search Documents",
|
|
@@ -41,7 +41,7 @@ const openperplexSearch = action("OPENPERPLEX_SEARCH", {
|
|
|
41
41
|
sources: z.array(OpenperplexSearch_SourceItemSchema).describe("List of sources used to generate the response.").nullable().optional(),
|
|
42
42
|
llm_response: z.string().describe("The LLM-generated response based on the search results.").nullable(),
|
|
43
43
|
response_time: z.number().describe("The time taken to generate the response in seconds.").nullable().optional()
|
|
44
|
-
}).describe("Response model for a search operation from the OpenPerplex API.")
|
|
44
|
+
}).passthrough().describe("Response model for a search operation from the OpenPerplex API.")
|
|
45
45
|
});
|
|
46
46
|
//#endregion
|
|
47
47
|
export { openperplexSearch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.mjs","names":[],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchInput = z.object({\n model: z.string().default(\"gpt-4o-mini\").describe(\"Model to use for generating responses. Options: 'o3-mini-high', 'o3-mini-medium', 'gpt-4o', 'gpt-4o-mini', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"The search query or question you want to ask. This is the primary input for your search.\"),\n location: z.string().default(\"us\").describe(\"Country code for localized search results (e.g., 'us', 'jp', 'br', 'fr').\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search to perform. Options: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date for context. Format example: 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. If not provided, the API uses the current date of the server.\").optional(),\n return_images: z.boolean().default(false).describe(\"Set to True to include images in the result.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).default(\"anytime\").describe(\"Filter results by recency. Options: 'hour', 'day', 'week', 'month', 'year', 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Set to True to include sources in the result.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Set to True to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for the response. Use 'auto' to auto-detect based on the query.\").optional(),\n}).describe(\"Parameters for performing a search query using the OpenPerplex API.\");\nconst OpenperplexSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).describe(\"A source item in the search response.\");\nexport const OpenperplexSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).describe(\"Response model for a search operation from the OpenPerplex API.\");\n\nexport const openperplexSearch = action(\"OPENPERPLEX_SEARCH\", {\n slug: \"openperplex-search\",\n name: \"Search Documents\",\n description: \"Tool to search documents using query parameters. Use when you have a search query and optional filters ready.\",\n input: OpenperplexSearchInput,\n output: OpenperplexSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC7L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACrH,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAClI,aAAa,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrJ,aAAa,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC1I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACvN,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5G,gBAAgB,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAS,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC3M,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9G,kBAAkB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACpH,mBAAmB,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,qCAAqC,EAAE,OAAO;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,uCAAuC;
|
|
1
|
+
{"version":3,"file":"search.mjs","names":[],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchInput = z.object({\n model: z.string().default(\"gpt-4o-mini\").describe(\"Model to use for generating responses. Options: 'o3-mini-high', 'o3-mini-medium', 'gpt-4o', 'gpt-4o-mini', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"The search query or question you want to ask. This is the primary input for your search.\"),\n location: z.string().default(\"us\").describe(\"Country code for localized search results (e.g., 'us', 'jp', 'br', 'fr').\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search to perform. Options: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date for context. Format example: 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. If not provided, the API uses the current date of the server.\").optional(),\n return_images: z.boolean().default(false).describe(\"Set to True to include images in the result.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).default(\"anytime\").describe(\"Filter results by recency. Options: 'hour', 'day', 'week', 'month', 'year', 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Set to True to include sources in the result.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Set to True to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for the response. Use 'auto' to auto-detect based on the query.\").optional(),\n}).describe(\"Parameters for performing a search query using the OpenPerplex API.\");\nconst OpenperplexSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).passthrough().describe(\"A source item in the search response.\");\nexport const OpenperplexSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a search operation from the OpenPerplex API.\");\n\nexport const openperplexSearch = action(\"OPENPERPLEX_SEARCH\", {\n slug: \"openperplex-search\",\n name: \"Search Documents\",\n description: \"Tool to search documents using query parameters. Use when you have a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