@astralform/js 4.5.0 → 4.6.0
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 +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
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
|
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,
|