You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. from pydantic import BaseModel
  2. from million.model.message import Message
  3. import million.analyze.message_evaluation as msg_ev
  4. class Sequence(BaseModel):
  5. start_message: Message
  6. end_message: Message | None
  7. def start(self) -> int:
  8. return msg_ev.compute(self.start_message)
  9. def end(self) -> int:
  10. return msg_ev.compute(self.end_message)