@keystrokehq/perplexityai 0.1.0 → 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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-async-chat-completion.cjs +5 -5
- package/dist/actions/create-async-chat-completion.cjs.map +1 -1
- package/dist/actions/create-async-chat-completion.d.cts +91 -3
- package/dist/actions/create-async-chat-completion.d.cts.map +1 -1
- package/dist/actions/create-async-chat-completion.d.mts +91 -3
- package/dist/actions/create-async-chat-completion.d.mts.map +1 -1
- package/dist/actions/create-async-chat-completion.mjs +5 -5
- package/dist/actions/create-async-chat-completion.mjs.map +1 -1
- package/dist/actions/create-chat-completion.cjs +20 -20
- package/dist/actions/create-chat-completion.cjs.map +1 -1
- package/dist/actions/create-chat-completion.d.cts +148 -3
- package/dist/actions/create-chat-completion.d.cts.map +1 -1
- package/dist/actions/create-chat-completion.d.mts +148 -3
- package/dist/actions/create-chat-completion.d.mts.map +1 -1
- package/dist/actions/create-chat-completion.mjs +20 -20
- package/dist/actions/create-chat-completion.mjs.map +1 -1
- package/dist/actions/create-contextualized-embeddings.cjs +13 -13
- package/dist/actions/create-contextualized-embeddings.cjs.map +1 -1
- package/dist/actions/create-contextualized-embeddings.d.cts +35 -3
- package/dist/actions/create-contextualized-embeddings.d.cts.map +1 -1
- package/dist/actions/create-contextualized-embeddings.d.mts +35 -3
- package/dist/actions/create-contextualized-embeddings.d.mts.map +1 -1
- package/dist/actions/create-contextualized-embeddings.mjs +13 -13
- package/dist/actions/create-contextualized-embeddings.mjs.map +1 -1
- package/dist/actions/create-embeddings.cjs +14 -14
- package/dist/actions/create-embeddings.cjs.map +1 -1
- package/dist/actions/create-embeddings.d.cts +36 -3
- package/dist/actions/create-embeddings.d.cts.map +1 -1
- package/dist/actions/create-embeddings.d.mts +36 -3
- package/dist/actions/create-embeddings.d.mts.map +1 -1
- package/dist/actions/create-embeddings.mjs +14 -14
- package/dist/actions/create-embeddings.mjs.map +1 -1
- package/dist/actions/execute-agent.cjs +8 -8
- package/dist/actions/execute-agent.cjs.map +1 -1
- package/dist/actions/execute-agent.d.cts +103 -3
- package/dist/actions/execute-agent.d.cts.map +1 -1
- package/dist/actions/execute-agent.d.mts +103 -3
- package/dist/actions/execute-agent.d.mts.map +1 -1
- package/dist/actions/execute-agent.mjs +8 -8
- package/dist/actions/execute-agent.mjs.map +1 -1
- package/dist/actions/get-async-chat-completion.cjs +4 -4
- package/dist/actions/get-async-chat-completion.cjs.map +1 -1
- package/dist/actions/get-async-chat-completion.d.cts +22 -3
- package/dist/actions/get-async-chat-completion.d.cts.map +1 -1
- package/dist/actions/get-async-chat-completion.d.mts +22 -3
- package/dist/actions/get-async-chat-completion.d.mts.map +1 -1
- package/dist/actions/get-async-chat-completion.mjs +4 -4
- package/dist/actions/get-async-chat-completion.mjs.map +1 -1
- package/dist/actions/list-async-chat-completions.cjs +5 -5
- package/dist/actions/list-async-chat-completions.cjs.map +1 -1
- package/dist/actions/list-async-chat-completions.d.cts +19 -3
- package/dist/actions/list-async-chat-completions.d.cts.map +1 -1
- package/dist/actions/list-async-chat-completions.d.mts +19 -3
- package/dist/actions/list-async-chat-completions.d.mts.map +1 -1
- package/dist/actions/list-async-chat-completions.mjs +5 -5
- package/dist/actions/list-async-chat-completions.mjs.map +1 -1
- package/dist/actions/list-models.cjs +7 -7
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +11 -3
- package/dist/actions/list-models.d.cts.map +1 -1
- package/dist/actions/list-models.d.mts +11 -3
- package/dist/actions/list-models.d.mts.map +1 -1
- package/dist/actions/list-models.mjs +7 -7
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/search.cjs +5 -5
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +45 -3
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +45 -3
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +5 -5
- package/dist/actions/search.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-contextualized-embeddings.d.ts
|
|
4
|
-
declare const PerplexityaiCreateContextualizedEmbeddingsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PerplexityaiCreateContextualizedEmbeddingsInput: z.ZodObject<{
|
|
5
|
+
input: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
6
|
+
model: z.ZodEnum<{
|
|
7
|
+
"pplx-embed-context-v1-0.6b": "pplx-embed-context-v1-0.6b";
|
|
8
|
+
"pplx-embed-context-v1-4b": "pplx-embed-context-v1-4b";
|
|
9
|
+
}>;
|
|
10
|
+
dimensions: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
encoding_format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
12
|
+
base64_int8: "base64_int8";
|
|
13
|
+
base64_binary: "base64_binary";
|
|
14
|
+
}>>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const PerplexityaiCreateContextualizedEmbeddingsOutput: z.ZodObject<{
|
|
17
|
+
data: z.ZodArray<z.ZodObject<{
|
|
18
|
+
data: z.ZodArray<z.ZodObject<{
|
|
19
|
+
index: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
object: z.ZodNullable<z.ZodString>;
|
|
21
|
+
embedding: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
index: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
object: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
model: z.ZodNullable<z.ZodString>;
|
|
27
|
+
usage: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
prompt_tokens: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
object: z.ZodNullable<z.ZodString>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
|
+
declare const perplexityaiCreateContextualizedEmbeddings: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
|
+
input: string[][];
|
|
35
|
+
model: "pplx-embed-context-v1-0.6b" | "pplx-embed-context-v1-4b";
|
|
36
|
+
dimensions?: number | undefined;
|
|
37
|
+
encoding_format?: "base64_int8" | "base64_binary" | undefined;
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { perplexityaiCreateContextualizedEmbeddings };
|
|
9
41
|
//# sourceMappingURL=create-contextualized-embeddings.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contextualized-embeddings.d.mts","names":[],"sources":["../../src/actions/create-contextualized-embeddings.ts"],"mappings":";;;cAIa,+CAAA,
|
|
1
|
+
{"version":3,"file":"create-contextualized-embeddings.d.mts","names":[],"sources":["../../src/actions/create-contextualized-embeddings.ts"],"mappings":";;;cAIa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;;;;;;;cAoB/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAOhD,0CAAA,gCAA0C,wBAAA"}
|
|
@@ -8,19 +8,19 @@ const PerplexityaiCreateContextualizedEmbeddingsInput = z.object({
|
|
|
8
8
|
encoding_format: z.enum(["base64_int8", "base64_binary"]).default("base64_int8").describe("Encoding format for embeddings output.").optional()
|
|
9
9
|
}).describe("Request model for creating contextualized embeddings.\nGenerates document-aware embeddings for text chunks that share a source document.\nChunks within each document must be in order.");
|
|
10
10
|
const PerplexityaiCreateContextualizedEmbeddings_EmbeddingObjectSchema = z.object({
|
|
11
|
-
index: z.number().int().describe("Index of this chunk within its document"),
|
|
12
|
-
object: z.string().describe("Object type, always 'embedding'"),
|
|
13
|
-
embedding: z.string().describe("Base64-encoded embedding vector")
|
|
14
|
-
}).describe("A single embedding result.");
|
|
11
|
+
index: z.number().int().describe("Index of this chunk within its document").nullable(),
|
|
12
|
+
object: z.string().describe("Object type, always 'embedding'").nullable(),
|
|
13
|
+
embedding: z.string().describe("Base64-encoded embedding vector").nullable()
|
|
14
|
+
}).passthrough().describe("A single embedding result.");
|
|
15
15
|
const PerplexityaiCreateContextualizedEmbeddings_DocumentEmbeddingsSchema = z.object({
|
|
16
16
|
data: z.array(PerplexityaiCreateContextualizedEmbeddings_EmbeddingObjectSchema).describe("Embeddings for each chunk"),
|
|
17
|
-
index: z.number().int().describe("Index of this document in the input array"),
|
|
18
|
-
object: z.string().describe("Object type, always 'list'")
|
|
19
|
-
}).describe("Embeddings for all chunks of a single document.");
|
|
17
|
+
index: z.number().int().describe("Index of this document in the input array").nullable(),
|
|
18
|
+
object: z.string().describe("Object type, always 'list'").nullable()
|
|
19
|
+
}).passthrough().describe("Embeddings for all chunks of a single document.");
|
|
20
20
|
const PerplexityaiCreateContextualizedEmbeddings_UsageInfoSchema = z.object({
|
|
21
|
-
total_tokens: z.number().int().describe("Total tokens processed"),
|
|
22
|
-
prompt_tokens: z.number().int().describe("Number of tokens in the input")
|
|
23
|
-
}).describe("Token usage information.");
|
|
21
|
+
total_tokens: z.number().int().describe("Total tokens processed").nullable(),
|
|
22
|
+
prompt_tokens: z.number().int().describe("Number of tokens in the input").nullable()
|
|
23
|
+
}).passthrough().describe("Token usage information.");
|
|
24
24
|
const perplexityaiCreateContextualizedEmbeddings = action("PERPLEXITYAI_CREATE_CONTEXTUALIZED_EMBEDDINGS", {
|
|
25
25
|
slug: "perplexityai-create-contextualized-embeddings",
|
|
26
26
|
name: "Create Contextualized Embeddings",
|
|
@@ -28,10 +28,10 @@ const perplexityaiCreateContextualizedEmbeddings = action("PERPLEXITYAI_CREATE_C
|
|
|
28
28
|
input: PerplexityaiCreateContextualizedEmbeddingsInput,
|
|
29
29
|
output: z.object({
|
|
30
30
|
data: z.array(PerplexityaiCreateContextualizedEmbeddings_DocumentEmbeddingsSchema).describe("Embeddings grouped by document"),
|
|
31
|
-
model: z.string().describe("Model used to generate embeddings"),
|
|
31
|
+
model: z.string().describe("Model used to generate embeddings").nullable(),
|
|
32
32
|
usage: PerplexityaiCreateContextualizedEmbeddings_UsageInfoSchema.nullable(),
|
|
33
|
-
object: z.string().describe("Object type, always 'list'")
|
|
34
|
-
}).describe("Response model for contextualized embeddings.")
|
|
33
|
+
object: z.string().describe("Object type, always 'list'").nullable()
|
|
34
|
+
}).passthrough().describe("Response model for contextualized embeddings.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { perplexityaiCreateContextualizedEmbeddings };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contextualized-embeddings.mjs","names":[],"sources":["../../src/actions/create-contextualized-embeddings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiCreateContextualizedEmbeddingsInput
|
|
1
|
+
{"version":3,"file":"create-contextualized-embeddings.mjs","names":[],"sources":["../../src/actions/create-contextualized-embeddings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiCreateContextualizedEmbeddingsInput = z.object({\n input: z.array(z.array(z.string())).describe(\"Nested array of texts: outer array = documents, inner array = ordered chunks from that document. Max 512 documents, max 16000 total chunks, max 32K tokens per document, max 120K combined tokens. Empty strings not allowed.\"),\n model: z.enum([\"pplx-embed-context-v1-0.6b\", \"pplx-embed-context-v1-4b\"]).describe(\"The contextualized embedding model. pplx-embed-context-v1-0.6b (1024 dims, $0.008/1M tokens) or pplx-embed-context-v1-4b (2560 dims, $0.05/1M tokens).\"),\n dimensions: z.number().int().describe(\"Custom output dimensions via Matryoshka. Range: 128-1024 for 0.6b, 128-2560 for 4b. Defaults to full dimensions.\").optional(),\n encoding_format: z.enum([\"base64_int8\", \"base64_binary\"]).default(\"base64_int8\").describe(\"Encoding format for embeddings output.\").optional(),\n}).describe(\"Request model for creating contextualized embeddings.\\nGenerates document-aware embeddings for text chunks that share a source document.\\nChunks within each document must be in order.\");\nconst PerplexityaiCreateContextualizedEmbeddings_EmbeddingObjectSchema = z.object({\n index: z.number().int().describe(\"Index of this chunk within its document\").nullable(),\n object: z.string().describe(\"Object type, always 'embedding'\").nullable(),\n embedding: z.string().describe(\"Base64-encoded embedding vector\").nullable(),\n}).passthrough().describe(\"A single embedding result.\");\nconst PerplexityaiCreateContextualizedEmbeddings_DocumentEmbeddingsSchema = z.object({\n data: z.array(PerplexityaiCreateContextualizedEmbeddings_EmbeddingObjectSchema).describe(\"Embeddings for each chunk\"),\n index: z.number().int().describe(\"Index of this document in the input array\").nullable(),\n object: z.string().describe(\"Object type, always 'list'\").nullable(),\n}).passthrough().describe(\"Embeddings for all chunks of a single document.\");\nconst PerplexityaiCreateContextualizedEmbeddings_UsageInfoSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens processed\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the input\").nullable(),\n}).passthrough().describe(\"Token usage information.\");\nexport const PerplexityaiCreateContextualizedEmbeddingsOutput = z.object({\n data: z.array(PerplexityaiCreateContextualizedEmbeddings_DocumentEmbeddingsSchema).describe(\"Embeddings grouped by document\"),\n model: z.string().describe(\"Model used to generate embeddings\").nullable(),\n usage: PerplexityaiCreateContextualizedEmbeddings_UsageInfoSchema.nullable(),\n object: z.string().describe(\"Object type, always 'list'\").nullable(),\n}).passthrough().describe(\"Response model for contextualized embeddings.\");\n\nexport const perplexityaiCreateContextualizedEmbeddings = action(\"PERPLEXITYAI_CREATE_CONTEXTUALIZED_EMBEDDINGS\", {\n slug: \"perplexityai-create-contextualized-embeddings\",\n name: \"Create Contextualized Embeddings\",\n description: \"Create Contextualized Embeddings (POST /v1/contextualizedembeddings). Generates document-aware embeddings where chunks from the same document share context. Unlike standard embeddings, these recognize sequential relationships within documents, improving retrieval quality. Models: pplx-embed-context-v1-0.6b (1024 dims) and pplx-embed-context-v1-4b (2560 dims). Both support Matryoshka dimension reduction and INT8/binary quantization.\",\n input: PerplexityaiCreateContextualizedEmbeddingsInput,\n output: PerplexityaiCreateContextualizedEmbeddingsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkD,EAAE,OAAO;CACtE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+NAA+N;CAC5Q,OAAO,EAAE,KAAK,CAAC,8BAA8B,0BAA0B,CAAC,CAAC,CAAC,SAAS,wJAAwJ;CAC3O,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACnK,iBAAiB,EAAE,KAAK,CAAC,eAAe,eAAe,CAAC,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,SAAS,yLAAyL;AACrM,MAAM,mEAAmE,EAAE,OAAO;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,sEAAsE,EAAE,OAAO;CACnF,MAAM,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,2BAA2B;CACpH,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,6DAA6D,EAAE,OAAO;CAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AAQpD,MAAa,6CAA6C,OAAO,iDAAiD;CAChH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ8D,EAAE,OAAO;EACvE,MAAM,EAAE,MAAM,mEAAmE,CAAC,CAAC,SAAS,gCAAgC;EAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACzE,OAAO,2DAA2D,SAAS;EAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -8,26 +8,26 @@ const PerplexityaiCreateEmbeddingsInput = zod.z.object({
|
|
|
8
8
|
encoding_format: zod.z.enum(["base64_int8", "base64_binary"]).default("base64_int8").describe("Encoding format for embeddings output.").optional()
|
|
9
9
|
}).describe("Request model for creating embeddings.\nGenerates vector embeddings for independent texts (queries, sentences, documents).");
|
|
10
10
|
const PerplexityaiCreateEmbeddings_EmbeddingObjectSchema = zod.z.object({
|
|
11
|
-
index: zod.z.number().int().describe("Index of this embedding in the request input array"),
|
|
12
|
-
object: zod.z.string().describe("The object type, always 'embedding'"),
|
|
13
|
-
embedding: zod.z.string().describe("The embedding vector as a base64-encoded string")
|
|
14
|
-
}).describe("A single embedding result.");
|
|
11
|
+
index: zod.z.number().int().describe("Index of this embedding in the request input array").nullable(),
|
|
12
|
+
object: zod.z.string().describe("The object type, always 'embedding'").nullable(),
|
|
13
|
+
embedding: zod.z.string().describe("The embedding vector as a base64-encoded string").nullable()
|
|
14
|
+
}).passthrough().describe("A single embedding result.");
|
|
15
15
|
const PerplexityaiCreateEmbeddings_CostInfoSchema = zod.z.object({
|
|
16
|
-
currency: zod.z.string().describe("Currency code (e.g., 'USD')"),
|
|
17
|
-
input_cost: zod.z.number().describe("Cost for input tokens"),
|
|
18
|
-
total_cost: zod.z.number().describe("Total cost for the request")
|
|
19
|
-
}).describe("Cost breakdown for the embeddings request.");
|
|
16
|
+
currency: zod.z.string().describe("Currency code (e.g., 'USD')").nullable(),
|
|
17
|
+
input_cost: zod.z.number().describe("Cost for input tokens").nullable(),
|
|
18
|
+
total_cost: zod.z.number().describe("Total cost for the request").nullable()
|
|
19
|
+
}).passthrough().describe("Cost breakdown for the embeddings request.");
|
|
20
20
|
const PerplexityaiCreateEmbeddings_UsageInfoSchema = zod.z.object({
|
|
21
21
|
cost: PerplexityaiCreateEmbeddings_CostInfoSchema.nullable().optional(),
|
|
22
|
-
total_tokens: zod.z.number().int().describe("Total number of tokens processed"),
|
|
23
|
-
prompt_tokens: zod.z.number().int().describe("Number of tokens in the input texts")
|
|
24
|
-
}).describe("Token usage information for the embeddings request.");
|
|
22
|
+
total_tokens: zod.z.number().int().describe("Total number of tokens processed").nullable(),
|
|
23
|
+
prompt_tokens: zod.z.number().int().describe("Number of tokens in the input texts").nullable()
|
|
24
|
+
}).passthrough().describe("Token usage information for the embeddings request.");
|
|
25
25
|
const PerplexityaiCreateEmbeddingsOutput = zod.z.object({
|
|
26
26
|
data: zod.z.array(PerplexityaiCreateEmbeddings_EmbeddingObjectSchema).describe("List of embedding objects"),
|
|
27
|
-
model: zod.z.string().describe("The model used to generate embeddings"),
|
|
27
|
+
model: zod.z.string().describe("The model used to generate embeddings").nullable(),
|
|
28
28
|
usage: PerplexityaiCreateEmbeddings_UsageInfoSchema.nullable(),
|
|
29
|
-
object: zod.z.string().describe("The object type, always 'list'")
|
|
30
|
-
}).describe("Response model for embeddings creation.\nContains the generated embeddings and usage information.");
|
|
29
|
+
object: zod.z.string().describe("The object type, always 'list'").nullable()
|
|
30
|
+
}).passthrough().describe("Response model for embeddings creation.\nContains the generated embeddings and usage information.");
|
|
31
31
|
const perplexityaiCreateEmbeddings = require_action.action("PERPLEXITYAI_CREATE_EMBEDDINGS", {
|
|
32
32
|
slug: "perplexityai-create-embeddings",
|
|
33
33
|
name: "CreateEmbeddings",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-embeddings.cjs","names":["z","action"],"sources":["../../src/actions/create-embeddings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiCreateEmbeddingsInput
|
|
1
|
+
{"version":3,"file":"create-embeddings.cjs","names":["z","action"],"sources":["../../src/actions/create-embeddings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiCreateEmbeddingsInput = z.object({\n input: z.union([z.string(), z.array(z.string())]),\n model: z.enum([\"pplx-embed-v1-0.6b\", \"pplx-embed-v1-4b\"]).describe(\"The embedding model to use. pplx-embed-v1-0.6b is smaller and faster, while pplx-embed-v1-4b is larger and more accurate.\"),\n dimensions: z.number().int().describe(\"Number of dimensions for output embeddings (Matryoshka). Range: 128-1024 for pplx-embed-v1-0.6b, 128-2560 for pplx-embed-v1-4b. Defaults to full dimensions (1024 or 2560).\").optional(),\n encoding_format: z.enum([\"base64_int8\", \"base64_binary\"]).default(\"base64_int8\").describe(\"Encoding format for embeddings output.\").optional(),\n}).describe(\"Request model for creating embeddings.\\nGenerates vector embeddings for independent texts (queries, sentences, documents).\");\nconst PerplexityaiCreateEmbeddings_EmbeddingObjectSchema = z.object({\n index: z.number().int().describe(\"Index of this embedding in the request input array\").nullable(),\n object: z.string().describe(\"The object type, always 'embedding'\").nullable(),\n embedding: z.string().describe(\"The embedding vector as a base64-encoded string\").nullable(),\n}).passthrough().describe(\"A single embedding result.\");\nconst PerplexityaiCreateEmbeddings_CostInfoSchema = z.object({\n currency: z.string().describe(\"Currency code (e.g., 'USD')\").nullable(),\n input_cost: z.number().describe(\"Cost for input tokens\").nullable(),\n total_cost: z.number().describe(\"Total cost for the request\").nullable(),\n}).passthrough().describe(\"Cost breakdown for the embeddings request.\");\nconst PerplexityaiCreateEmbeddings_UsageInfoSchema = z.object({\n cost: PerplexityaiCreateEmbeddings_CostInfoSchema.nullable().optional(),\n total_tokens: z.number().int().describe(\"Total number of tokens processed\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the input texts\").nullable(),\n}).passthrough().describe(\"Token usage information for the embeddings request.\");\nexport const PerplexityaiCreateEmbeddingsOutput = z.object({\n data: z.array(PerplexityaiCreateEmbeddings_EmbeddingObjectSchema).describe(\"List of embedding objects\"),\n model: z.string().describe(\"The model used to generate embeddings\").nullable(),\n usage: PerplexityaiCreateEmbeddings_UsageInfoSchema.nullable(),\n object: z.string().describe(\"The object type, always 'list'\").nullable(),\n}).passthrough().describe(\"Response model for embeddings creation.\\nContains the generated embeddings and usage information.\");\n\nexport const perplexityaiCreateEmbeddings = action(\"PERPLEXITYAI_CREATE_EMBEDDINGS\", {\n slug: \"perplexityai-create-embeddings\",\n name: \"CreateEmbeddings\",\n description: \"Generate vector embeddings for independent texts (queries, sentences, documents). This action takes one or more input texts and generates vector embeddings using Perplexity AI's embedding models. Embeddings are useful for semantic search, similarity matching, and machine learning downstream tasks. Supported models: - pplx-embed-v1-0.6b: Smaller, faster model (1024 dimensions) - pplx-embed-v1-4b: Larger, more accurate model (2560 dimensions) The output embeddings are base64-encoded for efficient transmission. Use the dimensions parameter to reduce embedding size for faster processing when full precision is not required (Matryoshka representation).\",\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,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,MAAM,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,2BAA2B;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,OAAO,6CAA6C,SAAS;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mGAAmG;AAE7H,MAAa,+BAA+BC,eAAAA,OAAO,kCAAkC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-embeddings.d.ts
|
|
4
|
-
declare const PerplexityaiCreateEmbeddingsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PerplexityaiCreateEmbeddingsInput: z.ZodObject<{
|
|
5
|
+
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
6
|
+
model: z.ZodEnum<{
|
|
7
|
+
"pplx-embed-v1-0.6b": "pplx-embed-v1-0.6b";
|
|
8
|
+
"pplx-embed-v1-4b": "pplx-embed-v1-4b";
|
|
9
|
+
}>;
|
|
10
|
+
dimensions: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
encoding_format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
12
|
+
base64_int8: "base64_int8";
|
|
13
|
+
base64_binary: "base64_binary";
|
|
14
|
+
}>>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const PerplexityaiCreateEmbeddingsOutput: z.ZodObject<{
|
|
17
|
+
data: z.ZodArray<z.ZodObject<{
|
|
18
|
+
index: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
object: z.ZodNullable<z.ZodString>;
|
|
20
|
+
embedding: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
model: z.ZodNullable<z.ZodString>;
|
|
23
|
+
usage: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
26
|
+
input_cost: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
total_cost: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
|
+
total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
prompt_tokens: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
|
+
object: z.ZodNullable<z.ZodString>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
|
+
declare const perplexityaiCreateEmbeddings: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
|
+
input: string | string[];
|
|
36
|
+
model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b";
|
|
37
|
+
dimensions?: number | undefined;
|
|
38
|
+
encoding_format?: "base64_int8" | "base64_binary" | undefined;
|
|
39
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
40
|
//#endregion
|
|
8
41
|
export { perplexityaiCreateEmbeddings };
|
|
9
42
|
//# sourceMappingURL=create-embeddings.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-embeddings.d.cts","names":[],"sources":["../../src/actions/create-embeddings.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"create-embeddings.d.cts","names":[],"sources":["../../src/actions/create-embeddings.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAOlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-embeddings.d.ts
|
|
4
|
-
declare const PerplexityaiCreateEmbeddingsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PerplexityaiCreateEmbeddingsInput: z.ZodObject<{
|
|
5
|
+
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
6
|
+
model: z.ZodEnum<{
|
|
7
|
+
"pplx-embed-v1-0.6b": "pplx-embed-v1-0.6b";
|
|
8
|
+
"pplx-embed-v1-4b": "pplx-embed-v1-4b";
|
|
9
|
+
}>;
|
|
10
|
+
dimensions: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
encoding_format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
12
|
+
base64_int8: "base64_int8";
|
|
13
|
+
base64_binary: "base64_binary";
|
|
14
|
+
}>>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const PerplexityaiCreateEmbeddingsOutput: z.ZodObject<{
|
|
17
|
+
data: z.ZodArray<z.ZodObject<{
|
|
18
|
+
index: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
object: z.ZodNullable<z.ZodString>;
|
|
20
|
+
embedding: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
model: z.ZodNullable<z.ZodString>;
|
|
23
|
+
usage: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
26
|
+
input_cost: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
total_cost: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
|
+
total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
prompt_tokens: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
|
+
object: z.ZodNullable<z.ZodString>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
|
+
declare const perplexityaiCreateEmbeddings: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
|
+
input: string | string[];
|
|
36
|
+
model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b";
|
|
37
|
+
dimensions?: number | undefined;
|
|
38
|
+
encoding_format?: "base64_int8" | "base64_binary" | undefined;
|
|
39
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
40
|
//#endregion
|
|
8
41
|
export { perplexityaiCreateEmbeddings };
|
|
9
42
|
//# sourceMappingURL=create-embeddings.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-embeddings.d.mts","names":[],"sources":["../../src/actions/create-embeddings.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"create-embeddings.d.mts","names":[],"sources":["../../src/actions/create-embeddings.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAOlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -8,20 +8,20 @@ const PerplexityaiCreateEmbeddingsInput = z.object({
|
|
|
8
8
|
encoding_format: z.enum(["base64_int8", "base64_binary"]).default("base64_int8").describe("Encoding format for embeddings output.").optional()
|
|
9
9
|
}).describe("Request model for creating embeddings.\nGenerates vector embeddings for independent texts (queries, sentences, documents).");
|
|
10
10
|
const PerplexityaiCreateEmbeddings_EmbeddingObjectSchema = z.object({
|
|
11
|
-
index: z.number().int().describe("Index of this embedding in the request input array"),
|
|
12
|
-
object: z.string().describe("The object type, always 'embedding'"),
|
|
13
|
-
embedding: z.string().describe("The embedding vector as a base64-encoded string")
|
|
14
|
-
}).describe("A single embedding result.");
|
|
11
|
+
index: z.number().int().describe("Index of this embedding in the request input array").nullable(),
|
|
12
|
+
object: z.string().describe("The object type, always 'embedding'").nullable(),
|
|
13
|
+
embedding: z.string().describe("The embedding vector as a base64-encoded string").nullable()
|
|
14
|
+
}).passthrough().describe("A single embedding result.");
|
|
15
15
|
const PerplexityaiCreateEmbeddings_CostInfoSchema = z.object({
|
|
16
|
-
currency: z.string().describe("Currency code (e.g., 'USD')"),
|
|
17
|
-
input_cost: z.number().describe("Cost for input tokens"),
|
|
18
|
-
total_cost: z.number().describe("Total cost for the request")
|
|
19
|
-
}).describe("Cost breakdown for the embeddings request.");
|
|
16
|
+
currency: z.string().describe("Currency code (e.g., 'USD')").nullable(),
|
|
17
|
+
input_cost: z.number().describe("Cost for input tokens").nullable(),
|
|
18
|
+
total_cost: z.number().describe("Total cost for the request").nullable()
|
|
19
|
+
}).passthrough().describe("Cost breakdown for the embeddings request.");
|
|
20
20
|
const PerplexityaiCreateEmbeddings_UsageInfoSchema = z.object({
|
|
21
21
|
cost: PerplexityaiCreateEmbeddings_CostInfoSchema.nullable().optional(),
|
|
22
|
-
total_tokens: z.number().int().describe("Total number of tokens processed"),
|
|
23
|
-
prompt_tokens: z.number().int().describe("Number of tokens in the input texts")
|
|
24
|
-
}).describe("Token usage information for the embeddings request.");
|
|
22
|
+
total_tokens: z.number().int().describe("Total number of tokens processed").nullable(),
|
|
23
|
+
prompt_tokens: z.number().int().describe("Number of tokens in the input texts").nullable()
|
|
24
|
+
}).passthrough().describe("Token usage information for the embeddings request.");
|
|
25
25
|
const perplexityaiCreateEmbeddings = action("PERPLEXITYAI_CREATE_EMBEDDINGS", {
|
|
26
26
|
slug: "perplexityai-create-embeddings",
|
|
27
27
|
name: "CreateEmbeddings",
|
|
@@ -29,10 +29,10 @@ const perplexityaiCreateEmbeddings = action("PERPLEXITYAI_CREATE_EMBEDDINGS", {
|
|
|
29
29
|
input: PerplexityaiCreateEmbeddingsInput,
|
|
30
30
|
output: z.object({
|
|
31
31
|
data: z.array(PerplexityaiCreateEmbeddings_EmbeddingObjectSchema).describe("List of embedding objects"),
|
|
32
|
-
model: z.string().describe("The model used to generate embeddings"),
|
|
32
|
+
model: z.string().describe("The model used to generate embeddings").nullable(),
|
|
33
33
|
usage: PerplexityaiCreateEmbeddings_UsageInfoSchema.nullable(),
|
|
34
|
-
object: z.string().describe("The object type, always 'list'")
|
|
35
|
-
}).describe("Response model for embeddings creation.\nContains the generated embeddings and usage information.")
|
|
34
|
+
object: z.string().describe("The object type, always 'list'").nullable()
|
|
35
|
+
}).passthrough().describe("Response model for embeddings creation.\nContains the generated embeddings and usage information.")
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { perplexityaiCreateEmbeddings };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-embeddings.mjs","names":[],"sources":["../../src/actions/create-embeddings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiCreateEmbeddingsInput
|
|
1
|
+
{"version":3,"file":"create-embeddings.mjs","names":[],"sources":["../../src/actions/create-embeddings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiCreateEmbeddingsInput = z.object({\n input: z.union([z.string(), z.array(z.string())]),\n model: z.enum([\"pplx-embed-v1-0.6b\", \"pplx-embed-v1-4b\"]).describe(\"The embedding model to use. pplx-embed-v1-0.6b is smaller and faster, while pplx-embed-v1-4b is larger and more accurate.\"),\n dimensions: z.number().int().describe(\"Number of dimensions for output embeddings (Matryoshka). Range: 128-1024 for pplx-embed-v1-0.6b, 128-2560 for pplx-embed-v1-4b. Defaults to full dimensions (1024 or 2560).\").optional(),\n encoding_format: z.enum([\"base64_int8\", \"base64_binary\"]).default(\"base64_int8\").describe(\"Encoding format for embeddings output.\").optional(),\n}).describe(\"Request model for creating embeddings.\\nGenerates vector embeddings for independent texts (queries, sentences, documents).\");\nconst PerplexityaiCreateEmbeddings_EmbeddingObjectSchema = z.object({\n index: z.number().int().describe(\"Index of this embedding in the request input array\").nullable(),\n object: z.string().describe(\"The object type, always 'embedding'\").nullable(),\n embedding: z.string().describe(\"The embedding vector as a base64-encoded string\").nullable(),\n}).passthrough().describe(\"A single embedding result.\");\nconst PerplexityaiCreateEmbeddings_CostInfoSchema = z.object({\n currency: z.string().describe(\"Currency code (e.g., 'USD')\").nullable(),\n input_cost: z.number().describe(\"Cost for input tokens\").nullable(),\n total_cost: z.number().describe(\"Total cost for the request\").nullable(),\n}).passthrough().describe(\"Cost breakdown for the embeddings request.\");\nconst PerplexityaiCreateEmbeddings_UsageInfoSchema = z.object({\n cost: PerplexityaiCreateEmbeddings_CostInfoSchema.nullable().optional(),\n total_tokens: z.number().int().describe(\"Total number of tokens processed\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the input texts\").nullable(),\n}).passthrough().describe(\"Token usage information for the embeddings request.\");\nexport const PerplexityaiCreateEmbeddingsOutput = z.object({\n data: z.array(PerplexityaiCreateEmbeddings_EmbeddingObjectSchema).describe(\"List of embedding objects\"),\n model: z.string().describe(\"The model used to generate embeddings\").nullable(),\n usage: PerplexityaiCreateEmbeddings_UsageInfoSchema.nullable(),\n object: z.string().describe(\"The object type, always 'list'\").nullable(),\n}).passthrough().describe(\"Response model for embeddings creation.\\nContains the generated embeddings and usage information.\");\n\nexport const perplexityaiCreateEmbeddings = action(\"PERPLEXITYAI_CREATE_EMBEDDINGS\", {\n slug: \"perplexityai-create-embeddings\",\n name: \"CreateEmbeddings\",\n description: \"Generate vector embeddings for independent texts (queries, sentences, documents). This action takes one or more input texts and generates vector embeddings using Perplexity AI's embedding models. Embeddings are useful for semantic search, similarity matching, and machine learning downstream tasks. Supported models: - pplx-embed-v1-0.6b: Smaller, faster model (1024 dimensions) - pplx-embed-v1-4b: Larger, more accurate model (2560 dimensions) The output embeddings are base64-encoded for efficient transmission. Use the dimensions parameter to reduce embedding size for faster processing when full precision is not required (Matryoshka representation).\",\n input: PerplexityaiCreateEmbeddingsInput,\n output: PerplexityaiCreateEmbeddingsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,OAAO,EAAE,KAAK,CAAC,sBAAsB,kBAAkB,CAAC,CAAC,CAAC,SAAS,2HAA2H;CAC9L,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CAC9N,iBAAiB,EAAE,KAAK,CAAC,eAAe,eAAe,CAAC,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,SAAS,4HAA4H;AACxI,MAAM,qDAAqD,EAAE,OAAO;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,+CAA+C,EAAE,OAAO;CAC5D,MAAM,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACtE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAQ/E,MAAa,+BAA+B,OAAO,kCAAkC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZgD,EAAE,OAAO;EACzD,MAAM,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,2BAA2B;EACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC7E,OAAO,6CAA6C,SAAS;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mGAOhB;AACV,CAAC"}
|
|
@@ -14,21 +14,21 @@ const PerplexityaiExecuteAgentInput = zod.z.object({
|
|
|
14
14
|
last_updated_after_filter: zod.z.string().nullable().optional(),
|
|
15
15
|
search_before_date_filter: zod.z.string().nullable().optional(),
|
|
16
16
|
last_updated_before_filter: zod.z.string().nullable().optional()
|
|
17
|
-
}).describe("Filters for the web search tool.").nullable().optional(),
|
|
17
|
+
}).passthrough().describe("Filters for the web search tool.").nullable().optional(),
|
|
18
18
|
max_tokens: zod.z.number().int().nullable().optional(),
|
|
19
19
|
max_tokens_per_page: zod.z.number().int().nullable().optional()
|
|
20
|
-
}).describe("Web search tool configuration."),
|
|
20
|
+
}).passthrough().describe("Web search tool configuration."),
|
|
21
21
|
zod.z.object({
|
|
22
22
|
type: zod.z.string().default("fetch_url").describe("Must be 'fetch_url'").optional(),
|
|
23
23
|
max_urls: zod.z.number().int().nullable().optional()
|
|
24
|
-
}).describe("URL fetching tool configuration."),
|
|
24
|
+
}).passthrough().describe("URL fetching tool configuration."),
|
|
25
25
|
zod.z.object({
|
|
26
26
|
name: zod.z.string().describe("Name of the function"),
|
|
27
27
|
type: zod.z.string().default("function").describe("Must be 'function'").optional(),
|
|
28
28
|
strict: zod.z.boolean().nullable().optional(),
|
|
29
29
|
parameters: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
|
|
30
30
|
description: zod.z.string().nullable().optional()
|
|
31
|
-
}).describe("Function calling tool configuration.")
|
|
31
|
+
}).passthrough().describe("Function calling tool configuration.")
|
|
32
32
|
])).describe("Tools available to the agent: web_search, fetch_url, function.").optional(),
|
|
33
33
|
models: zod.z.array(zod.z.string()).describe("Fallback chain of models (min 1, max 5). API tries each in order if prior fails. At least one of model, models, or preset is required.").optional(),
|
|
34
34
|
preset: zod.z.string().describe("Preset configuration: 'fast-search', 'pro-search', 'deep-research'. 'deep-research' generates very long responses (10K-100K+ words). At least one of model, models, or preset is required.").optional(),
|
|
@@ -48,16 +48,16 @@ const PerplexityaiExecuteAgentInput = zod.z.object({
|
|
|
48
48
|
language_preference: zod.z.string().describe("Preferred response language as ISO 639-1 code.").optional()
|
|
49
49
|
}).describe("Request model for the Agent API.");
|
|
50
50
|
const PerplexityaiExecuteAgentOutput = zod.z.object({
|
|
51
|
-
id: zod.z.string().describe("Unique identifier for the response"),
|
|
51
|
+
id: zod.z.string().describe("Unique identifier for the response").nullable(),
|
|
52
52
|
error: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Error info if status is 'failed'").nullable().optional(),
|
|
53
|
-
model: zod.z.string().describe("Model used"),
|
|
53
|
+
model: zod.z.string().describe("Model used").nullable(),
|
|
54
54
|
usage: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Token usage and cost information").nullable().optional(),
|
|
55
55
|
object: zod.z.string().describe("Object type, typically 'response'").nullable().optional(),
|
|
56
56
|
output: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Output items (messages, search results, function calls)").nullable().optional(),
|
|
57
|
-
status: zod.z.string().describe("Status: 'completed', 'failed', 'in_progress', 'requires_action'"),
|
|
57
|
+
status: zod.z.string().describe("Status: 'completed', 'failed', 'in_progress', 'requires_action'").nullable(),
|
|
58
58
|
created_at: zod.z.number().int().describe("Unix timestamp of creation").nullable().optional(),
|
|
59
59
|
output_text: zod.z.string().describe("Extracted text output (convenience field)").nullable().optional()
|
|
60
|
-
}).describe("Response model for the Agent API.");
|
|
60
|
+
}).passthrough().describe("Response model for the Agent API.");
|
|
61
61
|
const perplexityaiExecuteAgent = require_action.action("PERPLEXITYAI_EXECUTE_AGENT", {
|
|
62
62
|
slug: "perplexityai-execute-agent",
|
|
63
63
|
name: "Execute Agent",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-agent.cjs","names":["z","action"],"sources":["../../src/actions/execute-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiExecuteAgentInput
|
|
1
|
+
{"version":3,"file":"execute-agent.cjs","names":["z","action"],"sources":["../../src/actions/execute-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiExecuteAgentInput = z.object({\n input: z.string().describe(\"The user's input/query to process.\"),\n model: z.string().describe(\"Model identifier (e.g. 'openai/gpt-5.2', 'perplexity/sonar'). Provider/model format. At least one of model, models, or preset is required.\").optional(),\n tools: z.array(z.union([z.object({\n type: z.string().default(\"web_search\").describe(\"Must be 'web_search'\").optional(),\n filters: z.object({\n search_domain_filter: z.array(z.string()).nullable().optional(),\n search_recency_filter: z.string().nullable().optional(),\n search_after_date_filter: z.string().nullable().optional(),\n last_updated_after_filter: z.string().nullable().optional(),\n search_before_date_filter: z.string().nullable().optional(),\n last_updated_before_filter: z.string().nullable().optional(),\n}).passthrough().describe(\"Filters for the web search tool.\").nullable().optional(),\n max_tokens: z.number().int().nullable().optional(),\n max_tokens_per_page: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Web search tool configuration.\"), z.object({\n type: z.string().default(\"fetch_url\").describe(\"Must be 'fetch_url'\").optional(),\n max_urls: z.number().int().nullable().optional(),\n}).passthrough().describe(\"URL fetching tool configuration.\"), z.object({\n name: z.string().describe(\"Name of the function\"),\n type: z.string().default(\"function\").describe(\"Must be 'function'\").optional(),\n strict: z.boolean().nullable().optional(),\n parameters: z.record(z.string(), z.unknown()).nullable().optional(),\n description: z.string().nullable().optional(),\n}).passthrough().describe(\"Function calling tool configuration.\")])).describe(\"Tools available to the agent: web_search, fetch_url, function.\").optional(),\n models: z.array(z.string()).describe(\"Fallback chain of models (min 1, max 5). API tries each in order if prior fails. At least one of model, models, or preset is required.\").optional(),\n preset: z.string().describe(\"Preset configuration: 'fast-search', 'pro-search', 'deep-research'. 'deep-research' generates very long responses (10K-100K+ words). At least one of model, models, or preset is required.\").optional(),\n max_steps: z.number().int().describe(\"Maximum number of agent steps (1-10).\").optional(),\n reasoning: z.object({\n effort: z.string().describe(\"Reasoning effort: 'low', 'medium', 'high'\"),\n}).describe(\"Configuration for reasoning behavior.\").optional(),\n instructions: z.string().describe(\"System instructions to guide the agent's behavior.\").optional(),\n response_format: z.object({\n type: z.string().describe(\"Must be 'json_schema'\"),\n json_schema: z.object({\n name: z.string().describe(\"Schema name (1-64 alphanumeric)\"),\n schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition\"),\n strict: z.boolean().describe(\"Enforce strict validation\").optional(),\n description: z.string().describe(\"Schema description\").optional(),\n}).describe(\"JSON schema for structured output.\").optional(),\n}).describe(\"Response format for structured output.\").optional(),\n max_output_tokens: z.number().int().describe(\"Maximum output tokens.\").optional(),\n language_preference: z.string().describe(\"Preferred response language as ISO 639-1 code.\").optional(),\n}).describe(\"Request model for the Agent API.\");\nexport const PerplexityaiExecuteAgentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the response\").nullable(),\n error: z.record(z.string(), z.unknown()).describe(\"Error info if status is 'failed'\").nullable().optional(),\n model: z.string().describe(\"Model used\").nullable(),\n usage: z.record(z.string(), z.unknown()).describe(\"Token usage and cost information\").nullable().optional(),\n object: z.string().describe(\"Object type, typically 'response'\").nullable().optional(),\n output: z.array(z.record(z.string(), z.unknown())).describe(\"Output items (messages, search results, function calls)\").nullable().optional(),\n status: z.string().describe(\"Status: 'completed', 'failed', 'in_progress', 'requires_action'\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp of creation\").nullable().optional(),\n output_text: z.string().describe(\"Extracted text output (convenience field)\").nullable().optional(),\n}).passthrough().describe(\"Response model for the Agent API.\");\n\nexport const perplexityaiExecuteAgent = action(\"PERPLEXITYAI_EXECUTE_AGENT\", {\n slug: \"perplexityai-execute-agent\",\n name: \"Execute Agent\",\n description: \"Create Agent Response (POST /v1/agent). Orchestrates multi-step agentic workflows with built-in tools (web search, URL fetching, function calling), reasoning, and multi-model support. Streaming is not supported by this action. At least one of 'model', 'models', or 'preset' must be provided. Available presets: 'fast-search', 'pro-search', 'deep-research'. The 'deep-research' preset generates very long responses (10K-100K+ words) with exhaustive multi-source analysis. Available models include Perplexity Sonar, OpenAI, Anthropic, Google, xAI, and NVIDIA models at direct provider rates. Use the List Models action to see available model identifiers.\",\n input: PerplexityaiExecuteAgentInput,\n output: PerplexityaiExecuteAgentOutput,\n});\n"],"mappings":";;;AAIA,MAAa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AGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAE7D,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,109 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/execute-agent.d.ts
|
|
4
|
-
declare const PerplexityaiExecuteAgentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PerplexityaiExecuteAgentInput: z.ZodObject<{
|
|
5
|
+
input: z.ZodString;
|
|
6
|
+
model: z.ZodOptional<z.ZodString>;
|
|
7
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
8
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
9
|
+
filters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
search_domain_filter: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
11
|
+
search_recency_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
search_after_date_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
last_updated_after_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
search_before_date_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
last_updated_before_filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
|
+
max_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
max_tokens_per_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
20
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
21
|
+
max_urls: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
25
|
+
strict: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
27
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$loose>]>>>;
|
|
29
|
+
models: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
31
|
+
max_steps: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
effort: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
36
|
+
response_format: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
type: z.ZodString;
|
|
38
|
+
json_schema: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
41
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
description: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
max_output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
language_preference: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
declare const PerplexityaiExecuteAgentOutput: z.ZodObject<{
|
|
49
|
+
id: z.ZodNullable<z.ZodString>;
|
|
50
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
51
|
+
model: z.ZodNullable<z.ZodString>;
|
|
52
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
53
|
+
object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
55
|
+
status: z.ZodNullable<z.ZodString>;
|
|
56
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
57
|
+
output_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
|
+
declare const perplexityaiExecuteAgent: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
60
|
+
input: string;
|
|
61
|
+
model?: string | undefined;
|
|
62
|
+
tools?: ({
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
type?: string | undefined;
|
|
65
|
+
filters?: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
search_domain_filter?: string[] | null | undefined;
|
|
68
|
+
search_recency_filter?: string | null | undefined;
|
|
69
|
+
search_after_date_filter?: string | null | undefined;
|
|
70
|
+
last_updated_after_filter?: string | null | undefined;
|
|
71
|
+
search_before_date_filter?: string | null | undefined;
|
|
72
|
+
last_updated_before_filter?: string | null | undefined;
|
|
73
|
+
} | null | undefined;
|
|
74
|
+
max_tokens?: number | null | undefined;
|
|
75
|
+
max_tokens_per_page?: number | null | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
[x: string]: unknown;
|
|
78
|
+
type?: string | undefined;
|
|
79
|
+
max_urls?: number | null | undefined;
|
|
80
|
+
} | {
|
|
81
|
+
[x: string]: unknown;
|
|
82
|
+
name: string;
|
|
83
|
+
type?: string | undefined;
|
|
84
|
+
strict?: boolean | null | undefined;
|
|
85
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
86
|
+
description?: string | null | undefined;
|
|
87
|
+
})[] | undefined;
|
|
88
|
+
models?: string[] | undefined;
|
|
89
|
+
preset?: string | undefined;
|
|
90
|
+
max_steps?: number | undefined;
|
|
91
|
+
reasoning?: {
|
|
92
|
+
effort: string;
|
|
93
|
+
} | undefined;
|
|
94
|
+
instructions?: string | undefined;
|
|
95
|
+
response_format?: {
|
|
96
|
+
type: string;
|
|
97
|
+
json_schema?: {
|
|
98
|
+
name: string;
|
|
99
|
+
schema: Record<string, unknown>;
|
|
100
|
+
strict?: boolean | undefined;
|
|
101
|
+
description?: string | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
max_output_tokens?: number | undefined;
|
|
105
|
+
language_preference?: string | undefined;
|
|
106
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
107
|
//#endregion
|
|
8
108
|
export { perplexityaiExecuteAgent };
|
|
9
109
|
//# sourceMappingURL=execute-agent.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-agent.d.cts","names":[],"sources":["../../src/actions/execute-agent.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"execute-agent.d.cts","names":[],"sources":["../../src/actions/execute-agent.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY9B,wBAAA,gCAAwB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMnC,MAAA;;;;;;;;;;;;;;cAAA,MAAA"}
|