Skip to main content

RewardNodeSpec

Specification for a reward-expression node type (RL Release 2 SP2). The reward tree is the value of RLBuilderConfigInput.reward — a closed, whitelisted numeric vocabulary codegen'd into MyRLEnv.calculate_reward. The FE RewardExpressionEditor renders its palette from these specs (ADR-0066), never hardcoded.

type RewardNodeSpec {
nodeType: String!
description: String!
fieldsSchema: String!
}

Fields

RewardNodeSpec.nodeType ● String! non-null scalar

Node type name (e.g. "CONST", "OPERAND", "ADD", "IF", "CLAMP")

RewardNodeSpec.description ● String! non-null scalar

What this node does

RewardNodeSpec.fieldsSchema ● String! non-null scalar

JSON schema of the fields required on this node type

Member Of

UIBuilderReference object