Skip to content

Class UTryllGenerateParams

ClassList > UTryllGenerateParams

More...

  • #include <TryllGenerateParams.h>

Inherits the following classes: UTryllNodeParamsBase

Public Attributes

Type Name
int32 ContextSize = 0
FString DefaultExit
FString Grammar
ETryllHistoryRole HistoryRole = ETryllHistoryRole::Assistant
FTryllSlotInput Input
FTryllModelName ModelName
FTryllOutputFilterOverrides OutputFilter
FTryllSlotName OutputName
ETryllPlacement Placement = ETryllPlacement::BeforeUserAsSystem
FTryllSamplingOverrides Sampling
ETryllSendAnswer Send = ETryllSendAnswer::Streamed
FString SystemPrompt
FString Template
bool bOverrideGrammar = false
bool bOverrideInput = false
bool bOverrideModelName = false
bool bOverrideOutputName = false
bool bOverrideSystemPrompt = false
bool bOverrideTemplate = false
bool bSubstituteAgentVariables = false

Public Functions

Type Name
virtual ETryllNodeType GetNodeType () override const
virtual flatbuffers::Offset< void > Pack (flatbuffers::FlatBufferBuilder & Fbb, Tryll::NodeParams::NodeParams & OutType) override const

Public Functions inherited from UTryllNodeParamsBase

See UTryllNodeParamsBase

Type Name
virtual TArray< FString > GetExitTargetOptions () const
virtual ETryllNodeType GetNodeType () const
FString GetOwnerNodeName () const
virtual flatbuffers::Offset< void > Pack (flatbuffers::FlatBufferBuilder & Fbb, ::Tryll::NodeParams::NodeParams & OutType) const
ETryllNodeType return static_cast (0)

Public Static Functions inherited from UTryllNodeParamsBase

See UTryllNodeParamsBase

Type Name
const FTryllGraphDescription * FindEnclosingGraph (const UObject * Obj)

Detailed Description

LLM-driven text generation node. Renders a Mustache template, runs sampling, produces a streamed AnswerText.

Public Attributes Documentation

variable ContextSize

int32 UTryllGenerateParams::ContextSize;

KV-cache / context window (n_ctx) for this node in tokens. 0 = fall back to the model variant's context_size, else the server default_n_ctx. Validated against the model's trained maximum at agent creation.


variable DefaultExit

FString UTryllGenerateParams::DefaultExit;

Default exit target — routes here after generation completes. Empty string = END (turn finishes). Graph exit "default" — target node name; empty = END.


variable Grammar

FString UTryllGenerateParams::Grammar;

variable HistoryRole

ETryllHistoryRole UTryllGenerateParams::HistoryRole;

Controls whether/how this node's slot replays in later turns' projected transcript.


variable Input

FTryllSlotInput UTryllGenerateParams::Input;

Upstream inter-node slot this field consumes. Empty = context default.


variable ModelName

FTryllModelName UTryllGenerateParams::ModelName;

variable OutputFilter

FTryllOutputFilterOverrides UTryllGenerateParams::OutputFilter;

Opt-in bounded artifact cleanup applied to streamed LLM output before variable substitution, slot/history write, wire delivery, and any downstream consumers. Missing/null = all flags off (defaults). Appended after substitute_agent_variables for additive field ids.


variable OutputName

FTryllSlotName UTryllGenerateParams::OutputName;

Effective output slot name for this node. Empty = the node's own name.


variable Placement

ETryllPlacement UTryllGenerateParams::Placement;

Where the rendered template body is placed relative to the resolved input.


variable Sampling

FTryllSamplingOverrides UTryllGenerateParams::Sampling;

Sparse sampling overrides applied on top of the model-catalog defaults. Sub-table change fires OnSamplingChanged, which re-resolves overrides against the cached model-default sampling.


variable Send

ETryllSendAnswer UTryllGenerateParams::Send;

Controls answer-text delivery to the client. Replaces the old stream: bool.


variable SystemPrompt

FString UTryllGenerateParams::SystemPrompt;

variable Template

FString UTryllGenerateParams::Template;

variable bOverrideGrammar

bool UTryllGenerateParams::bOverrideGrammar;

Optional GBNF grammar. When non-empty, output is constrained to this grammar at every decode step (malformed output is unsampleable). Empty = unconstrained. Must contain a root rule. Mutable — rebuilt per turn, so a client can flip the node between a strict "command turn" and free chat via ChangeAgentParam. Validated at agent creation (invalid → agent-create failure) and on mutation (invalid → InvalidParamValue 3007). Set to true to override the inherited Grammar value.


variable bOverrideInput

bool UTryllGenerateParams::bOverrideInput;

Slot name this node consumes as its primary text (the "user turn" of the projected prompt). Empty = "user_message". Structural: immutable after creation — rebinding would re-wire the slot dataflow that is validated once at agent creation. Set to true to override the inherited Input value.


variable bOverrideModelName

bool UTryllGenerateParams::bOverrideModelName;

Model catalog name. Empty = use the agent's default_model_name. Set to true to override the inherited ModelName value.


variable bOverrideOutputName

bool UTryllGenerateParams::bOverrideOutputName;

Name this node's output slot is stored under. Empty = the node's own name. Structural: immutable after creation — renaming would re-wire the slot dataflow that is validated once at agent creation. Set to true to override the inherited OutputName value.


variable bOverrideSystemPrompt

bool UTryllGenerateParams::bOverrideSystemPrompt;

Prepended before the user turn during projection. Set to true to override the inherited SystemPrompt value.


variable bOverrideTemplate

bool UTryllGenerateParams::bOverrideTemplate;

Mustache template applied to the user-area message at projection time. Set to true to override the inherited Template value.


variable bSubstituteAgentVariables

bool UTryllGenerateParams::bSubstituteAgentVariables;

When true, replace __VARIABLE__ markers in streamed LLM output with the rendered values of agent variables that declared allow_output_substitution. Matching is ASCII case-insensitive. Default false. Transformed text is authoritative for the slot, wire answer, history, and any downstream consumers. Appended after default_exit to keep FlatBuffers field ids additive.


Public Functions Documentation

function GetNodeType

inline virtual ETryllNodeType UTryllGenerateParams::GetNodeType () override const

Implements UTryllNodeParamsBase::GetNodeType


function Pack

virtual flatbuffers::Offset< void > UTryllGenerateParams::Pack (
    flatbuffers::FlatBufferBuilder & Fbb,
    Tryll::NodeParams::NodeParams & OutType
) override const

Implements UTryllNodeParamsBase::Pack



The documentation for this class was generated from the following file C:/_tryll/_monorepo3/tryll/clients/unreal/Source/TryllClient/Public/Generated/Nodes/TryllGenerateParams.h