@astralform/js 4.5.0 → 4.6.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.d.cts CHANGED
@@ -673,6 +673,7 @@ interface ChatStreamRequest {
673
673
  upload_ids?: string[];
674
674
  agent_name?: string;
675
675
  plan_mode?: boolean;
676
+ image_mode?: boolean;
676
677
  /**
677
678
  * Start a durable long-horizon goal for this run (goal mode). The backend mints
678
679
  * an agent_goal from this text and drives the run under a budget until the
@@ -764,6 +765,20 @@ interface SendOptions$1 extends ModelChoiceOptions {
764
765
  uploadIds?: string[];
765
766
  agentName?: string;
766
767
  planMode?: boolean;
768
+ /**
769
+ * Attach the image-generation tool to this turn.
770
+ *
771
+ * Off by default and per-message, because generating costs the developer real
772
+ * money at a third-party provider — the agent does not get to decide on its
773
+ * own that a picture would be nice. The tool is not attached at all unless
774
+ * this is set, so an agent with image generation configured still cannot
775
+ * generate one on an ordinary turn.
776
+ *
777
+ * Gate the affordance on `AgentStatus.capabilities` (Astralform ≥ 0.61.0) —
778
+ * an agent with no provider configured will simply have no tool to call.
779
+ * The `image_mode` field itself is accepted from Astralform ≥ 0.59.0.
780
+ */
781
+ imageMode?: boolean;
767
782
  /**
768
783
  * Start a durable long-horizon goal for this run (goal mode). The text becomes
769
784
  * the goal's objective; the backend keeps the agent working under a budget until
@@ -1263,6 +1278,12 @@ interface SendOptions extends ModelChoiceOptions {
1263
1278
  agentName?: string;
1264
1279
  uploadIds?: string[];
1265
1280
  planMode?: boolean;
1281
+ /**
1282
+ * Attach the image-generation tool to this turn. Per-message and off by
1283
+ * default — generating costs the developer real money at a third-party
1284
+ * provider. Gate the affordance on `AgentStatus.capabilities`.
1285
+ */
1286
+ imageMode?: boolean;
1266
1287
  /**
1267
1288
  * Start a durable long-horizon goal for this run (goal mode) — the text is the
1268
1289
  * goal objective the backend drives to completion. Omit for a normal turn.
package/dist/index.d.ts CHANGED
@@ -673,6 +673,7 @@ interface ChatStreamRequest {
673
673
  upload_ids?: string[];
674
674
  agent_name?: string;
675
675
  plan_mode?: boolean;
676
+ image_mode?: boolean;
676
677
  /**
677
678
  * Start a durable long-horizon goal for this run (goal mode). The backend mints
678
679
  * an agent_goal from this text and drives the run under a budget until the
@@ -764,6 +765,20 @@ interface SendOptions$1 extends ModelChoiceOptions {
764
765
  uploadIds?: string[];
765
766
  agentName?: string;
766
767
  planMode?: boolean;
768
+ /**
769
+ * Attach the image-generation tool to this turn.
770
+ *
771
+ * Off by default and per-message, because generating costs the developer real
772
+ * money at a third-party provider — the agent does not get to decide on its
773
+ * own that a picture would be nice. The tool is not attached at all unless
774
+ * this is set, so an agent with image generation configured still cannot
775
+ * generate one on an ordinary turn.
776
+ *
777
+ * Gate the affordance on `AgentStatus.capabilities` (Astralform ≥ 0.61.0) —
778
+ * an agent with no provider configured will simply have no tool to call.
779
+ * The `image_mode` field itself is accepted from Astralform ≥ 0.59.0.
780
+ */
781
+ imageMode?: boolean;
767
782
  /**
768
783
  * Start a durable long-horizon goal for this run (goal mode). The text becomes
769
784
  * the goal's objective; the backend keeps the agent working under a budget until
@@ -1263,6 +1278,12 @@ interface SendOptions extends ModelChoiceOptions {
1263
1278
  agentName?: string;
1264
1279
  uploadIds?: string[];
1265
1280
  planMode?: boolean;
1281
+ /**
1282
+ * Attach the image-generation tool to this turn. Per-message and off by
1283
+ * default — generating costs the developer real money at a third-party
1284
+ * provider. Gate the affordance on `AgentStatus.capabilities`.
1285
+ */
1286
+ imageMode?: boolean;
1266
1287
  /**
1267
1288
  * Start a durable long-horizon goal for this run (goal mode) — the text is the
1268
1289
  * goal objective the backend drives to completion. Omit for a normal turn.
package/dist/index.js CHANGED
@@ -1400,6 +1400,7 @@ var ChatSession = class {
1400
1400
  upload_ids: options?.uploadIds,
1401
1401
  agent_name: options?.agentName,
1402
1402
  plan_mode: options?.planMode,
1403
+ image_mode: options?.imageMode,
1403
1404
  goal: options?.goal,
1404
1405
  // Per-request model choice (client-side model selection).
1405
1406
  provider: options?.provider,
@@ -2084,6 +2085,7 @@ var StreamManager = class {
2084
2085
  agentName: options?.agentName,
2085
2086
  uploadIds: options?.uploadIds,
2086
2087
  planMode: options?.planMode,
2088
+ imageMode: options?.imageMode,
2087
2089
  goal: options?.goal,
2088
2090
  provider: options?.provider,
2089
2091
  model: options?.model,