Skip to content

Commit e5a4782

Browse files
committed
re-instate import
1 parent 4edf6cd commit e5a4782

File tree

1 file changed

+6
-5
lines changed
  • templates/typescript/computer-use

1 file changed

+6
-5
lines changed

templates/typescript/computer-use/index.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Kernel, type KernelContext } from '@onkernel/sdk';
22
import { samplingLoop } from './loop';
3+
import { chromium } from 'playwright';
34

45
const kernel = new Kernel();
56

@@ -65,11 +66,11 @@ app.action<QueryInput, QueryOutput>(
6566
throw new Error('Failed to get the last message from the sampling loop');
6667
}
6768

68-
const result = typeof lastMessage.content === 'string'
69-
? lastMessage.content
70-
: lastMessage.content.map(block =>
71-
block.type === 'text' ? block.text : ''
72-
).join('');
69+
const result = typeof lastMessage.content === 'string'
70+
? lastMessage.content
71+
: lastMessage.content.map(block =>
72+
block.type === 'text' ? block.text : ''
73+
).join('');
7374

7475
return { result };
7576
} catch (error) {

0 commit comments

Comments
 (0)