| 25 | |
| 26 | @dataclass |
| 27 | class UserConfig: |
| 28 | user_id: int |
| 29 | num_agents: int |
| 30 | gap_between_requests: int |
| 31 | trace: Any |
| 32 | |
| 33 | @staticmethod |
| 34 | def new_user_config(user_id: int, workload_config: WorkloadConfig, trace) -> "UserConfig": |
| 35 | return UserConfig( |
| 36 | user_id=user_id, |
| 37 | num_agents=workload_config.num_agents, |
| 38 | gap_between_requests=workload_config.user_request_interval, |
| 39 | trace=trace, |
| 40 | ) |
| 41 | |
| 42 | |
| 43 | class ChatHistory: |