# Variable ReasoningNodeSchema`Const`

ReasoningNodeSchema: ZodObject<
{
id: ZodString;
treeId: ZodString;
parentId: ZodNullable<ZodString>;
children: ZodArray<ZodString>;
depth: ZodNumber;
stepType: ZodEnum<
{
inference: "inference";
hypothesis: "hypothesis";
synthesis: "synthesis";
decomposition: "decomposition";
verification: "verification";
conclusion: "conclusion";
},
>;
content: ZodString;
metadata: ZodObject<
{
source: ZodOptional<ZodString>;
tokensUsed: ZodOptional<ZodNumber>;
generationTimeMs: ZodOptional<ZodNumber>;
crossReferences: ZodOptional<ZodArray<ZodString>>;
custom: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
},
$strip,
>;
state: ZodEnum<
{
error: "error";
pending: "pending";
completed: "completed";
active: "active";
pruned: "pruned";
},
>;
isActive: ZodBoolean;
activationScore: ZodNumber;
confidence: ZodNumber;
qualityScore: ZodNumber;
estimatedValue: ZodNumber;
createdAt: ZodNumber;
updatedAt: ZodNumber;
},
$strip,
> = ...

Schema for ReasoningNode validation.

- Defined in packages/nexus-agents/src/agents/reasoning/forest-node-types.ts:159