puzzle/typedefs.py

23 lines
400 B
Python
Raw Normal View History

2025-04-29 09:57:22 -07:00
"""Type definitions"""
from dataclasses import dataclass
from typing import Optional
@dataclass
class ChatResult:
success: bool
text_response: str
# TODO: switch stats to tokens instead of words!!!
words_sent: int
words_received: int
class Llm:
def chat(
self,
message: str,
system_message: Optional[str])\
-> ChatResult:
pass