Skip to content

Commit b1aa294

Browse files
cli : payload examples fixes
1 parent 4142c50 commit b1aa294

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const INVOKE_SAMPLES: Record<
9696
[TEMPLATE_COMPUTER_USE]:
9797
'kernel invoke ts-cu cu-task --payload \'{"query": "Return the first url of a search result for NYC restaurant reviews Pete Wells"}\'',
9898
[TEMPLATE_CUA]:
99-
'kernel invoke ts-cua cua-task --payload \'{"query": "Go to https://news.ycombinator.com and get the top 5 articles"}\'',
99+
'kernel invoke ts-cua cua-task --payload \'{"task": "Go to https://news.ycombinator.com and get the top 5 articles"}\'',
100100
},
101101
[LANGUAGE_PYTHON]: {
102102
[TEMPLATE_SAMPLE_APP]:
@@ -108,7 +108,7 @@ const INVOKE_SAMPLES: Record<
108108
[TEMPLATE_COMPUTER_USE]:
109109
'kernel invoke python-cu cu-task --payload \'{"query": "Return the first url of a search result for NYC restaurant reviews Pete Wells"}\'',
110110
[TEMPLATE_CUA]:
111-
'kernel invoke python-cua cua-task --payload \'{"query": "Go to https://news.ycombinator.com and get the top 5 articles"}\'',
111+
'kernel invoke python-cua cua-task --payload \'{"task": "Go to https://news.ycombinator.com and get the top 5 articles"}\'',
112112
},
113113
};
114114

templates/typescript/cua/lib/agent.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ export class Agent {
104104
await (fn as (...a: unknown[]) => unknown)(...Object.values(actionArgs));
105105
const screenshot = await this.computer.screenshot();
106106
const pending = cc.pending_safety_checks ?? [];
107-
console.dir({ debug_agent_computer_call: cc });
108107
for (const { message } of pending)
109108
if (!this.ackCb(message)) throw new Error(`Safety check failed: ${message}`);
110109
const out: Omit<ResponseComputerToolCallOutputItem, 'id'> = {

0 commit comments

Comments
 (0)