| 7 | |
| 8 | @dataclass |
| 9 | class Runtime: |
| 10 | |
| 11 | should_stop: bool = False |
| 12 | |
| 13 | llm: LLM = None |
| 14 | |
| 15 | tag: Optional[str] = None |
| 16 | |
| 17 | round: int = 0 |
| 18 | |
| 19 | def to_dict(self): |
| 20 | return { |
| 21 | 'should_stop': self.should_stop, |
| 22 | 'tag': self.tag, |
| 23 | 'round': self.round, |
| 24 | } |
| 25 | |
| 26 | def from_dict(self, data: dict): |
| 27 | self.should_stop = data['should_stop'] |
| 28 | self.tag = data['tag'] |
| 29 | self.round = data['round'] |
no outgoing calls
no test coverage detected