Configuration for the iOS PhoneAgent.
| 15 | |
| 16 | @dataclass |
| 17 | class IOSAgentConfig: |
| 18 | """Configuration for the iOS PhoneAgent.""" |
| 19 | |
| 20 | max_steps: int = 100 |
| 21 | wda_url: str = "http://localhost:8100" |
| 22 | session_id: str | None = None |
| 23 | device_id: str | None = None # iOS device UDID |
| 24 | lang: str = "cn" |
| 25 | system_prompt: str | None = None |
| 26 | verbose: bool = True |
| 27 | |
| 28 | def __post_init__(self): |
| 29 | if self.system_prompt is None: |
| 30 | self.system_prompt = get_system_prompt(self.lang) |
| 31 | |
| 32 | |
| 33 | @dataclass |