1 parent 6024955 commit 5692ce8Copy full SHA for 5692ce8
1 file changed
AGENTS.md
@@ -46,7 +46,8 @@ Before changing code or examples, read:
46
- Do not put component startup logic in `__init__()`. IoP/IRIS allocates
47
components with `__new__()` and calls `on_init()` as the startup hook.
48
- Use `on_tear_down()` for cleanup when a component becomes inactive.
49
-- Use regular `Message` or `PydanticMessage` classes for Python messages.
+- Use `@dataclass` on regular `Message` classes. Do not decorate
50
+ `PydanticMessage` classes with `@dataclass`.
51
- Use `PersistentMessage` only when a native persistent IRIS message body is
52
required.
53
- Avoid raw `CLASSES` entries for new production components. Use `CLASSES` only
0 commit comments