Skip to content

Commit 0c60317

Browse files
committed
formatting and example rename
1 parent e9ca266 commit 0c60317

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

File renamed without changes.

packages/core/lib/v3/agent/OpenAICUAClient.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export class OpenAICUAClient extends AgentClient {
305305
stepActions.push(action);
306306
logger({
307307
category: "agent",
308-
message: `Found computer_call action: ${action.type}, call_id: ${item.call_id}`,
308+
message: `Found computer_call action: ${action.type}, payload: ${JSON.stringify(action)}, call_id: ${item.call_id}`,
309309
level: 2,
310310
});
311311
}
@@ -636,7 +636,9 @@ export class OpenAICUAClient extends AgentClient {
636636
output: {
637637
type: outputType,
638638
image_url: screenshot,
639-
...(this.usesNewComputerTool ? { detail: "original" as const } : {}),
639+
...(this.usesNewComputerTool
640+
? { detail: "original" as const }
641+
: {}),
640642
},
641643
} as ResponseInputItem;
642644

@@ -713,7 +715,9 @@ export class OpenAICUAClient extends AgentClient {
713715
type: outputType,
714716
image_url: screenshot,
715717
error: errorMessage,
716-
...(this.usesNewComputerTool ? { detail: "original" as const } : {}),
718+
...(this.usesNewComputerTool
719+
? { detail: "original" as const }
720+
: {}),
717721
},
718722
} as ResponseInputItem;
719723

@@ -907,9 +911,7 @@ export class OpenAICUAClient extends AgentClient {
907911
}
908912
}
909913

910-
private convertComputerCallToActions(
911-
call: ComputerCallItem,
912-
): AgentAction[] {
914+
private convertComputerCallToActions(call: ComputerCallItem): AgentAction[] {
913915
if (call.actions && Array.isArray(call.actions)) {
914916
return call.actions.map((action) => ({
915917
type: action.type as string,

0 commit comments

Comments
 (0)