You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: templates/typescript/cua/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,4 +5,4 @@ This is a Kernel application that demonstrates using the Computer Using Agent (C
5
5
It generally follows the [OpenAI CUA Sample App Reference](https://github.com/openai/openai-cua-sample-app) and uses Playwright via Kernel for browser automation.
6
6
Also makes use of the latest OpenAI SDK format, and has local equivalent to Kernel methods for local testing before deploying on Kernel.
7
7
8
-
See the [docs](https://docs.onkernel.com/quickstart) for information.
8
+
See the [docs](https://docs.onkernel.com/quickstart) for information.
content: `- Current date and time: ${newDate().toISOString()} (${newDate().toLocaleDateString("en-US",{weekday: "long"})})`,
78
-
},
79
-
{
80
-
type: "message",
81
-
role: "user",
82
-
content: [
83
-
{
84
-
type: "input_text",
85
-
text: payload.task,
86
-
// text: "go to https://news.ycombinator.com , open top article , describe the target website design (in yaml format)"
87
-
},
88
-
],
89
-
},
90
-
],
91
-
print_steps: true,// log function_call and computer_call actions
92
-
debug: true,// show agent debug logs (llm messages and responses)
93
-
show_images: false,// if set to true, response messages stack will return base64 images (webp format) of screenshots, if false, replaced with "[omitted]""
94
-
});
58
+
// run agent and get response
59
+
constlogs=awaitagent.runFullTurn({
60
+
messages: [
61
+
{
62
+
role: 'system',
63
+
content: `- Current date and time: ${newDate().toISOString()} (${newDate().toLocaleDateString(
0 commit comments