@runtypelabs/sdk 4.18.0 → 4.19.1

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/index.cjs CHANGED
@@ -9990,6 +9990,8 @@ var _AgentsEndpoint = class _AgentsEndpoint {
9990
9990
  messages,
9991
9991
  debugMode: options.debugMode,
9992
9992
  model: options.model,
9993
+ ...options.temperature !== void 0 ? { temperature: options.temperature } : {},
9994
+ ...options.maxTokens !== void 0 ? { maxTokens: options.maxTokens } : {},
9993
9995
  ...options.reasoning !== void 0 ? { reasoning: options.reasoning } : {},
9994
9996
  ...options.toolIds?.length ? { tools: { toolIds: options.toolIds } } : {},
9995
9997
  ...requestContextManagement ? { contextManagement: requestContextManagement } : {}
package/dist/index.d.cts CHANGED
@@ -20064,7 +20064,7 @@ interface paths {
20064
20064
  put?: never;
20065
20065
  /**
20066
20066
  * Ensure full product (config-as-code converge of the whole FPO)
20067
- * @description Idempotently converge an entire Full Product Object (the nested product graph) in one shot. Fans out to the per-entity ensure services in dependency order (product → capability backing flows/agents → capability links), returning a per-entity report. Identity is the product name + account scope. NON-atomic by design: a per-entity failure is reported in `entities[].result = "failed"` (and `hasFailures`) and a re-run self-heals; only a top-level product reject aborts. Set dryRun to plan without writing. PR1 scope: surfaces/records/schedules/secrets and capability-as-tool composition are not yet converged.
20067
+ * @description Idempotently converge an entire Full Product Object (the nested product graph) in one shot. Fans out to the per-entity ensure services in dependency order (product → capability backing flows/agents → capability-as-tool composition → capability links → surfaces + surface items → records → schedules → secret bindings), returning a per-entity report. Identity is the product name + account scope. NON-atomic by design: a per-entity failure is reported in `entities[].result = "failed"` (and `hasFailures`) and a re-run self-heals; only a top-level product reject aborts. Set dryRun to plan without writing. Whole-FPO fast-probe, pull-fpo, and prune are not yet supported (PR3).
20068
20068
  */
20069
20069
  post: {
20070
20070
  parameters: {
@@ -25715,7 +25715,7 @@ interface paths {
25715
25715
  requestBody?: {
25716
25716
  content: {
25717
25717
  "application/json": {
25718
- /** @default qwen/qwen3.5-9b */
25718
+ /** @default kimi-k2.6 */
25719
25719
  model?: string;
25720
25720
  name: string;
25721
25721
  /**
@@ -25912,7 +25912,7 @@ interface paths {
25912
25912
  requestBody?: {
25913
25913
  content: {
25914
25914
  "application/json": {
25915
- /** @default qwen/qwen3.5-9b */
25915
+ /** @default kimi-k2.6 */
25916
25916
  model?: string;
25917
25917
  name?: string;
25918
25918
  /**
@@ -37266,7 +37266,7 @@ interface components {
37266
37266
  /** @description Resulting platform id (absent on failure/skip). */
37267
37267
  id?: string;
37268
37268
  /** @enum {string} */
37269
- kind: "product" | "flow" | "agent" | "capability";
37269
+ kind: "product" | "flow" | "agent" | "capability" | "tool" | "surface" | "record" | "schedule";
37270
37270
  name: string;
37271
37271
  /** @description The FPO-local ref (capability id / entity name) for correlation. */
37272
37272
  ref: string;
@@ -42150,7 +42150,7 @@ interface EnsureFpoOptions {
42150
42150
  }
42151
42151
  /** One nested entity's converge result. */
42152
42152
  interface FpoEntityOutcome {
42153
- kind: 'product' | 'flow' | 'agent' | 'capability';
42153
+ kind: 'product' | 'flow' | 'agent' | 'capability' | 'tool' | 'surface' | 'record' | 'schedule';
42154
42154
  ref: string;
42155
42155
  name: string;
42156
42156
  result: 'created' | 'updated' | 'unchanged' | 'failed' | 'skipped';
@@ -44362,6 +44362,10 @@ interface AgentExecuteRequest {
44362
44362
  debugMode?: boolean;
44363
44363
  /** Model ID to use for this session (overrides agent config) */
44364
44364
  model?: string;
44365
+ /** Sampling temperature override (0-2) for this request only (overrides agent config) */
44366
+ temperature?: number;
44367
+ /** Max output-token budget override for this request only (overrides agent config) */
44368
+ maxTokens?: number;
44365
44369
  /**
44366
44370
  * System-prompt override for this request only (overrides the saved agent
44367
44371
  * config; never persisted). For agents whose system prompt is rebuilt every
@@ -44722,6 +44726,10 @@ interface RunTaskOptions {
44722
44726
  localTools?: Record<string, LocalToolDefinition>;
44723
44727
  /** Model ID to use (overrides agent's configured model) */
44724
44728
  model?: string;
44729
+ /** Sampling temperature override (0-2) applied to each session (overrides agent config) */
44730
+ temperature?: number;
44731
+ /** Max output-token budget applied to each session (overrides agent config) */
44732
+ maxTokens?: number;
44725
44733
  /** Enable reasoning/thinking for models that support it (e.g. Gemini 3, o-series) */
44726
44734
  reasoning?: boolean;
44727
44735
  /** Previous messages from a prior run (for continuation/resume) */
@@ -47079,8 +47087,19 @@ interface WorkflowMilestoneConfig {
47079
47087
  forceEndTurn?: WorkflowSlot<'forceEndTurn'>;
47080
47088
  /** Per-milestone model override (consumed by the runner, not the compiler) */
47081
47089
  model?: string;
47090
+ /** Per-milestone sampling-temperature override (consumed by the runner, not the compiler) */
47091
+ temperature?: number;
47092
+ /** Per-milestone max output-token override (consumed by the runner, not the compiler) */
47093
+ maxTokens?: number;
47082
47094
  /** Per-milestone fallback models (consumed by the runner, not the compiler) */
47083
47095
  fallbackModels?: unknown[];
47096
+ /**
47097
+ * When true, this milestone's fallback chain also fires on empty output (a
47098
+ * model that finishes successfully but returns no visible text), not just on
47099
+ * error. Opt-in; needs `fallbackModels` so there's something to fall back to.
47100
+ * Consumed by the runner, not the compiler.
47101
+ */
47102
+ fallbackOnEmpty?: boolean;
47084
47103
  }
47085
47104
  interface WorkflowConfig {
47086
47105
  name: string;
package/dist/index.d.ts CHANGED
@@ -20064,7 +20064,7 @@ interface paths {
20064
20064
  put?: never;
20065
20065
  /**
20066
20066
  * Ensure full product (config-as-code converge of the whole FPO)
20067
- * @description Idempotently converge an entire Full Product Object (the nested product graph) in one shot. Fans out to the per-entity ensure services in dependency order (product → capability backing flows/agents → capability links), returning a per-entity report. Identity is the product name + account scope. NON-atomic by design: a per-entity failure is reported in `entities[].result = "failed"` (and `hasFailures`) and a re-run self-heals; only a top-level product reject aborts. Set dryRun to plan without writing. PR1 scope: surfaces/records/schedules/secrets and capability-as-tool composition are not yet converged.
20067
+ * @description Idempotently converge an entire Full Product Object (the nested product graph) in one shot. Fans out to the per-entity ensure services in dependency order (product → capability backing flows/agents → capability-as-tool composition → capability links → surfaces + surface items → records → schedules → secret bindings), returning a per-entity report. Identity is the product name + account scope. NON-atomic by design: a per-entity failure is reported in `entities[].result = "failed"` (and `hasFailures`) and a re-run self-heals; only a top-level product reject aborts. Set dryRun to plan without writing. Whole-FPO fast-probe, pull-fpo, and prune are not yet supported (PR3).
20068
20068
  */
20069
20069
  post: {
20070
20070
  parameters: {
@@ -25715,7 +25715,7 @@ interface paths {
25715
25715
  requestBody?: {
25716
25716
  content: {
25717
25717
  "application/json": {
25718
- /** @default qwen/qwen3.5-9b */
25718
+ /** @default kimi-k2.6 */
25719
25719
  model?: string;
25720
25720
  name: string;
25721
25721
  /**
@@ -25912,7 +25912,7 @@ interface paths {
25912
25912
  requestBody?: {
25913
25913
  content: {
25914
25914
  "application/json": {
25915
- /** @default qwen/qwen3.5-9b */
25915
+ /** @default kimi-k2.6 */
25916
25916
  model?: string;
25917
25917
  name?: string;
25918
25918
  /**
@@ -37266,7 +37266,7 @@ interface components {
37266
37266
  /** @description Resulting platform id (absent on failure/skip). */
37267
37267
  id?: string;
37268
37268
  /** @enum {string} */
37269
- kind: "product" | "flow" | "agent" | "capability";
37269
+ kind: "product" | "flow" | "agent" | "capability" | "tool" | "surface" | "record" | "schedule";
37270
37270
  name: string;
37271
37271
  /** @description The FPO-local ref (capability id / entity name) for correlation. */
37272
37272
  ref: string;
@@ -42150,7 +42150,7 @@ interface EnsureFpoOptions {
42150
42150
  }
42151
42151
  /** One nested entity's converge result. */
42152
42152
  interface FpoEntityOutcome {
42153
- kind: 'product' | 'flow' | 'agent' | 'capability';
42153
+ kind: 'product' | 'flow' | 'agent' | 'capability' | 'tool' | 'surface' | 'record' | 'schedule';
42154
42154
  ref: string;
42155
42155
  name: string;
42156
42156
  result: 'created' | 'updated' | 'unchanged' | 'failed' | 'skipped';
@@ -44362,6 +44362,10 @@ interface AgentExecuteRequest {
44362
44362
  debugMode?: boolean;
44363
44363
  /** Model ID to use for this session (overrides agent config) */
44364
44364
  model?: string;
44365
+ /** Sampling temperature override (0-2) for this request only (overrides agent config) */
44366
+ temperature?: number;
44367
+ /** Max output-token budget override for this request only (overrides agent config) */
44368
+ maxTokens?: number;
44365
44369
  /**
44366
44370
  * System-prompt override for this request only (overrides the saved agent
44367
44371
  * config; never persisted). For agents whose system prompt is rebuilt every
@@ -44722,6 +44726,10 @@ interface RunTaskOptions {
44722
44726
  localTools?: Record<string, LocalToolDefinition>;
44723
44727
  /** Model ID to use (overrides agent's configured model) */
44724
44728
  model?: string;
44729
+ /** Sampling temperature override (0-2) applied to each session (overrides agent config) */
44730
+ temperature?: number;
44731
+ /** Max output-token budget applied to each session (overrides agent config) */
44732
+ maxTokens?: number;
44725
44733
  /** Enable reasoning/thinking for models that support it (e.g. Gemini 3, o-series) */
44726
44734
  reasoning?: boolean;
44727
44735
  /** Previous messages from a prior run (for continuation/resume) */
@@ -47079,8 +47087,19 @@ interface WorkflowMilestoneConfig {
47079
47087
  forceEndTurn?: WorkflowSlot<'forceEndTurn'>;
47080
47088
  /** Per-milestone model override (consumed by the runner, not the compiler) */
47081
47089
  model?: string;
47090
+ /** Per-milestone sampling-temperature override (consumed by the runner, not the compiler) */
47091
+ temperature?: number;
47092
+ /** Per-milestone max output-token override (consumed by the runner, not the compiler) */
47093
+ maxTokens?: number;
47082
47094
  /** Per-milestone fallback models (consumed by the runner, not the compiler) */
47083
47095
  fallbackModels?: unknown[];
47096
+ /**
47097
+ * When true, this milestone's fallback chain also fires on empty output (a
47098
+ * model that finishes successfully but returns no visible text), not just on
47099
+ * error. Opt-in; needs `fallbackModels` so there's something to fall back to.
47100
+ * Consumed by the runner, not the compiler.
47101
+ */
47102
+ fallbackOnEmpty?: boolean;
47084
47103
  }
47085
47104
  interface WorkflowConfig {
47086
47105
  name: string;
package/dist/index.mjs CHANGED
@@ -9837,6 +9837,8 @@ var _AgentsEndpoint = class _AgentsEndpoint {
9837
9837
  messages,
9838
9838
  debugMode: options.debugMode,
9839
9839
  model: options.model,
9840
+ ...options.temperature !== void 0 ? { temperature: options.temperature } : {},
9841
+ ...options.maxTokens !== void 0 ? { maxTokens: options.maxTokens } : {},
9840
9842
  ...options.reasoning !== void 0 ? { reasoning: options.reasoning } : {},
9841
9843
  ...options.toolIds?.length ? { tools: { toolIds: options.toolIds } } : {},
9842
9844
  ...requestContextManagement ? { contextManagement: requestContextManagement } : {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "4.18.0",
3
+ "version": "4.19.1",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
6
6
  "main": "dist/index.cjs",