@vellumai/assistant 0.3.12 → 0.3.13
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/package.json
CHANGED
|
@@ -688,6 +688,12 @@ export class ComputerUseSession {
|
|
|
688
688
|
private buildObservationResultContent(obs: CuObservation, hadPreviousAXTree: boolean): string {
|
|
689
689
|
const parts: string[] = [];
|
|
690
690
|
|
|
691
|
+
// Surface user guidance prominently so the model sees it first
|
|
692
|
+
if (obs.userGuidance) {
|
|
693
|
+
parts.push(`USER GUIDANCE: ${obs.userGuidance}`);
|
|
694
|
+
parts.push('');
|
|
695
|
+
}
|
|
696
|
+
|
|
691
697
|
if (obs.executionResult) {
|
|
692
698
|
parts.push(obs.executionResult);
|
|
693
699
|
parts.push('');
|
|
@@ -854,6 +860,12 @@ export class ComputerUseSession {
|
|
|
854
860
|
}
|
|
855
861
|
}
|
|
856
862
|
|
|
863
|
+
// Surface user guidance prominently
|
|
864
|
+
if (obs.userGuidance) {
|
|
865
|
+
textParts.push('');
|
|
866
|
+
textParts.push(`USER GUIDANCE: ${obs.userGuidance}`);
|
|
867
|
+
}
|
|
868
|
+
|
|
857
869
|
// Prompt for next action
|
|
858
870
|
textParts.push('');
|
|
859
871
|
if (this.actionHistory.length === 0) {
|
|
@@ -42,6 +42,8 @@ export interface CuObservation {
|
|
|
42
42
|
executionError?: string;
|
|
43
43
|
axTreeBlob?: IpcBlobRef;
|
|
44
44
|
screenshotBlob?: IpcBlobRef;
|
|
45
|
+
/** Free-form guidance from the user, injected mid-turn to steer the agent. */
|
|
46
|
+
userGuidance?: string;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
export interface TaskSubmit {
|