@keystrokehq/perplexityai 0.1.4 → 0.1.6
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 +1 -0
- package/dist/actions/create-async-chat-completion.cjs.map +1 -1
- package/dist/actions/create-async-chat-completion.d.cts +3 -33
- package/dist/actions/create-async-chat-completion.d.cts.map +1 -1
- package/dist/actions/create-async-chat-completion.d.mts +3 -33
- package/dist/actions/create-async-chat-completion.d.mts.map +1 -1
- package/dist/actions/create-async-chat-completion.mjs +1 -0
- package/dist/actions/create-async-chat-completion.mjs.map +1 -1
- package/dist/actions/create-chat-completion.cjs +1 -0
- package/dist/actions/create-chat-completion.cjs.map +1 -1
- package/dist/actions/create-chat-completion.d.cts +3 -43
- package/dist/actions/create-chat-completion.d.cts.map +1 -1
- package/dist/actions/create-chat-completion.d.mts +3 -43
- package/dist/actions/create-chat-completion.d.mts.map +1 -1
- package/dist/actions/create-chat-completion.mjs +1 -0
- package/dist/actions/create-chat-completion.mjs.map +1 -1
- package/dist/actions/create-contextualized-embeddings.cjs +1 -0
- package/dist/actions/create-contextualized-embeddings.cjs.map +1 -1
- package/dist/actions/create-contextualized-embeddings.d.cts +3 -6
- package/dist/actions/create-contextualized-embeddings.d.cts.map +1 -1
- package/dist/actions/create-contextualized-embeddings.d.mts +3 -6
- package/dist/actions/create-contextualized-embeddings.d.mts.map +1 -1
- package/dist/actions/create-contextualized-embeddings.mjs +1 -0
- package/dist/actions/create-contextualized-embeddings.mjs.map +1 -1
- package/dist/actions/create-embeddings.cjs +1 -0
- package/dist/actions/create-embeddings.cjs.map +1 -1
- package/dist/actions/create-embeddings.d.cts +3 -6
- package/dist/actions/create-embeddings.d.cts.map +1 -1
- package/dist/actions/create-embeddings.d.mts +3 -6
- package/dist/actions/create-embeddings.d.mts.map +1 -1
- package/dist/actions/create-embeddings.mjs +1 -0
- package/dist/actions/create-embeddings.mjs.map +1 -1
- package/dist/actions/execute-agent.cjs +1 -0
- package/dist/actions/execute-agent.cjs.map +1 -1
- package/dist/actions/execute-agent.d.cts +3 -48
- package/dist/actions/execute-agent.d.cts.map +1 -1
- package/dist/actions/execute-agent.d.mts +3 -48
- package/dist/actions/execute-agent.d.mts.map +1 -1
- package/dist/actions/execute-agent.mjs +1 -0
- package/dist/actions/execute-agent.mjs.map +1 -1
- package/dist/actions/get-async-chat-completion.cjs +1 -0
- package/dist/actions/get-async-chat-completion.cjs.map +1 -1
- package/dist/actions/get-async-chat-completion.d.cts +3 -3
- package/dist/actions/get-async-chat-completion.d.cts.map +1 -1
- package/dist/actions/get-async-chat-completion.d.mts +3 -3
- package/dist/actions/get-async-chat-completion.d.mts.map +1 -1
- package/dist/actions/get-async-chat-completion.mjs +1 -0
- package/dist/actions/get-async-chat-completion.mjs.map +1 -1
- package/dist/actions/list-async-chat-completions.cjs +1 -0
- package/dist/actions/list-async-chat-completions.cjs.map +1 -1
- package/dist/actions/list-async-chat-completions.d.cts +3 -1
- package/dist/actions/list-async-chat-completions.d.cts.map +1 -1
- package/dist/actions/list-async-chat-completions.d.mts +3 -1
- package/dist/actions/list-async-chat-completions.d.mts.map +1 -1
- package/dist/actions/list-async-chat-completions.mjs +1 -0
- package/dist/actions/list-async-chat-completions.mjs.map +1 -1
- package/dist/actions/list-models.cjs +1 -0
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +3 -1
- package/dist/actions/list-models.d.cts.map +1 -1
- package/dist/actions/list-models.d.mts +3 -1
- package/dist/actions/list-models.d.mts.map +1 -1
- package/dist/actions/list-models.mjs +1 -0
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/search.cjs +1 -0
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +3 -14
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +3 -14
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +1 -0
- package/dist/actions/search.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perplexityai } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-contextualized-embeddings.d.ts
|
|
@@ -30,12 +32,7 @@ declare const PerplexityaiCreateContextualizedEmbeddingsOutput: z.ZodObject<{
|
|
|
30
32
|
}, z.core.$loose>>;
|
|
31
33
|
object: z.ZodNullable<z.ZodString>;
|
|
32
34
|
}, z.core.$loose>;
|
|
33
|
-
declare const perplexityaiCreateContextualizedEmbeddings:
|
|
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]>;
|
|
35
|
+
declare const perplexityaiCreateContextualizedEmbeddings: AppAction<typeof PerplexityaiCreateContextualizedEmbeddingsInput, typeof PerplexityaiCreateContextualizedEmbeddingsOutput, typeof perplexityai.credential>;
|
|
39
36
|
//#endregion
|
|
40
37
|
export { perplexityaiCreateContextualizedEmbeddings };
|
|
41
38
|
//# sourceMappingURL=create-contextualized-embeddings.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contextualized-embeddings.d.cts","names":[],"sources":["../../src/actions/create-contextualized-embeddings.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-contextualized-embeddings.d.cts","names":[],"sources":["../../src/actions/create-contextualized-embeddings.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;;;;;;;cAoB/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAOhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perplexityai } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-contextualized-embeddings.d.ts
|
|
@@ -30,12 +32,7 @@ declare const PerplexityaiCreateContextualizedEmbeddingsOutput: z.ZodObject<{
|
|
|
30
32
|
}, z.core.$loose>>;
|
|
31
33
|
object: z.ZodNullable<z.ZodString>;
|
|
32
34
|
}, z.core.$loose>;
|
|
33
|
-
declare const perplexityaiCreateContextualizedEmbeddings:
|
|
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]>;
|
|
35
|
+
declare const perplexityaiCreateContextualizedEmbeddings: AppAction<typeof PerplexityaiCreateContextualizedEmbeddingsInput, typeof PerplexityaiCreateContextualizedEmbeddingsOutput, typeof perplexityai.credential>;
|
|
39
36
|
//#endregion
|
|
40
37
|
export { perplexityaiCreateContextualizedEmbeddings };
|
|
41
38
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"create-contextualized-embeddings.d.mts","names":[],"sources":["../../src/actions/create-contextualized-embeddings.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;;;;;;;cAoB/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAOhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"create-contextualized-embeddings.mjs","names":[],"sources":["../../src/actions/create-contextualized-embeddings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiCreateContextualizedEmbeddingsInput,\n typeof PerplexityaiCreateContextualizedEmbeddingsOutput,\n typeof perplexityai.credential\n> = 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":";;;;AAMA,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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SAAS;EAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"create-embeddings.cjs","names":["z","action"],"sources":["../../src/actions/create-embeddings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiCreateEmbeddingsInput,\n typeof PerplexityaiCreateEmbeddingsOutput,\n typeof perplexityai.credential\n> = 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":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,OAAOA,IAAAA,EAAE,KAAK,CAAC,sBAAsB,kBAAkB,CAAC,CAAC,CAAC,SAAS,2HAA2H;CAC9L,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CAC9N,iBAAiBA,IAAAA,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,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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5 @@
|
|
|
1
|
+
import { perplexityai } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-embeddings.d.ts
|
|
@@ -31,12 +33,7 @@ declare const PerplexityaiCreateEmbeddingsOutput: z.ZodObject<{
|
|
|
31
33
|
}, z.core.$loose>>;
|
|
32
34
|
object: z.ZodNullable<z.ZodString>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const perplexityaiCreateEmbeddings:
|
|
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]>;
|
|
36
|
+
declare const perplexityaiCreateEmbeddings: AppAction<typeof PerplexityaiCreateEmbeddingsInput, typeof PerplexityaiCreateEmbeddingsOutput, typeof perplexityai.credential>;
|
|
40
37
|
//#endregion
|
|
41
38
|
export { perplexityaiCreateEmbeddings };
|
|
42
39
|
//# sourceMappingURL=create-embeddings.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-embeddings.d.cts","names":[],"sources":["../../src/actions/create-embeddings.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-embeddings.d.cts","names":[],"sources":["../../src/actions/create-embeddings.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAOlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perplexityai } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-embeddings.d.ts
|
|
@@ -31,12 +33,7 @@ declare const PerplexityaiCreateEmbeddingsOutput: z.ZodObject<{
|
|
|
31
33
|
}, z.core.$loose>>;
|
|
32
34
|
object: z.ZodNullable<z.ZodString>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const perplexityaiCreateEmbeddings:
|
|
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]>;
|
|
36
|
+
declare const perplexityaiCreateEmbeddings: AppAction<typeof PerplexityaiCreateEmbeddingsInput, typeof PerplexityaiCreateEmbeddingsOutput, typeof perplexityai.credential>;
|
|
40
37
|
//#endregion
|
|
41
38
|
export { perplexityaiCreateEmbeddings };
|
|
42
39
|
//# sourceMappingURL=create-embeddings.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-embeddings.d.mts","names":[],"sources":["../../src/actions/create-embeddings.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-embeddings.d.mts","names":[],"sources":["../../src/actions/create-embeddings.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAOlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"create-embeddings.mjs","names":[],"sources":["../../src/actions/create-embeddings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiCreateEmbeddingsInput,\n typeof PerplexityaiCreateEmbeddingsOutput,\n typeof perplexityai.credential\n> = 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":";;;;AAMA,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,+BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBgD,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,mGAWhB;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"execute-agent.cjs","names":["z","action"],"sources":["../../src/actions/execute-agent.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiExecuteAgentInput,\n typeof PerplexityaiExecuteAgentOutput,\n typeof perplexityai.credential\n> = 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":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CAClL,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;GACjC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;GACjF,SAASA,IAAAA,EAAE,OAAO;IAClB,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;IAC9D,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;IACtD,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;IACzD,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;IAC1D,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;IAC1D,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACjD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5D,CAAC,C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AA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CAClD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,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,2BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perplexityai } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/execute-agent.d.ts
|
|
@@ -56,54 +58,7 @@ declare const PerplexityaiExecuteAgentOutput: z.ZodObject<{
|
|
|
56
58
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
57
59
|
output_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
60
|
}, z.core.$loose>;
|
|
59
|
-
declare const perplexityaiExecuteAgent:
|
|
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]>;
|
|
61
|
+
declare const perplexityaiExecuteAgent: AppAction<typeof PerplexityaiExecuteAgentInput, typeof PerplexityaiExecuteAgentOutput, typeof perplexityai.credential>;
|
|
107
62
|
//#endregion
|
|
108
63
|
export { perplexityaiExecuteAgent };
|
|
109
64
|
//# sourceMappingURL=execute-agent.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-agent.d.cts","names":[],"sources":["../../src/actions/execute-agent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute-agent.d.cts","names":[],"sources":["../../src/actions/execute-agent.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perplexityai } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/execute-agent.d.ts
|
|
@@ -56,54 +58,7 @@ declare const PerplexityaiExecuteAgentOutput: z.ZodObject<{
|
|
|
56
58
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
57
59
|
output_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
60
|
}, z.core.$loose>;
|
|
59
|
-
declare const perplexityaiExecuteAgent:
|
|
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]>;
|
|
61
|
+
declare const perplexityaiExecuteAgent: AppAction<typeof PerplexityaiExecuteAgentInput, typeof PerplexityaiExecuteAgentOutput, typeof perplexityai.credential>;
|
|
107
62
|
//#endregion
|
|
108
63
|
export { perplexityaiExecuteAgent };
|
|
109
64
|
//# sourceMappingURL=execute-agent.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-agent.d.mts","names":[],"sources":["../../src/actions/execute-agent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute-agent.d.mts","names":[],"sources":["../../src/actions/execute-agent.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-agent.mjs","names":[],"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":"
|
|
1
|
+
{"version":3,"file":"execute-agent.mjs","names":[],"sources":["../../src/actions/execute-agent.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\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: AppAction<\n typeof PerplexityaiExecuteAgentInput,\n typeof PerplexityaiExecuteAgentOutput,\n typeof perplexityai.credential\n> = 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":";;;AA8DA,MAAa,2BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhE2C,EAAE,OAAO;EACpD,O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AC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-chat-completion.cjs","names":["z","action"],"sources":["../../src/actions/get-async-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiGetAsyncChatCompletionInput = z.object({\n request_id: z.string().describe(\"The unique identifier of the async chat completion request to retrieve.\"),\n}).describe(\"Request model for retrieving an async chat completion result.\");\nconst PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nexport const PerplexityaiGetAsyncChatCompletionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the async request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema.nullable(),\n response: z.record(z.string(), z.unknown()).describe(\"The completion response when status is COMPLETED\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n error_message: z.string().describe(\"Error message if job failed\").nullable().optional(),\n}).passthrough().describe(\"Response model for an async chat completion result.\");\n\nexport const perplexityaiGetAsyncChatCompletion = action(\"PERPLEXITYAI_GET_ASYNC_CHAT_COMPLETION\", {\n slug: \"perplexityai-get-async-chat-completion\",\n name: \"Get Async Chat Completion\",\n description: \"Get Async Chat Completion (GET /v1/async/sonar/{id}). Retrieves the result of an asynchronous chat completion request by its ID. Use this to poll for the result after creating an async job. The response includes the status and, when completed, the full completion.\",\n input: PerplexityaiGetAsyncChatCompletionInput,\n output: PerplexityaiGetAsyncChatCompletionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-chat-completion.cjs","names":["z","action"],"sources":["../../src/actions/get-async-chat-completion.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\n\nexport const PerplexityaiGetAsyncChatCompletionInput = z.object({\n request_id: z.string().describe(\"The unique identifier of the async chat completion request to retrieve.\"),\n}).describe(\"Request model for retrieving an async chat completion result.\");\nconst PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nexport const PerplexityaiGetAsyncChatCompletionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the async request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema.nullable(),\n response: z.record(z.string(), z.unknown()).describe(\"The completion response when status is COMPLETED\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n error_message: z.string().describe(\"Error message if job failed\").nullable().optional(),\n}).passthrough().describe(\"Response model for an async chat completion result.\");\n\nexport const perplexityaiGetAsyncChatCompletion: AppAction<\n typeof PerplexityaiGetAsyncChatCompletionInput,\n typeof PerplexityaiGetAsyncChatCompletionOutput,\n typeof perplexityai.credential\n> = action(\"PERPLEXITYAI_GET_ASYNC_CHAT_COMPLETION\", {\n slug: \"perplexityai-get-async-chat-completion\",\n name: \"Get Async Chat Completion\",\n description: \"Get Async Chat Completion (GET /v1/async/sonar/{id}). Retrieves the result of an asynchronous chat completion request by its ID. Use this to poll for the result after creating an async job. The response includes the status and, when completed, the full completion.\",\n input: PerplexityaiGetAsyncChatCompletionInput,\n output: PerplexityaiGetAsyncChatCompletionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC3G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,iEAAiEA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAe;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAC/K,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,+DAA+D,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,qCAITC,eAAAA,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perplexityai } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-async-chat-completion.d.ts
|
|
@@ -20,9 +22,7 @@ declare const PerplexityaiGetAsyncChatCompletionOutput: z.ZodObject<{
|
|
|
20
22
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
23
|
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const perplexityaiGetAsyncChatCompletion:
|
|
24
|
-
request_id: string;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
declare const perplexityaiGetAsyncChatCompletion: AppAction<typeof PerplexityaiGetAsyncChatCompletionInput, typeof PerplexityaiGetAsyncChatCompletionOutput, typeof perplexityai.credential>;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { perplexityaiGetAsyncChatCompletion };
|
|
28
28
|
//# sourceMappingURL=get-async-chat-completion.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-chat-completion.d.cts","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-chat-completion.d.cts","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perplexityai } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-async-chat-completion.d.ts
|
|
@@ -20,9 +22,7 @@ declare const PerplexityaiGetAsyncChatCompletionOutput: z.ZodObject<{
|
|
|
20
22
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
23
|
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const perplexityaiGetAsyncChatCompletion:
|
|
24
|
-
request_id: string;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
declare const perplexityaiGetAsyncChatCompletion: AppAction<typeof PerplexityaiGetAsyncChatCompletionInput, typeof PerplexityaiGetAsyncChatCompletionOutput, typeof perplexityai.credential>;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { perplexityaiGetAsyncChatCompletion };
|
|
28
28
|
//# sourceMappingURL=get-async-chat-completion.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-chat-completion.d.mts","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-chat-completion.d.mts","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,YAAA,CAAa,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-chat-completion.mjs","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiGetAsyncChatCompletionInput = z.object({\n request_id: z.string().describe(\"The unique identifier of the async chat completion request to retrieve.\"),\n}).describe(\"Request model for retrieving an async chat completion result.\");\nconst PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nexport const PerplexityaiGetAsyncChatCompletionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the async request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema.nullable(),\n response: z.record(z.string(), z.unknown()).describe(\"The completion response when status is COMPLETED\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n error_message: z.string().describe(\"Error message if job failed\").nullable().optional(),\n}).passthrough().describe(\"Response model for an async chat completion result.\");\n\nexport const perplexityaiGetAsyncChatCompletion = action(\"PERPLEXITYAI_GET_ASYNC_CHAT_COMPLETION\", {\n slug: \"perplexityai-get-async-chat-completion\",\n name: \"Get Async Chat Completion\",\n description: \"Get Async Chat Completion (GET /v1/async/sonar/{id}). Retrieves the result of an asynchronous chat completion request by its ID. Use this to poll for the result after creating an async job. The response includes the status and, when completed, the full completion.\",\n input: PerplexityaiGetAsyncChatCompletionInput,\n output: PerplexityaiGetAsyncChatCompletionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-chat-completion.mjs","names":[],"sources":["../../src/actions/get-async-chat-completion.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\n\nexport const PerplexityaiGetAsyncChatCompletionInput = z.object({\n request_id: z.string().describe(\"The unique identifier of the async chat completion request to retrieve.\"),\n}).describe(\"Request model for retrieving an async chat completion result.\");\nconst PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nexport const PerplexityaiGetAsyncChatCompletionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the async request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiGetAsyncChatCompletion_AsyncProcessingStatusSchema.nullable(),\n response: z.record(z.string(), z.unknown()).describe(\"The completion response when status is COMPLETED\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n error_message: z.string().describe(\"Error message if job failed\").nullable().optional(),\n}).passthrough().describe(\"Response model for an async chat completion result.\");\n\nexport const perplexityaiGetAsyncChatCompletion: AppAction<\n typeof PerplexityaiGetAsyncChatCompletionInput,\n typeof PerplexityaiGetAsyncChatCompletionOutput,\n typeof perplexityai.credential\n> = action(\"PERPLEXITYAI_GET_ASYNC_CHAT_COMPLETION\", {\n slug: \"perplexityai-get-async-chat-completion\",\n name: \"Get Async Chat Completion\",\n description: \"Get Async Chat Completion (GET /v1/async/sonar/{id}). Retrieves the result of an asynchronous chat completion request by its ID. Use this to poll for the result after creating an async job. The response includes the status and, when completed, the full completion.\",\n input: PerplexityaiGetAsyncChatCompletionInput,\n output: PerplexityaiGetAsyncChatCompletionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0C,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC3G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,iEAAiE,EAAE,KAAK;CAAC;CAAW;CAAe;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAa/K,MAAa,qCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAClE,QAAQ,+DAA+D,SAAS;EAChF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-async-chat-completions.cjs","names":["z","action"],"sources":["../../src/actions/list-async-chat-completions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerplexityaiListAsyncChatCompletionsInput = z.object({}).describe(\"Request model for listing async chat completions. No parameters required.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema = z.object({\n id: z.string().describe(\"Unique identifier for the request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema.nullable(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n}).passthrough().describe(\"Summary of an async chat completion request.\");\nexport const PerplexityaiListAsyncChatCompletionsOutput = z.object({\n requests: z.array(PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema).describe(\"List of async request summaries\"),\n next_token: z.string().describe(\"Pagination token for the next page\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing async chat completions.\");\n\nexport const perplexityaiListAsyncChatCompletions = action(\"PERPLEXITYAI_LIST_ASYNC_CHAT_COMPLETIONS\", {\n slug: \"perplexityai-list-async-chat-completions\",\n name: \"List Async Chat Completions\",\n description: \"List Async Chat Completions (GET /v1/async/sonar). Retrieves a list of all asynchronous chat completion requests for the authenticated user. Use this to see the status of all your pending, completed, and failed async jobs.\",\n input: PerplexityaiListAsyncChatCompletionsInput,\n output: PerplexityaiListAsyncChatCompletionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-async-chat-completions.cjs","names":["z","action"],"sources":["../../src/actions/list-async-chat-completions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perplexityai } from \"../app\";\n\nexport const PerplexityaiListAsyncChatCompletionsInput = z.object({}).describe(\"Request model for listing async chat completions. No parameters required.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema = z.enum([\"CREATED\", \"IN_PROGRESS\", \"COMPLETED\", \"FAILED\"]).describe(\"Status of the async processing job.\");\nconst PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema = z.object({\n id: z.string().describe(\"Unique identifier for the request\").nullable(),\n model: z.string().describe(\"Model used for the request\").nullable(),\n status: PerplexityaiListAsyncChatCompletions_AsyncProcessingStatusSchema.nullable(),\n failed_at: z.number().int().describe(\"Unix timestamp when failed\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the request was created\").nullable(),\n started_at: z.number().int().describe(\"Unix timestamp when processing started\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when completed\").nullable().optional(),\n}).passthrough().describe(\"Summary of an async chat completion request.\");\nexport const PerplexityaiListAsyncChatCompletionsOutput = z.object({\n requests: z.array(PerplexityaiListAsyncChatCompletions_AsyncRequestSummarySchema).describe(\"List of async request summaries\"),\n next_token: z.string().describe(\"Pagination token for the next page\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing async chat completions.\");\n\nexport const perplexityaiListAsyncChatCompletions: AppAction<\n typeof PerplexityaiListAsyncChatCompletionsInput,\n typeof PerplexityaiListAsyncChatCompletionsOutput,\n typeof perplexityai.credential\n> = action(\"PERPLEXITYAI_LIST_ASYNC_CHAT_COMPLETIONS\", {\n slug: \"perplexityai-list-async-chat-completions\",\n name: \"List Async Chat Completions\",\n description: \"List Async Chat Completions (GET /v1/async/sonar). Retrieves a list of all asynchronous chat completion requests for the authenticated user. Use this to see the status of all your pending, completed, and failed async jobs.\",\n input: PerplexityaiListAsyncChatCompletionsInput,\n output: PerplexityaiListAsyncChatCompletionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC1J,MAAM,mEAAmEA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAe;CAAa;AAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjL,MAAM,iEAAiEA,IAAAA,EAAE,OAAO;CAC9E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,iEAAiE,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,UAAUA,IAAAA,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,iCAAiC;CAC5H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,C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