Configuration for the PhoneAgent.
| 15 | |
| 16 | @dataclass |
| 17 | class AgentConfig: |
| 18 | """Configuration for the PhoneAgent.""" |
| 19 | |
| 20 | max_steps: int = 100 |
| 21 | device_id: str | None = None |
| 22 | lang: str = "cn" |
| 23 | system_prompt: str | None = None |
| 24 | verbose: bool = True |
| 25 | |
| 26 | def __post_init__(self): |
| 27 | if self.system_prompt is None: |
| 28 | self.system_prompt = get_system_prompt(self.lang) |
| 29 | |
| 30 | |
| 31 | @dataclass |
no outgoing calls
no test coverage detected