@keystrokehq/parallel 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/add-enrichment-to-find-all-run.cjs +14 -14
- package/dist/actions/add-enrichment-to-find-all-run.cjs.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.d.cts +51 -3
- package/dist/actions/add-enrichment-to-find-all-run.d.cts.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.d.mts +51 -3
- package/dist/actions/add-enrichment-to-find-all-run.d.mts.map +1 -1
- package/dist/actions/add-enrichment-to-find-all-run.mjs +14 -14
- package/dist/actions/add-enrichment-to-find-all-run.mjs.map +1 -1
- package/dist/actions/add-runs-to-task-group.cjs +6 -6
- package/dist/actions/add-runs-to-task-group.cjs.map +1 -1
- package/dist/actions/add-runs-to-task-group.d.cts +55 -3
- package/dist/actions/add-runs-to-task-group.d.cts.map +1 -1
- package/dist/actions/add-runs-to-task-group.d.mts +55 -3
- package/dist/actions/add-runs-to-task-group.d.mts.map +1 -1
- package/dist/actions/add-runs-to-task-group.mjs +6 -6
- package/dist/actions/add-runs-to-task-group.mjs.map +1 -1
- package/dist/actions/cancel-find-all-run.cjs +1 -1
- package/dist/actions/cancel-find-all-run.cjs.map +1 -1
- package/dist/actions/cancel-find-all-run.d.cts +7 -3
- package/dist/actions/cancel-find-all-run.d.cts.map +1 -1
- package/dist/actions/cancel-find-all-run.d.mts +7 -3
- package/dist/actions/cancel-find-all-run.d.mts.map +1 -1
- package/dist/actions/cancel-find-all-run.mjs +1 -1
- package/dist/actions/cancel-find-all-run.mjs.map +1 -1
- package/dist/actions/create-chat-completions.cjs +17 -17
- package/dist/actions/create-chat-completions.cjs.map +1 -1
- package/dist/actions/create-chat-completions.d.cts +87 -3
- package/dist/actions/create-chat-completions.d.cts.map +1 -1
- package/dist/actions/create-chat-completions.d.mts +87 -3
- package/dist/actions/create-chat-completions.d.mts.map +1 -1
- package/dist/actions/create-chat-completions.mjs +17 -17
- package/dist/actions/create-chat-completions.mjs.map +1 -1
- package/dist/actions/create-monitor.cjs +7 -7
- package/dist/actions/create-monitor.cjs.map +1 -1
- package/dist/actions/create-monitor.d.cts +56 -3
- package/dist/actions/create-monitor.d.cts.map +1 -1
- package/dist/actions/create-monitor.d.mts +56 -3
- package/dist/actions/create-monitor.d.mts.map +1 -1
- package/dist/actions/create-monitor.mjs +7 -7
- package/dist/actions/create-monitor.mjs.map +1 -1
- package/dist/actions/create-task-group.cjs +8 -8
- package/dist/actions/create-task-group.cjs.map +1 -1
- package/dist/actions/create-task-group.d.cts +18 -3
- package/dist/actions/create-task-group.d.cts.map +1 -1
- package/dist/actions/create-task-group.d.mts +18 -3
- package/dist/actions/create-task-group.d.mts.map +1 -1
- package/dist/actions/create-task-group.mjs +8 -8
- package/dist/actions/create-task-group.mjs.map +1 -1
- package/dist/actions/create-task-run.cjs +9 -9
- package/dist/actions/create-task-run.cjs.map +1 -1
- package/dist/actions/create-task-run.d.cts +62 -3
- package/dist/actions/create-task-run.d.cts.map +1 -1
- package/dist/actions/create-task-run.d.mts +62 -3
- package/dist/actions/create-task-run.d.mts.map +1 -1
- package/dist/actions/create-task-run.mjs +9 -9
- package/dist/actions/create-task-run.mjs.map +1 -1
- package/dist/actions/delete-monitor.cjs +4 -4
- package/dist/actions/delete-monitor.cjs.map +1 -1
- package/dist/actions/delete-monitor.d.cts +31 -3
- package/dist/actions/delete-monitor.d.cts.map +1 -1
- package/dist/actions/delete-monitor.d.mts +31 -3
- package/dist/actions/delete-monitor.d.mts.map +1 -1
- package/dist/actions/delete-monitor.mjs +4 -4
- package/dist/actions/delete-monitor.mjs.map +1 -1
- package/dist/actions/extend-find-all-run.cjs +6 -6
- package/dist/actions/extend-find-all-run.cjs.map +1 -1
- package/dist/actions/extend-find-all-run.d.cts +24 -3
- package/dist/actions/extend-find-all-run.d.cts.map +1 -1
- package/dist/actions/extend-find-all-run.d.mts +24 -3
- package/dist/actions/extend-find-all-run.d.mts.map +1 -1
- package/dist/actions/extend-find-all-run.mjs +6 -6
- package/dist/actions/extend-find-all-run.mjs.map +1 -1
- package/dist/actions/extract.cjs +14 -14
- package/dist/actions/extract.cjs.map +1 -1
- package/dist/actions/extract.d.cts +65 -3
- package/dist/actions/extract.d.cts.map +1 -1
- package/dist/actions/extract.d.mts +65 -3
- package/dist/actions/extract.d.mts.map +1 -1
- package/dist/actions/extract.mjs +14 -14
- package/dist/actions/extract.mjs.map +1 -1
- package/dist/actions/fetch-task-group-runs.cjs +29 -29
- package/dist/actions/fetch-task-group-runs.cjs.map +1 -1
- package/dist/actions/fetch-task-group-runs.d.cts +91 -3
- package/dist/actions/fetch-task-group-runs.d.cts.map +1 -1
- package/dist/actions/fetch-task-group-runs.d.mts +91 -3
- package/dist/actions/fetch-task-group-runs.d.mts.map +1 -1
- package/dist/actions/fetch-task-group-runs.mjs +29 -29
- package/dist/actions/fetch-task-group-runs.mjs.map +1 -1
- package/dist/actions/find-all.cjs +11 -11
- package/dist/actions/find-all.cjs.map +1 -1
- package/dist/actions/find-all.d.cts +72 -3
- package/dist/actions/find-all.d.cts.map +1 -1
- package/dist/actions/find-all.d.mts +72 -3
- package/dist/actions/find-all.d.mts.map +1 -1
- package/dist/actions/find-all.mjs +11 -11
- package/dist/actions/find-all.mjs.map +1 -1
- package/dist/actions/get-find-all-run-result.cjs +17 -17
- package/dist/actions/get-find-all-run-result.cjs.map +1 -1
- package/dist/actions/get-find-all-run-result.d.cts +68 -3
- package/dist/actions/get-find-all-run-result.d.cts.map +1 -1
- package/dist/actions/get-find-all-run-result.d.mts +68 -3
- package/dist/actions/get-find-all-run-result.d.mts.map +1 -1
- package/dist/actions/get-find-all-run-result.mjs +17 -17
- package/dist/actions/get-find-all-run-result.mjs.map +1 -1
- package/dist/actions/get-find-all-run-schema.cjs +6 -6
- package/dist/actions/get-find-all-run-schema.cjs.map +1 -1
- package/dist/actions/get-find-all-run-schema.d.cts +22 -3
- package/dist/actions/get-find-all-run-schema.d.cts.map +1 -1
- package/dist/actions/get-find-all-run-schema.d.mts +22 -3
- package/dist/actions/get-find-all-run-schema.d.mts.map +1 -1
- package/dist/actions/get-find-all-run-schema.mjs +6 -6
- package/dist/actions/get-find-all-run-schema.mjs.map +1 -1
- package/dist/actions/ingest-find-all-run.cjs +6 -6
- package/dist/actions/ingest-find-all-run.cjs.map +1 -1
- package/dist/actions/ingest-find-all-run.d.cts +22 -3
- package/dist/actions/ingest-find-all-run.d.cts.map +1 -1
- package/dist/actions/ingest-find-all-run.d.mts +22 -3
- package/dist/actions/ingest-find-all-run.d.mts.map +1 -1
- package/dist/actions/ingest-find-all-run.mjs +6 -6
- package/dist/actions/ingest-find-all-run.mjs.map +1 -1
- package/dist/actions/list-monitor-events.cjs +11 -11
- package/dist/actions/list-monitor-events.cjs.map +1 -1
- package/dist/actions/list-monitor-events.d.cts +26 -3
- package/dist/actions/list-monitor-events.d.cts.map +1 -1
- package/dist/actions/list-monitor-events.d.mts +26 -3
- package/dist/actions/list-monitor-events.d.mts.map +1 -1
- package/dist/actions/list-monitor-events.mjs +11 -11
- package/dist/actions/list-monitor-events.mjs.map +1 -1
- package/dist/actions/list-monitors.cjs +8 -8
- package/dist/actions/list-monitors.cjs.map +1 -1
- package/dist/actions/list-monitors.d.cts +35 -3
- package/dist/actions/list-monitors.d.cts.map +1 -1
- package/dist/actions/list-monitors.d.mts +35 -3
- package/dist/actions/list-monitors.d.mts.map +1 -1
- package/dist/actions/list-monitors.mjs +8 -8
- package/dist/actions/list-monitors.mjs.map +1 -1
- package/dist/actions/retrieve-event-group.cjs +10 -10
- package/dist/actions/retrieve-event-group.cjs.map +1 -1
- package/dist/actions/retrieve-event-group.d.cts +26 -3
- package/dist/actions/retrieve-event-group.d.cts.map +1 -1
- package/dist/actions/retrieve-event-group.d.mts +26 -3
- package/dist/actions/retrieve-event-group.d.mts.map +1 -1
- package/dist/actions/retrieve-event-group.mjs +10 -10
- package/dist/actions/retrieve-event-group.mjs.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.cjs +7 -7
- package/dist/actions/retrieve-find-all-run-status.cjs.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.d.cts +34 -3
- package/dist/actions/retrieve-find-all-run-status.d.cts.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.d.mts +34 -3
- package/dist/actions/retrieve-find-all-run-status.d.mts.map +1 -1
- package/dist/actions/retrieve-find-all-run-status.mjs +7 -7
- package/dist/actions/retrieve-find-all-run-status.mjs.map +1 -1
- package/dist/actions/retrieve-monitor.cjs +6 -6
- package/dist/actions/retrieve-monitor.cjs.map +1 -1
- package/dist/actions/retrieve-monitor.d.cts +31 -3
- package/dist/actions/retrieve-monitor.d.cts.map +1 -1
- package/dist/actions/retrieve-monitor.d.mts +31 -3
- package/dist/actions/retrieve-monitor.d.mts.map +1 -1
- package/dist/actions/retrieve-monitor.mjs +6 -6
- package/dist/actions/retrieve-monitor.mjs.map +1 -1
- package/dist/actions/retrieve-task-group-run.cjs +9 -9
- package/dist/actions/retrieve-task-group-run.cjs.map +1 -1
- package/dist/actions/retrieve-task-group-run.d.cts +33 -3
- package/dist/actions/retrieve-task-group-run.d.cts.map +1 -1
- package/dist/actions/retrieve-task-group-run.d.mts +33 -3
- package/dist/actions/retrieve-task-group-run.d.mts.map +1 -1
- package/dist/actions/retrieve-task-group-run.mjs +9 -9
- package/dist/actions/retrieve-task-group-run.mjs.map +1 -1
- package/dist/actions/retrieve-task-group.cjs +6 -6
- package/dist/actions/retrieve-task-group.cjs.map +1 -1
- package/dist/actions/retrieve-task-group.d.cts +18 -3
- package/dist/actions/retrieve-task-group.d.cts.map +1 -1
- package/dist/actions/retrieve-task-group.d.mts +18 -3
- package/dist/actions/retrieve-task-group.d.mts.map +1 -1
- package/dist/actions/retrieve-task-group.mjs +6 -6
- package/dist/actions/retrieve-task-group.mjs.map +1 -1
- package/dist/actions/retrieve-task-run-input.cjs +5 -5
- package/dist/actions/retrieve-task-run-input.cjs.map +1 -1
- package/dist/actions/retrieve-task-run-input.d.cts +21 -3
- package/dist/actions/retrieve-task-run-input.d.cts.map +1 -1
- package/dist/actions/retrieve-task-run-input.d.mts +21 -3
- package/dist/actions/retrieve-task-run-input.d.mts.map +1 -1
- package/dist/actions/retrieve-task-run-input.mjs +5 -5
- package/dist/actions/retrieve-task-run-input.mjs.map +1 -1
- package/dist/actions/retrieve-task-run-result.cjs +9 -9
- package/dist/actions/retrieve-task-run-result.cjs.map +1 -1
- package/dist/actions/retrieve-task-run-result.d.cts +29 -3
- package/dist/actions/retrieve-task-run-result.d.cts.map +1 -1
- package/dist/actions/retrieve-task-run-result.d.mts +29 -3
- package/dist/actions/retrieve-task-run-result.d.mts.map +1 -1
- package/dist/actions/retrieve-task-run-result.mjs +9 -9
- package/dist/actions/retrieve-task-run-result.mjs.map +1 -1
- package/dist/actions/retrieve-task-run.cjs +11 -11
- package/dist/actions/retrieve-task-run.cjs.map +1 -1
- package/dist/actions/retrieve-task-run.d.cts +35 -3
- package/dist/actions/retrieve-task-run.d.cts.map +1 -1
- package/dist/actions/retrieve-task-run.d.mts +35 -3
- package/dist/actions/retrieve-task-run.d.mts.map +1 -1
- package/dist/actions/retrieve-task-run.mjs +11 -11
- package/dist/actions/retrieve-task-run.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 +15 -3
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +15 -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/actions/simulate-event.cjs +1 -1
- package/dist/actions/simulate-event.cjs.map +1 -1
- package/dist/actions/simulate-event.d.cts +15 -3
- package/dist/actions/simulate-event.d.cts.map +1 -1
- package/dist/actions/simulate-event.d.mts +15 -3
- package/dist/actions/simulate-event.d.mts.map +1 -1
- package/dist/actions/simulate-event.mjs +1 -1
- package/dist/actions/simulate-event.mjs.map +1 -1
- package/dist/actions/stream-find-all-events.cjs +42 -42
- package/dist/actions/stream-find-all-events.cjs.map +1 -1
- package/dist/actions/stream-find-all-events.d.cts +104 -3
- package/dist/actions/stream-find-all-events.d.cts.map +1 -1
- package/dist/actions/stream-find-all-events.d.mts +104 -3
- package/dist/actions/stream-find-all-events.d.mts.map +1 -1
- package/dist/actions/stream-find-all-events.mjs +42 -42
- package/dist/actions/stream-find-all-events.mjs.map +1 -1
- package/dist/actions/stream-task-group-events.cjs +25 -25
- package/dist/actions/stream-task-group-events.cjs.map +1 -1
- package/dist/actions/stream-task-group-events.d.cts +44 -3
- package/dist/actions/stream-task-group-events.d.cts.map +1 -1
- package/dist/actions/stream-task-group-events.d.mts +44 -3
- package/dist/actions/stream-task-group-events.d.mts.map +1 -1
- package/dist/actions/stream-task-group-events.mjs +25 -25
- package/dist/actions/stream-task-group-events.mjs.map +1 -1
- package/dist/actions/stream-task-run-events.cjs +21 -21
- package/dist/actions/stream-task-run-events.cjs.map +1 -1
- package/dist/actions/stream-task-run-events.d.cts +45 -3
- package/dist/actions/stream-task-run-events.d.cts.map +1 -1
- package/dist/actions/stream-task-run-events.d.mts +45 -3
- package/dist/actions/stream-task-run-events.d.mts.map +1 -1
- package/dist/actions/stream-task-run-events.mjs +21 -21
- package/dist/actions/stream-task-run-events.mjs.map +1 -1
- package/dist/actions/suggest-task.cjs +2 -2
- package/dist/actions/suggest-task.cjs.map +1 -1
- package/dist/actions/suggest-task.d.cts +12 -3
- package/dist/actions/suggest-task.d.cts.map +1 -1
- package/dist/actions/suggest-task.d.mts +12 -3
- package/dist/actions/suggest-task.d.mts.map +1 -1
- package/dist/actions/suggest-task.mjs +2 -2
- package/dist/actions/suggest-task.mjs.map +1 -1
- package/dist/actions/update-monitor.cjs +7 -7
- package/dist/actions/update-monitor.cjs.map +1 -1
- package/dist/actions/update-monitor.d.cts +50 -3
- package/dist/actions/update-monitor.d.cts.map +1 -1
- package/dist/actions/update-monitor.d.mts +50 -3
- package/dist/actions/update-monitor.d.mts.map +1 -1
- package/dist/actions/update-monitor.mjs +7 -7
- package/dist/actions/update-monitor.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-runs-to-task-group.mjs","names":[],"sources":["../../src/actions/add-runs-to-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelAddRunsToTaskGroupInput
|
|
1
|
+
{"version":3,"file":"add-runs-to-task-group.mjs","names":[],"sources":["../../src/actions/add-runs-to-task-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelAddRunsToTaskGroupInput = z.object({\n inputs: z.array(z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Input data for the processor. Structure depends on the processor type.\"),\n webhook: z.record(z.string(), z.unknown()).describe(\"Optional webhook configuration for this task run.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata for this task run.\").optional(),\n processor: z.string().describe(\"Processor to use for this task run (e.g., 'web_search', 'data_analysis').\"),\n task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the input.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the output.\"),\n}).describe(\"Task specification for defining input and output schemas.\").optional(),\n mcp_servers: z.record(z.string(), z.unknown()).describe(\"Optional MCP server configuration for this task run.\").optional(),\n enable_events: z.record(z.string(), z.unknown()).describe(\"Optional event configuration for this task run.\").optional(),\n source_policy: z.record(z.string(), z.unknown()).describe(\"Optional source policy configuration for this task run.\").optional(),\n previous_interaction_id: z.record(z.string(), z.unknown()).describe(\"Optional previous interaction ID for this task run.\").optional(),\n}).passthrough().describe(\"Individual task run input within a task group.\")).describe(\"List of task runs to execute. Up to 1,000 runs can be specified per request.\"),\n taskgroup_id: z.string().describe(\"Unique identifier of the task group to add runs to.\"),\n default_task_spec: z.object({\n input_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the input.\").optional(),\n output_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema describing the structure of the output.\"),\n}).describe(\"Task specification for defining input and output schemas.\").optional(),\n}).describe(\"Request model for adding runs to a task group.\");\nconst ParallelAddRunsToTaskGroup_TaskGroupStatusSchema = z.object({\n is_active: z.boolean().describe(\"True if at least one run in the group is currently active (queued, running, cancelling).\").nullable(),\n modified_at: z.string().describe(\"Timestamp of the last status update to the group, as an RFC 3339 string.\").nullable().optional(),\n num_task_runs: z.number().int().describe(\"Number of task runs in the group.\").nullable(),\n status_message: z.string().describe(\"Human-readable status message for the group.\").nullable().optional(),\n task_run_status_counts: z.record(z.string(), z.unknown()).describe(\"Number of task runs with each status.\").nullable().optional(),\n}).passthrough().describe(\"Status information for a task group.\");\nexport const ParallelAddRunsToTaskGroupOutput = z.object({\n status: ParallelAddRunsToTaskGroup_TaskGroupStatusSchema.nullable(),\n run_ids: z.array(z.string()).describe(\"IDs of the newly created runs.\"),\n run_cursor: z.string().describe(\"Cursor for these runs in the run stream at taskgroup/runs?last_event_id=<run_cursor>. Empty for the first runs in the group.\").nullable().optional(),\n event_cursor: z.string().describe(\"Cursor for these runs in the event stream at taskgroup/events?last_event_id=<event_cursor>. Empty for the first runs in the group.\").nullable().optional(),\n}).passthrough().describe(\"Response model for adding runs to a task group.\");\n\nexport const parallelAddRunsToTaskGroup = action(\"PARALLEL_ADD_RUNS_TO_TASK_GROUP\", {\n slug: \"parallel-add-runs-to-task-group\",\n name: \"Add Runs to Task Group\",\n description: \"Tool to initiate multiple task runs within a TaskGroup. Use when you need to execute multiple tasks in parallel within an existing task group.\",\n input: ParallelAddRunsTo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AAC,SAAS;EACpL,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/cancel-find-all-run.ts
|
|
4
4
|
const ParallelCancelFindAllRunInput = zod.z.object({ findall_id: zod.z.string().describe("ID of the FindAll run to cancel.") });
|
|
5
|
-
const ParallelCancelFindAllRunOutput = zod.z.
|
|
5
|
+
const ParallelCancelFindAllRunOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response returned on successful cancellation.\nThe API returns an empty JSON object {} on success (HTTP 200).");
|
|
6
6
|
const parallelCancelFindAllRun = require_action.action("PARALLEL_CANCEL_FIND_ALL_RUN", {
|
|
7
7
|
slug: "parallel-cancel-find-all-run",
|
|
8
8
|
name: "Cancel FindAll Run",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-find-all-run.cjs","names":["z","action"],"sources":["../../src/actions/cancel-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCancelFindAllRunInput
|
|
1
|
+
{"version":3,"file":"cancel-find-all-run.cjs","names":["z","action"],"sources":["../../src/actions/cancel-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCancelFindAllRunInput = z.object({\n findall_id: z.string().describe(\"ID of the FindAll run to cancel.\"),\n});\nexport const ParallelCancelFindAllRunOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned on successful cancellation.\\nThe API returns an empty JSON object {} on success (HTTP 200).\");\n\nexport const parallelCancelFindAllRun = action(\"PARALLEL_CANCEL_FIND_ALL_RUN\", {\n slug: \"parallel-cancel-find-all-run\",\n name: \"Cancel FindAll Run\",\n description: \"Tool to cancel an active FindAll run by findall_id. Use when you need to stop a running FindAll operation before it completes. Cannot cancel runs that have already terminated.\",\n input: ParallelCancelFindAllRunInput,\n output: ParallelCancelFindAllRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EACpE,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qHAAqH;AAE9M,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/cancel-find-all-run.d.ts
|
|
4
|
-
declare const ParallelCancelFindAllRunInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParallelCancelFindAllRunInput: z.ZodObject<{
|
|
5
|
+
findall_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ParallelCancelFindAllRunOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
+
declare const parallelCancelFindAllRun: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
9
|
+
findall_id: string;
|
|
10
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
11
|
//#endregion
|
|
8
12
|
export { parallelCancelFindAllRun };
|
|
9
13
|
//# sourceMappingURL=cancel-find-all-run.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-find-all-run.d.cts","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"cancel-find-all-run.d.cts","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/cancel-find-all-run.d.ts
|
|
4
|
-
declare const ParallelCancelFindAllRunInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParallelCancelFindAllRunInput: z.ZodObject<{
|
|
5
|
+
findall_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ParallelCancelFindAllRunOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
+
declare const parallelCancelFindAllRun: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
9
|
+
findall_id: string;
|
|
10
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
11
|
//#endregion
|
|
8
12
|
export { parallelCancelFindAllRun };
|
|
9
13
|
//# sourceMappingURL=cancel-find-all-run.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-find-all-run.d.mts","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"cancel-find-all-run.d.mts","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -5,7 +5,7 @@ const parallelCancelFindAllRun = action("PARALLEL_CANCEL_FIND_ALL_RUN", {
|
|
|
5
5
|
name: "Cancel FindAll Run",
|
|
6
6
|
description: "Tool to cancel an active FindAll run by findall_id. Use when you need to stop a running FindAll operation before it completes. Cannot cancel runs that have already terminated.",
|
|
7
7
|
input: z.object({ findall_id: z.string().describe("ID of the FindAll run to cancel.") }),
|
|
8
|
-
output: z.
|
|
8
|
+
output: z.record(z.string(), z.unknown()).describe("Empty response returned on successful cancellation.\nThe API returns an empty JSON object {} on success (HTTP 200).")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { parallelCancelFindAllRun };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-find-all-run.mjs","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCancelFindAllRunInput
|
|
1
|
+
{"version":3,"file":"cancel-find-all-run.mjs","names":[],"sources":["../../src/actions/cancel-find-all-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCancelFindAllRunInput = z.object({\n findall_id: z.string().describe(\"ID of the FindAll run to cancel.\"),\n});\nexport const ParallelCancelFindAllRunOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned on successful cancellation.\\nThe API returns an empty JSON object {} on success (HTTP 200).\");\n\nexport const parallelCancelFindAllRun = action(\"PARALLEL_CANCEL_FIND_ALL_RUN\", {\n slug: \"parallel-cancel-find-all-run\",\n name: \"Cancel FindAll Run\",\n description: \"Tool to cancel an active FindAll run by findall_id. Use when you need to stop a running FindAll operation before it completes. Cannot cancel runs that have already terminated.\",\n input: ParallelCancelFindAllRunInput,\n output: ParallelCancelFindAllRunOutput,\n});\n"],"mappings":";;AASA,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT2C,EAAE,OAAO,EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EACpE,CAOS;CACP,QAP4C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qHAO/E;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ const ParallelCreateChatCompletionsInput = zod.z.object({
|
|
|
15
15
|
"tool"
|
|
16
16
|
]).describe("The role of the message sender (system, user, assistant, or tool)."),
|
|
17
17
|
content: zod.z.string().describe("The content of the message.")
|
|
18
|
-
}).describe("A single message in a chat conversation.")).describe("The messages to use for chat completions. Must contain at least one message."),
|
|
18
|
+
}).passthrough().describe("A single message in a chat conversation.")).describe("The messages to use for chat completions. Must contain at least one message."),
|
|
19
19
|
max_tokens: zod.z.number().int().describe("The maximum number of tokens to generate. Note: This parameter is currently unsupported by the API.").optional(),
|
|
20
20
|
temperature: zod.z.number().describe("The temperature to use for chat completions. Note: This parameter is currently unsupported by the API.").optional(),
|
|
21
21
|
response_format: zod.z.object({
|
|
@@ -30,22 +30,22 @@ const ParallelCreateChatCompletionsInput = zod.z.object({
|
|
|
30
30
|
frequency_penalty: zod.z.number().describe("The frequency penalty to use for chat completions. Note: This parameter is currently unsupported by the API.").optional()
|
|
31
31
|
}).describe("Request model for chat completions endpoint.");
|
|
32
32
|
const ParallelCreateChatCompletions_FieldBasisSchema = zod.z.object({
|
|
33
|
-
field: zod.z.string().describe("The field name being supported."),
|
|
33
|
+
field: zod.z.string().describe("The field name being supported.").nullable(),
|
|
34
34
|
citations: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of citations supporting this field.").nullable().optional(),
|
|
35
|
-
reasoning: zod.z.string().describe("Reasoning explaining how the field value was derived."),
|
|
35
|
+
reasoning: zod.z.string().describe("Reasoning explaining how the field value was derived.").nullable(),
|
|
36
36
|
confidence: zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional()
|
|
37
|
-
}).describe("Citations and reasoning supporting one field of a task output.");
|
|
37
|
+
}).passthrough().describe("Citations and reasoning supporting one field of a task output.");
|
|
38
38
|
const ParallelCreateChatCompletions_CompletionUsageSchema = zod.z.object({
|
|
39
|
-
total_tokens: zod.z.number().int().describe("Total tokens used (prompt + completion)."),
|
|
40
|
-
prompt_tokens: zod.z.number().int().describe("Number of tokens in the prompt messages."),
|
|
41
|
-
completion_tokens: zod.z.number().int().describe("Number of tokens in the generated completion."),
|
|
39
|
+
total_tokens: zod.z.number().int().describe("Total tokens used (prompt + completion).").nullable(),
|
|
40
|
+
prompt_tokens: zod.z.number().int().describe("Number of tokens in the prompt messages.").nullable(),
|
|
41
|
+
completion_tokens: zod.z.number().int().describe("Number of tokens in the generated completion.").nullable(),
|
|
42
42
|
prompt_tokens_details: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Detailed breakdown of prompt tokens.").nullable().optional(),
|
|
43
43
|
completion_tokens_details: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Detailed breakdown of completion tokens.").nullable().optional()
|
|
44
|
-
}).describe("Token usage information for the completion.");
|
|
44
|
+
}).passthrough().describe("Token usage information for the completion.");
|
|
45
45
|
const ParallelCreateChatCompletions_ChoiceDeltaSchema = zod.z.object({
|
|
46
46
|
role: zod.z.string().describe("Role of the message sender.").nullable().optional(),
|
|
47
47
|
content: zod.z.string().describe("Content of the message delta.").nullable().optional()
|
|
48
|
-
}).describe("Delta content in a streaming chat completion choice.");
|
|
48
|
+
}).passthrough().describe("Delta content in a streaming chat completion choice.");
|
|
49
49
|
const ParallelCreateChatCompletions_MessageContentSchema = zod.z.object({
|
|
50
50
|
role: zod.z.string().describe("Role of the message sender.").nullable().optional(),
|
|
51
51
|
audio: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Audio content if applicable.").nullable().optional(),
|
|
@@ -54,25 +54,25 @@ const ParallelCreateChatCompletions_MessageContentSchema = zod.z.object({
|
|
|
54
54
|
tool_calls: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Tool calls if applicable.").nullable().optional(),
|
|
55
55
|
annotations: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Annotations for the message.").nullable().optional(),
|
|
56
56
|
function_call: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Function call details if applicable.").nullable().optional()
|
|
57
|
-
}).describe("Content of a message in a chat completion choice.");
|
|
57
|
+
}).passthrough().describe("Content of a message in a chat completion choice.");
|
|
58
58
|
const ParallelCreateChatCompletions_ChoiceSchema = zod.z.object({
|
|
59
59
|
delta: ParallelCreateChatCompletions_ChoiceDeltaSchema.nullable().optional(),
|
|
60
|
-
index: zod.z.number().int().describe("Index of this choice in the choices array."),
|
|
60
|
+
index: zod.z.number().int().describe("Index of this choice in the choices array.").nullable(),
|
|
61
61
|
message: ParallelCreateChatCompletions_MessageContentSchema.nullable().optional(),
|
|
62
62
|
logprobs: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Log probabilities for the generated tokens, if requested.").nullable().optional(),
|
|
63
63
|
finish_reason: zod.z.string().describe("The reason the completion finished (e.g., 'stop', 'length', 'content_filter').").nullable().optional()
|
|
64
|
-
}).describe("A single choice in the chat completion response.");
|
|
64
|
+
}).passthrough().describe("A single choice in the chat completion response.");
|
|
65
65
|
const ParallelCreateChatCompletionsOutput = zod.z.object({
|
|
66
|
-
id: zod.z.string().describe("The unique identifier for this completion."),
|
|
66
|
+
id: zod.z.string().describe("The unique identifier for this completion.").nullable(),
|
|
67
67
|
basis: zod.z.array(ParallelCreateChatCompletions_FieldBasisSchema).describe("Basis for the chat completion, including citations and reasoning supporting the output. Provided when using Task API processors.").nullable().optional(),
|
|
68
|
-
model: zod.z.string().describe("The model used for this completion."),
|
|
68
|
+
model: zod.z.string().describe("The model used for this completion.").nullable(),
|
|
69
69
|
usage: ParallelCreateChatCompletions_CompletionUsageSchema.nullable().optional(),
|
|
70
|
-
object: zod.z.string().describe("The object type, always 'chat.completion' or similar."),
|
|
70
|
+
object: zod.z.string().describe("The object type, always 'chat.completion' or similar.").nullable(),
|
|
71
71
|
choices: zod.z.array(ParallelCreateChatCompletions_ChoiceSchema).describe("List of completion choices. Typically contains one choice."),
|
|
72
|
-
created: zod.z.number().int().describe("Unix timestamp (in seconds) of when the completion was created."),
|
|
72
|
+
created: zod.z.number().int().describe("Unix timestamp (in seconds) of when the completion was created.").nullable(),
|
|
73
73
|
service_tier: zod.z.string().describe("The service tier used for processing the request.").nullable().optional(),
|
|
74
74
|
system_fingerprint: zod.z.string().describe("Unique identifier for the backend configuration that produced this response.").nullable().optional()
|
|
75
|
-
}).describe("Response model for chat completions endpoint.");
|
|
75
|
+
}).passthrough().describe("Response model for chat completions endpoint.");
|
|
76
76
|
const parallelCreateChatCompletions = require_action.action("PARALLEL_CREATE_CHAT_COMPLETIONS", {
|
|
77
77
|
slug: "parallel-create-chat-completions",
|
|
78
78
|
name: "Create Chat Completions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-chat-completions.cjs","names":["z","action"],"sources":["../../src/actions/create-chat-completions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateChatCompletionsInput: z.ZodTypeAny = z.object({\n n: z.number().int().describe(\"The number of chat completions to generate. Note: This parameter is currently unsupported by the API.\").optional(),\n model: z.string().describe(\"The model to use for chat completions. Available models: 'speed' (low latency), 'lite', 'base', 'core' (research-grade outputs).\"),\n top_p: z.number().describe(\"The top p to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n stream: z.boolean().describe(\"Whether to stream the chat completions. When true, returns a stream of partial responses.\").optional(),\n messages: z.array(z.object({\n name: z.string().describe(\"Optional name of the message sender.\").optional(),\n role: z.enum([\"system\", \"user\", \"assistant\", \"tool\"]).describe(\"The role of the message sender (system, user, assistant, or tool).\"),\n content: z.string().describe(\"The content of the message.\"),\n}).describe(\"A single message in a chat conversation.\")).describe(\"The messages to use for chat completions. Must contain at least one message.\"),\n max_tokens: z.number().int().describe(\"The maximum number of tokens to generate. Note: This parameter is currently unsupported by the API.\").optional(),\n temperature: z.number().describe(\"The temperature to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n response_format: z.object({\n type: z.enum([\"text\", \"json_object\", \"json_schema\"]).describe(\"The type of response format (text, json_object, or json_schema).\"),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition when type is json_schema.\").optional(),\n}).describe(\"Response format configuration for chat completions.\").optional(),\n presence_penalty: z.number().describe(\"The presence penalty to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n frequency_penalty: z.number().describe(\"The frequency penalty to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n}).describe(\"Request model for chat completions endpoint.\");\nconst ParallelCreateChatCompletions_FieldBasisSchema: z.ZodTypeAny = z.object({\n field: z.string().describe(\"The field name being supported.\"),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"List of citations supporting this field.\").nullable().optional(),\n reasoning: z.string().describe(\"Reasoning explaining how the field value was derived.\"),\n confidence: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n}).describe(\"Citations and reasoning supporting one field of a task output.\");\nconst ParallelCreateChatCompletions_CompletionUsageSchema: z.ZodTypeAny = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used (prompt + completion).\"),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt messages.\"),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion.\"),\n prompt_tokens_details: z.record(z.string(), z.unknown()).describe(\"Detailed breakdown of prompt tokens.\").nullable().optional(),\n completion_tokens_details: z.record(z.string(), z.unknown()).describe(\"Detailed breakdown of completion tokens.\").nullable().optional(),\n}).describe(\"Token usage information for the completion.\");\nconst ParallelCreateChatCompletions_ChoiceDeltaSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"Role of the message sender.\").nullable().optional(),\n content: z.string().describe(\"Content of the message delta.\").nullable().optional(),\n}).describe(\"Delta content in a streaming chat completion choice.\");\nconst ParallelCreateChatCompletions_MessageContentSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"Role of the message sender.\").nullable().optional(),\n audio: z.record(z.string(), z.unknown()).describe(\"Audio content if applicable.\").nullable().optional(),\n content: z.string().describe(\"Content of the message.\").nullable().optional(),\n refusal: z.string().describe(\"Refusal message if applicable.\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"Tool calls if applicable.\").nullable().optional(),\n annotations: z.array(z.record(z.string(), z.unknown())).describe(\"Annotations for the message.\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Function call details if applicable.\").nullable().optional(),\n}).describe(\"Content of a message in a chat completion choice.\");\nconst ParallelCreateChatCompletions_ChoiceSchema: z.ZodTypeAny = z.object({\n delta: ParallelCreateChatCompletions_ChoiceDeltaSchema.nullable().optional(),\n index: z.number().int().describe(\"Index of this choice in the choices array.\"),\n message: ParallelCreateChatCompletions_MessageContentSchema.nullable().optional(),\n logprobs: z.record(z.string(), z.unknown()).describe(\"Log probabilities for the generated tokens, if requested.\").nullable().optional(),\n finish_reason: z.string().describe(\"The reason the completion finished (e.g., 'stop', 'length', 'content_filter').\").nullable().optional(),\n}).describe(\"A single choice in the chat completion response.\");\nexport const ParallelCreateChatCompletionsOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for this completion.\"),\n basis: z.array(ParallelCreateChatCompletions_FieldBasisSchema).describe(\"Basis for the chat completion, including citations and reasoning supporting the output. Provided when using Task API processors.\").nullable().optional(),\n model: z.string().describe(\"The model used for this completion.\"),\n usage: ParallelCreateChatCompletions_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, always 'chat.completion' or similar.\"),\n choices: z.array(ParallelCreateChatCompletions_ChoiceSchema).describe(\"List of completion choices. Typically contains one choice.\"),\n created: z.number().int().describe(\"Unix timestamp (in seconds) of when the completion was created.\"),\n service_tier: z.string().describe(\"The service tier used for processing the request.\").nullable().optional(),\n system_fingerprint: z.string().describe(\"Unique identifier for the backend configuration that produced this response.\").nullable().optional(),\n}).describe(\"Response model for chat completions endpoint.\");\n\nexport const parallelCreateChatCompletions = action(\"PARALLEL_CREATE_CHAT_COMPLETIONS\", {\n slug: \"parallel-create-chat-completions\",\n name: \"Create Chat Completions\",\n description: \"Tool to get realtime chat completions from Parallel AI. Use when you need conversational AI responses or structured outputs via chat interface. Can be combined with Task API processors for research-grade structured outputs with citations and reasoning.\",\n input: ParallelCreateChatCompletionsInput,\n output: ParallelCreateChatCompletionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC/I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;CAC7J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACxI,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACnI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAU;GAAQ;GAAa;EAAM,CAAC,CAAC,CAAC,SAAS,oEAAoE;EACnI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC5D,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,8EAA8E;CAC9I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACtJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAA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S;CAChO,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAChE,OAAO,oDAAoD,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACnF,SAASA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,4DAA4D;CAClI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-chat-completions.cjs","names":["z","action"],"sources":["../../src/actions/create-chat-completions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParallelCreateChatCompletionsInput = z.object({\n n: z.number().int().describe(\"The number of chat completions to generate. Note: This parameter is currently unsupported by the API.\").optional(),\n model: z.string().describe(\"The model to use for chat completions. Available models: 'speed' (low latency), 'lite', 'base', 'core' (research-grade outputs).\"),\n top_p: z.number().describe(\"The top p to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n stream: z.boolean().describe(\"Whether to stream the chat completions. When true, returns a stream of partial responses.\").optional(),\n messages: z.array(z.object({\n name: z.string().describe(\"Optional name of the message sender.\").optional(),\n role: z.enum([\"system\", \"user\", \"assistant\", \"tool\"]).describe(\"The role of the message sender (system, user, assistant, or tool).\"),\n content: z.string().describe(\"The content of the message.\"),\n}).passthrough().describe(\"A single message in a chat conversation.\")).describe(\"The messages to use for chat completions. Must contain at least one message.\"),\n max_tokens: z.number().int().describe(\"The maximum number of tokens to generate. Note: This parameter is currently unsupported by the API.\").optional(),\n temperature: z.number().describe(\"The temperature to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n response_format: z.object({\n type: z.enum([\"text\", \"json_object\", \"json_schema\"]).describe(\"The type of response format (text, json_object, or json_schema).\"),\n json_schema: z.record(z.string(), z.unknown()).describe(\"JSON schema definition when type is json_schema.\").optional(),\n}).describe(\"Response format configuration for chat completions.\").optional(),\n presence_penalty: z.number().describe(\"The presence penalty to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n frequency_penalty: z.number().describe(\"The frequency penalty to use for chat completions. Note: This parameter is currently unsupported by the API.\").optional(),\n}).describe(\"Request model for chat completions endpoint.\");\nconst ParallelCreateChatCompletions_FieldBasisSchema = z.object({\n field: z.string().describe(\"The field name being supported.\").nullable(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"List of citations supporting this field.\").nullable().optional(),\n reasoning: z.string().describe(\"Reasoning explaining how the field value was derived.\").nullable(),\n confidence: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Citations and reasoning supporting one field of a task output.\");\nconst ParallelCreateChatCompletions_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used (prompt + completion).\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt messages.\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion.\").nullable(),\n prompt_tokens_details: z.record(z.string(), z.unknown()).describe(\"Detailed breakdown of prompt tokens.\").nullable().optional(),\n completion_tokens_details: z.record(z.string(), z.unknown()).describe(\"Detailed breakdown of completion tokens.\").nullable().optional(),\n}).passthrough().describe(\"Token usage information for the completion.\");\nconst ParallelCreateChatCompletions_ChoiceDeltaSchema = z.object({\n role: z.string().describe(\"Role of the message sender.\").nullable().optional(),\n content: z.string().describe(\"Content of the message delta.\").nullable().optional(),\n}).passthrough().describe(\"Delta content in a streaming chat completion choice.\");\nconst ParallelCreateChatCompletions_MessageContentSchema = z.object({\n role: z.string().describe(\"Role of the message sender.\").nullable().optional(),\n audio: z.record(z.string(), z.unknown()).describe(\"Audio content if applicable.\").nullable().optional(),\n content: z.string().describe(\"Content of the message.\").nullable().optional(),\n refusal: z.string().describe(\"Refusal message if applicable.\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"Tool calls if applicable.\").nullable().optional(),\n annotations: z.array(z.record(z.string(), z.unknown())).describe(\"Annotations for the message.\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Function call details if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Content of a message in a chat completion choice.\");\nconst ParallelCreateChatCompletions_ChoiceSchema = z.object({\n delta: ParallelCreateChatCompletions_ChoiceDeltaSchema.nullable().optional(),\n index: z.number().int().describe(\"Index of this choice in the choices array.\").nullable(),\n message: ParallelCreateChatCompletions_MessageContentSchema.nullable().optional(),\n logprobs: z.record(z.string(), z.unknown()).describe(\"Log probabilities for the generated tokens, if requested.\").nullable().optional(),\n finish_reason: z.string().describe(\"The reason the completion finished (e.g., 'stop', 'length', 'content_filter').\").nullable().optional(),\n}).passthrough().describe(\"A single choice in the chat completion response.\");\nexport const ParallelCreateChatCompletionsOutput = z.object({\n id: z.string().describe(\"The unique identifier for this completion.\").nullable(),\n basis: z.array(ParallelCreateChatCompletions_FieldBasisSchema).describe(\"Basis for the chat completion, including citations and reasoning supporting the output. Provided when using Task API processors.\").nullable().optional(),\n model: z.string().describe(\"The model used for this completion.\").nullable(),\n usage: ParallelCreateChatCompletions_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, always 'chat.completion' or similar.\").nullable(),\n choices: z.array(ParallelCreateChatCompletions_ChoiceSchema).describe(\"List of completion choices. Typically contains one choice.\"),\n created: z.number().int().describe(\"Unix timestamp (in seconds) of when the completion was created.\").nullable(),\n service_tier: z.string().describe(\"The service tier used for processing the request.\").nullable().optional(),\n system_fingerprint: z.string().describe(\"Unique identifier for the backend configuration that produced this response.\").nullable().optional(),\n}).passthrough().describe(\"Response model for chat completions endpoint.\");\n\nexport const parallelCreateChatCompletions = action(\"PARALLEL_CREATE_CHAT_COMPLETIONS\", {\n slug: \"parallel-create-chat-completions\",\n name: \"Create Chat Completions\",\n description: \"Tool to get realtime chat completions from Parallel AI. Use when you need conversational AI responses or structured outputs via chat interface. Can be combined with Task API processors for research-grade structured outputs with citations and reasoning.\",\n input: ParallelCreateChatCompletionsInput,\n output: ParallelCreateChatCompletionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC/I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;CAC7J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACxI,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACnI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAU;GAAQ;GAAa;EAAM,CAAC,CAAC,CAAC,SAAS,oEAAoE;EACnI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,8EAA8E;CAC5J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,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C,SAAS;AAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChO,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,OAAO,oDAAoD,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,4DAA4D;CAClI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,93 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-chat-completions.d.ts
|
|
4
|
-
declare const ParallelCreateChatCompletionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParallelCreateChatCompletionsInput: z.ZodObject<{
|
|
5
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
model: z.ZodString;
|
|
7
|
+
top_p: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
stream: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
role: z.ZodEnum<{
|
|
12
|
+
system: "system";
|
|
13
|
+
user: "user";
|
|
14
|
+
assistant: "assistant";
|
|
15
|
+
tool: "tool";
|
|
16
|
+
}>;
|
|
17
|
+
content: z.ZodString;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
response_format: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
type: z.ZodEnum<{
|
|
23
|
+
text: "text";
|
|
24
|
+
json_object: "json_object";
|
|
25
|
+
json_schema: "json_schema";
|
|
26
|
+
}>;
|
|
27
|
+
json_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
presence_penalty: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
frequency_penalty: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const ParallelCreateChatCompletionsOutput: z.ZodObject<{
|
|
33
|
+
id: z.ZodNullable<z.ZodString>;
|
|
34
|
+
basis: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
35
|
+
field: z.ZodNullable<z.ZodString>;
|
|
36
|
+
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
37
|
+
reasoning: z.ZodNullable<z.ZodString>;
|
|
38
|
+
confidence: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
39
|
+
}, z.core.$loose>>>>;
|
|
40
|
+
model: z.ZodNullable<z.ZodString>;
|
|
41
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
42
|
+
total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
prompt_tokens: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
completion_tokens: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
prompt_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
46
|
+
completion_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
|
+
object: z.ZodNullable<z.ZodString>;
|
|
49
|
+
choices: z.ZodArray<z.ZodObject<{
|
|
50
|
+
delta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
51
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
}, z.core.$loose>>>;
|
|
54
|
+
index: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
56
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
audio: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
58
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
refusal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
tool_calls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
61
|
+
annotations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
62
|
+
function_call: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
63
|
+
}, z.core.$loose>>>;
|
|
64
|
+
logprobs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
65
|
+
finish_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
}, z.core.$loose>>;
|
|
67
|
+
created: z.ZodNullable<z.ZodNumber>;
|
|
68
|
+
service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
}, z.core.$loose>;
|
|
71
|
+
declare const parallelCreateChatCompletions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
72
|
+
model: string;
|
|
73
|
+
messages: {
|
|
74
|
+
[x: string]: unknown;
|
|
75
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
76
|
+
content: string;
|
|
77
|
+
name?: string | undefined;
|
|
78
|
+
}[];
|
|
79
|
+
n?: number | undefined;
|
|
80
|
+
top_p?: number | undefined;
|
|
81
|
+
stream?: boolean | undefined;
|
|
82
|
+
max_tokens?: number | undefined;
|
|
83
|
+
temperature?: number | undefined;
|
|
84
|
+
response_format?: {
|
|
85
|
+
type: "text" | "json_object" | "json_schema";
|
|
86
|
+
json_schema?: Record<string, unknown> | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
presence_penalty?: number | undefined;
|
|
89
|
+
frequency_penalty?: number | undefined;
|
|
90
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
91
|
//#endregion
|
|
8
92
|
export { parallelCreateChatCompletions };
|
|
9
93
|
//# sourceMappingURL=create-chat-completions.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-chat-completions.d.cts","names":[],"sources":["../../src/actions/create-chat-completions.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"create-chat-completions.d.cts","names":[],"sources":["../../src/actions/create-chat-completions.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYnC,6BAAA,gCAA6B,wBAAA;;;;;;;;;;;;;;;kBAMxC,MAAA;EAAA"}
|
|
@@ -1,9 +1,93 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-chat-completions.d.ts
|
|
4
|
-
declare const ParallelCreateChatCompletionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ParallelCreateChatCompletionsInput: z.ZodObject<{
|
|
5
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
model: z.ZodString;
|
|
7
|
+
top_p: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
stream: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
role: z.ZodEnum<{
|
|
12
|
+
system: "system";
|
|
13
|
+
user: "user";
|
|
14
|
+
assistant: "assistant";
|
|
15
|
+
tool: "tool";
|
|
16
|
+
}>;
|
|
17
|
+
content: z.ZodString;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
response_format: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
type: z.ZodEnum<{
|
|
23
|
+
text: "text";
|
|
24
|
+
json_object: "json_object";
|
|
25
|
+
json_schema: "json_schema";
|
|
26
|
+
}>;
|
|
27
|
+
json_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
presence_penalty: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
frequency_penalty: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const ParallelCreateChatCompletionsOutput: z.ZodObject<{
|
|
33
|
+
id: z.ZodNullable<z.ZodString>;
|
|
34
|
+
basis: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
35
|
+
field: z.ZodNullable<z.ZodString>;
|
|
36
|
+
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
37
|
+
reasoning: z.ZodNullable<z.ZodString>;
|
|
38
|
+
confidence: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
39
|
+
}, z.core.$loose>>>>;
|
|
40
|
+
model: z.ZodNullable<z.ZodString>;
|
|
41
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
42
|
+
total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
prompt_tokens: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
completion_tokens: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
prompt_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
46
|
+
completion_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
|
+
object: z.ZodNullable<z.ZodString>;
|
|
49
|
+
choices: z.ZodArray<z.ZodObject<{
|
|
50
|
+
delta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
51
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
}, z.core.$loose>>>;
|
|
54
|
+
index: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
56
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
audio: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
58
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
refusal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
tool_calls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
61
|
+
annotations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
62
|
+
function_call: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
63
|
+
}, z.core.$loose>>>;
|
|
64
|
+
logprobs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
65
|
+
finish_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
}, z.core.$loose>>;
|
|
67
|
+
created: z.ZodNullable<z.ZodNumber>;
|
|
68
|
+
service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
}, z.core.$loose>;
|
|
71
|
+
declare const parallelCreateChatCompletions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
72
|
+
model: string;
|
|
73
|
+
messages: {
|
|
74
|
+
[x: string]: unknown;
|
|
75
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
76
|
+
content: string;
|
|
77
|
+
name?: string | undefined;
|
|
78
|
+
}[];
|
|
79
|
+
n?: number | undefined;
|
|
80
|
+
top_p?: number | undefined;
|
|
81
|
+
stream?: boolean | undefined;
|
|
82
|
+
max_tokens?: number | undefined;
|
|
83
|
+
temperature?: number | undefined;
|
|
84
|
+
response_format?: {
|
|
85
|
+
type: "text" | "json_object" | "json_schema";
|
|
86
|
+
json_schema?: Record<string, unknown> | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
presence_penalty?: number | undefined;
|
|
89
|
+
frequency_penalty?: number | undefined;
|
|
90
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
91
|
//#endregion
|
|
8
92
|
export { parallelCreateChatCompletions };
|
|
9
93
|
//# sourceMappingURL=create-chat-completions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-chat-completions.d.mts","names":[],"sources":["../../src/actions/create-chat-completions.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"create-chat-completions.d.mts","names":[],"sources":["../../src/actions/create-chat-completions.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYnC,6BAAA,gCAA6B,wBAAA;;;;;;;;;;;;;;;kBAMxC,MAAA;EAAA"}
|
|
@@ -15,7 +15,7 @@ const ParallelCreateChatCompletionsInput = z.object({
|
|
|
15
15
|
"tool"
|
|
16
16
|
]).describe("The role of the message sender (system, user, assistant, or tool)."),
|
|
17
17
|
content: z.string().describe("The content of the message.")
|
|
18
|
-
}).describe("A single message in a chat conversation.")).describe("The messages to use for chat completions. Must contain at least one message."),
|
|
18
|
+
}).passthrough().describe("A single message in a chat conversation.")).describe("The messages to use for chat completions. Must contain at least one message."),
|
|
19
19
|
max_tokens: z.number().int().describe("The maximum number of tokens to generate. Note: This parameter is currently unsupported by the API.").optional(),
|
|
20
20
|
temperature: z.number().describe("The temperature to use for chat completions. Note: This parameter is currently unsupported by the API.").optional(),
|
|
21
21
|
response_format: z.object({
|
|
@@ -30,22 +30,22 @@ const ParallelCreateChatCompletionsInput = z.object({
|
|
|
30
30
|
frequency_penalty: z.number().describe("The frequency penalty to use for chat completions. Note: This parameter is currently unsupported by the API.").optional()
|
|
31
31
|
}).describe("Request model for chat completions endpoint.");
|
|
32
32
|
const ParallelCreateChatCompletions_FieldBasisSchema = z.object({
|
|
33
|
-
field: z.string().describe("The field name being supported."),
|
|
33
|
+
field: z.string().describe("The field name being supported.").nullable(),
|
|
34
34
|
citations: z.array(z.record(z.string(), z.unknown())).describe("List of citations supporting this field.").nullable().optional(),
|
|
35
|
-
reasoning: z.string().describe("Reasoning explaining how the field value was derived."),
|
|
35
|
+
reasoning: z.string().describe("Reasoning explaining how the field value was derived.").nullable(),
|
|
36
36
|
confidence: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional()
|
|
37
|
-
}).describe("Citations and reasoning supporting one field of a task output.");
|
|
37
|
+
}).passthrough().describe("Citations and reasoning supporting one field of a task output.");
|
|
38
38
|
const ParallelCreateChatCompletions_CompletionUsageSchema = z.object({
|
|
39
|
-
total_tokens: z.number().int().describe("Total tokens used (prompt + completion)."),
|
|
40
|
-
prompt_tokens: z.number().int().describe("Number of tokens in the prompt messages."),
|
|
41
|
-
completion_tokens: z.number().int().describe("Number of tokens in the generated completion."),
|
|
39
|
+
total_tokens: z.number().int().describe("Total tokens used (prompt + completion).").nullable(),
|
|
40
|
+
prompt_tokens: z.number().int().describe("Number of tokens in the prompt messages.").nullable(),
|
|
41
|
+
completion_tokens: z.number().int().describe("Number of tokens in the generated completion.").nullable(),
|
|
42
42
|
prompt_tokens_details: z.record(z.string(), z.unknown()).describe("Detailed breakdown of prompt tokens.").nullable().optional(),
|
|
43
43
|
completion_tokens_details: z.record(z.string(), z.unknown()).describe("Detailed breakdown of completion tokens.").nullable().optional()
|
|
44
|
-
}).describe("Token usage information for the completion.");
|
|
44
|
+
}).passthrough().describe("Token usage information for the completion.");
|
|
45
45
|
const ParallelCreateChatCompletions_ChoiceDeltaSchema = z.object({
|
|
46
46
|
role: z.string().describe("Role of the message sender.").nullable().optional(),
|
|
47
47
|
content: z.string().describe("Content of the message delta.").nullable().optional()
|
|
48
|
-
}).describe("Delta content in a streaming chat completion choice.");
|
|
48
|
+
}).passthrough().describe("Delta content in a streaming chat completion choice.");
|
|
49
49
|
const ParallelCreateChatCompletions_MessageContentSchema = z.object({
|
|
50
50
|
role: z.string().describe("Role of the message sender.").nullable().optional(),
|
|
51
51
|
audio: z.record(z.string(), z.unknown()).describe("Audio content if applicable.").nullable().optional(),
|
|
@@ -54,30 +54,30 @@ const ParallelCreateChatCompletions_MessageContentSchema = z.object({
|
|
|
54
54
|
tool_calls: z.array(z.record(z.string(), z.unknown())).describe("Tool calls if applicable.").nullable().optional(),
|
|
55
55
|
annotations: z.array(z.record(z.string(), z.unknown())).describe("Annotations for the message.").nullable().optional(),
|
|
56
56
|
function_call: z.record(z.string(), z.unknown()).describe("Function call details if applicable.").nullable().optional()
|
|
57
|
-
}).describe("Content of a message in a chat completion choice.");
|
|
57
|
+
}).passthrough().describe("Content of a message in a chat completion choice.");
|
|
58
58
|
const ParallelCreateChatCompletions_ChoiceSchema = z.object({
|
|
59
59
|
delta: ParallelCreateChatCompletions_ChoiceDeltaSchema.nullable().optional(),
|
|
60
|
-
index: z.number().int().describe("Index of this choice in the choices array."),
|
|
60
|
+
index: z.number().int().describe("Index of this choice in the choices array.").nullable(),
|
|
61
61
|
message: ParallelCreateChatCompletions_MessageContentSchema.nullable().optional(),
|
|
62
62
|
logprobs: z.record(z.string(), z.unknown()).describe("Log probabilities for the generated tokens, if requested.").nullable().optional(),
|
|
63
63
|
finish_reason: z.string().describe("The reason the completion finished (e.g., 'stop', 'length', 'content_filter').").nullable().optional()
|
|
64
|
-
}).describe("A single choice in the chat completion response.");
|
|
64
|
+
}).passthrough().describe("A single choice in the chat completion response.");
|
|
65
65
|
const parallelCreateChatCompletions = action("PARALLEL_CREATE_CHAT_COMPLETIONS", {
|
|
66
66
|
slug: "parallel-create-chat-completions",
|
|
67
67
|
name: "Create Chat Completions",
|
|
68
68
|
description: "Tool to get realtime chat completions from Parallel AI. Use when you need conversational AI responses or structured outputs via chat interface. Can be combined with Task API processors for research-grade structured outputs with citations and reasoning.",
|
|
69
69
|
input: ParallelCreateChatCompletionsInput,
|
|
70
70
|
output: z.object({
|
|
71
|
-
id: z.string().describe("The unique identifier for this completion."),
|
|
71
|
+
id: z.string().describe("The unique identifier for this completion.").nullable(),
|
|
72
72
|
basis: z.array(ParallelCreateChatCompletions_FieldBasisSchema).describe("Basis for the chat completion, including citations and reasoning supporting the output. Provided when using Task API processors.").nullable().optional(),
|
|
73
|
-
model: z.string().describe("The model used for this completion."),
|
|
73
|
+
model: z.string().describe("The model used for this completion.").nullable(),
|
|
74
74
|
usage: ParallelCreateChatCompletions_CompletionUsageSchema.nullable().optional(),
|
|
75
|
-
object: z.string().describe("The object type, always 'chat.completion' or similar."),
|
|
75
|
+
object: z.string().describe("The object type, always 'chat.completion' or similar.").nullable(),
|
|
76
76
|
choices: z.array(ParallelCreateChatCompletions_ChoiceSchema).describe("List of completion choices. Typically contains one choice."),
|
|
77
|
-
created: z.number().int().describe("Unix timestamp (in seconds) of when the completion was created."),
|
|
77
|
+
created: z.number().int().describe("Unix timestamp (in seconds) of when the completion was created.").nullable(),
|
|
78
78
|
service_tier: z.string().describe("The service tier used for processing the request.").nullable().optional(),
|
|
79
79
|
system_fingerprint: z.string().describe("Unique identifier for the backend configuration that produced this response.").nullable().optional()
|
|
80
|
-
}).describe("Response model for chat completions endpoint.")
|
|
80
|
+
}).passthrough().describe("Response model for chat completions endpoint.")
|
|
81
81
|
});
|
|
82
82
|
//#endregion
|
|
83
83
|
export { parallelCreateChatCompletions };
|