File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
templates/typescript/computer-use Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11import { Kernel , type KernelContext } from '@onkernel/sdk' ;
22import { samplingLoop } from './loop' ;
3+ import { chromium } from 'playwright' ;
34
45const 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 ) {
You can’t perform that action at this time.
0 commit comments