Skip to content

🐝 The First Self-Improving agents with RL / Prompting Optimization

360 B
Raw Blame
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import dataclasses
from typing import List, Literal

MessageRole = Literal["system", "user", "assistant"]

@dataclasses.dataclass()
class Message:
    role: MessageRole
    content: str

@dataclasses.dataclass
class Status:
    started: int = 0
    in_progress: int = 0
    succeeded: int = 0
    failed: int = 0