File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change 66 MessageSettings ,
77)
88from 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
1010from askui .tools .exception_tool import ExceptionTool
1111from askui .tools .playwright .agent_os import PlaywrightAgentOs
1212from 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 )
Original file line number Diff line number Diff line change 22
33from pydantic import ConfigDict , validate_call
44
5+ from askui .models .shared .prompts import ActSystemPrompt
56from 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 ),
You can’t perform that action at this time.
0 commit comments