reducerspec
This commit is contained in:
@@ -7,6 +7,7 @@ from .models import (
|
||||
NodeDef,
|
||||
NodeResult,
|
||||
NodeUse,
|
||||
ReducerSpec,
|
||||
SchemaRef,
|
||||
StateField,
|
||||
StateSchema,
|
||||
@@ -51,6 +52,7 @@ __all__ = [
|
||||
"NodeDef",
|
||||
"NodeResult",
|
||||
"NodeUse",
|
||||
"ReducerSpec",
|
||||
"SchemaRef",
|
||||
"StateField",
|
||||
"StateSchema",
|
||||
|
||||
@@ -9,6 +9,7 @@ from wf_core.models.conditions import (
|
||||
VariadicCondition,
|
||||
)
|
||||
from wf_core.models.results import NodeResult
|
||||
from wf_core.models.reducers import ReducerSpec
|
||||
from wf_core.models.schemas import NodeDef, SchemaRef, StateField, StateSchema
|
||||
from wf_core.models.steps import (
|
||||
ConditionNode,
|
||||
@@ -32,6 +33,7 @@ __all__ = [
|
||||
"LiteralOperand",
|
||||
"NodeDef",
|
||||
"NodeResult",
|
||||
"ReducerSpec",
|
||||
"NodeUse",
|
||||
"NotCondition",
|
||||
"Operand",
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ReducerSpec(BaseModel):
|
||||
"""Inspectable metadata for one named pure state reducer."""
|
||||
|
||||
name: str
|
||||
description: str | None = None
|
||||
Reference in New Issue
Block a user