SchemaNode
Extract structured values against your output schema.
NEOSYNTROPY FRAMEWORK / PYTHON
Build AI workflows with explicit inputs, outputs, tools, and transitions. Start with one intelligent node. Compose the system around it.
Run the quickstart โYOUR FIRST PRIMITIVE
A SchemaNode pairs a task with a typed output. Add reasoning nodes for tool-assisted work and routers for explicit branching.
pip install neosyntropyfrom pydantic import BaseModel
from neosyntropy import OpenInput, SchemaNode
class RefundTicket(BaseModel):
order_id: str
amount: float
reason: str
extract_ticket = SchemaNode(
id="ExtractTicket",
input_schema=OpenInput,
output_schema=RefundTicket,
prompt="Extract a refund ticket.",
)
# Add this node to your Workflow.
# The quickstart covers connection and execution.LIVE FSM / PRODUCTION TRACE
The graph does the work in visible steps: typed extraction, model-assisted routing, bounded reasoning, group-level validation, and a KPI score before commit.
FRAMEWORK API / OPENAPI 3.1
Use the same contract whether a path starts with a tool call, a SchemaNode, a router, or a reasoning node. Every transition returns inspectable state for the next node.
/v1/nodes/schematyped extractionโบ/v1/nodes/reasonbounded reasoningโบ/v1/routes/semanticlabelled routingโบ/v1/groups/validatepath validationโบ/v1/groups/kpioutcome scoringโบ{
"node": "ResolveRefund",
"input": "OrderContext",
"next": "RefundPath",
"validated": true,
"kpi": 0.94
}THE BUILDING BLOCKS
Extract structured values against your output schema.
Give a model context and access to explicitly declared tools.
Let a model select among labeled destinations, with a fallback.
Validate node outputs and workflow paths before they are accepted.
Measure quality and business outcomes across nodes and complete runs.
FROM DECLARATION TO EXECUTION
Compose nodes into a Workflow or FSM. Define permitted edges and guards, execute with your project client, and inspect runs in the console. Schema validation checks structure; application policy checks whether an action should proceed.