File size: 601 Bytes
6aeb377 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | from __future__ import annotations
from dataclasses import dataclass, field
from typing import Any
@dataclass(frozen=True)
class Scenario:
id: str
category: str
instruction: str
observation: dict[str, Any]
legal_actions: tuple[dict[str, Any], ...]
acceptable_actions: tuple[dict[str, Any], ...]
required_message_facts: tuple[tuple[str, ...], ...] = ()
forbidden_message_facts: tuple[tuple[str, ...], ...] = ()
message_required: bool = False
pair_id: str | None = None
tags: tuple[str, ...] = ()
metadata: dict[str, Any] = field(default_factory=dict)
|