Skip to content

Commit 20550ef

Browse files
fix act prompts
1 parent acb6592 commit 20550ef

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/askui/models/shared/prompts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __str__(self) -> str:
7575
if self.prompt:
7676
return self.prompt
7777

78-
parts = []
78+
parts: list[str] = []
7979

8080
if self.system_capabilities:
8181
parts.append(

src/askui/web_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
MessageSettings,
77
)
88
from askui.models.shared.tools import Tool
9-
from askui.prompts.act_prompts import WEB_AGENT_SYSTEM_PROMPT
9+
from askui.prompts.act_prompts import create_web_agent_prompt
1010
from askui.tools.exception_tool import ExceptionTool
1111
from askui.tools.playwright.agent_os import PlaywrightAgentOs
1212
from askui.tools.playwright.tools import (
@@ -58,7 +58,7 @@ def __init__(
5858
)
5959
self.act_settings = ActSettings(
6060
messages=MessageSettings(
61-
system=WEB_AGENT_SYSTEM_PROMPT,
61+
system=create_web_agent_prompt(),
6262
thinking={"type": "enabled", "budget_tokens": 2048},
6363
),
6464
)

src/askui/web_testing_agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from pydantic import ConfigDict, validate_call
44

5+
from askui.models.shared.prompts import ActSystemPrompt
56
from askui.models.shared.settings import (
67
COMPUTER_USE_20250124_BETA_FLAG,
78
ActSettings,
@@ -74,7 +75,7 @@ def __init__(
7475
)
7576
self.act_settings = ActSettings(
7677
messages=MessageSettings(
77-
system=TESTING_AGENT_SYSTEM_PROMPT,
78+
system=ActSystemPrompt(prompt=TESTING_AGENT_SYSTEM_PROMPT),
7879
betas=[COMPUTER_USE_20250124_BETA_FLAG],
7980
thinking={"type": "enabled", "budget_tokens": 2048},
8081
),

0 commit comments

Comments
 (0)