type wizards, in the folders

This commit is contained in:
lda
2026-05-06 22:39:56 +07:00 Verified
parent f15f5289ef
commit 9874c295cd
12 changed files with 557 additions and 374 deletions
+14
View File
@@ -0,0 +1,14 @@
from __future__ import annotations
from dataclasses import dataclass
from typing import Generic, TypeVar
from pydantic import BaseModel
OutputT_co = TypeVar("OutputT_co", bound=BaseModel, covariant=True)
@dataclass(frozen=True, slots=True)
class NodeReturn(Generic[OutputT_co]):
outcome: str
output: OutputT_co