Skip to content

Class UTryllGenerateParams

ClassList > UTryllGenerateParams

More...

  • #include <TryllGenerateParams.h>

Inherits the following classes: UTryllNodeParamsBase

Public Attributes

Type Name
FTryllModelAdaptation Adaptation
FTryllContextOverrides Context
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 SystemPromptTextId
FString Template
FString TemplateTextId
bool bOverrideGrammar = false
bool bOverrideInput = false
bool bOverrideModelName = false
bool bOverrideOutputName = false
bool bOverrideSystemPrompt = false
bool bOverrideTemplate = false
bool bSubstituteAgentVariables = false
bool bSystemPromptLocalized = false
bool bTemplateLocalized = false

Public Functions

Type Name
virtual FString GetDocsUrl () override const
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 FString GetDocsUrl () const
virtual TArray< FString > GetExitTargetOptions () const
virtual ETryllNodeType GetNodeType () const
FString GetOwnerNodeName () const
virtual bool IsTtsConsumer () const
virtual flatbuffers::Offset< void > Pack (flatbuffers::FlatBufferBuilder & Fbb, ::Tryll::NodeParams::NodeParams & OutType) const
virtual void PostLoad () override
virtual void Serialize (FArchive & Ar) override
ETryllNodeType return static_cast (0)

Public Static Functions inherited from UTryllNodeParamsBase

See UTryllNodeParamsBase

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

Protected Functions inherited from UTryllNodeParamsBase

See UTryllNodeParamsBase

Type Name
virtual void ApplyOldDefaults (int32 SavedVersion)
virtual bool UpgradeFrom (int32 SavedVersion)

Detailed Description

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

Public Attributes Documentation

variable Adaptation

FTryllModelAdaptation UTryllGenerateParams::Adaptation;

LoRA adapters applied to this node's model. Empty = the base model.


variable Context

FTryllContextOverrides UTryllGenerateParams::Context;

Advanced memory and batching settings for this node's model (KV cache type, GPU offload, batch sizes). Unset = inherit.


variable ContextSize

int32 UTryllGenerateParams::ContextSize;

Context window for this node, in tokens; must fit the model's trained maximum. 0 = the model's own size, else the server default.


variable DefaultExit

FString UTryllGenerateParams::DefaultExit;

Node to run after the answer is generated. Empty = end the turn. Graph exit "default" — target node name; empty = END.


variable Grammar

FString UTryllGenerateParams::Grammar;

variable HistoryRole

ETryllHistoryRole UTryllGenerateParams::HistoryRole;

Whether later turns remember this answer as an assistant message. None = forgotten after this turn.


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;

Removes roleplay artifacts from the answer: "Bob:" prefixes, actions, (asides), [notes]. All off by default.


variable OutputName

FTryllSlotName UTryllGenerateParams::OutputName;

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


variable Placement

ETryllPlacement UTryllGenerateParams::Placement;

Where Template goes: before or after the Input, as a system or a user message.


variable Sampling

FTryllSamplingOverrides UTryllGenerateParams::Sampling;

Overrides for the model's sampling settings (temperature, top-p, max tokens…). Unset values keep the model's own.


variable Send

ETryllSendAnswer UTryllGenerateParams::Send;

How the answer reaches the game: Streamed (token by token), Whole (once, at the end), or None (kept for later nodes only).


variable SystemPrompt

FString UTryllGenerateParams::SystemPrompt;

variable SystemPromptTextId

FString UTryllGenerateParams::SystemPromptTextId;

Text ID in the workflow text table. The provider's text is what is sent.


variable Template

FString UTryllGenerateParams::Template;

variable TemplateTextId

FString UTryllGenerateParams::TemplateTextId;

Text ID in the workflow text table. The provider's text is what is sent.


variable bOverrideGrammar

bool UTryllGenerateParams::bOverrideGrammar;

GBNF grammar the answer must follow; needs a root rule. Empty = free text. Use it to force a format, such as JSON or a fixed set of lines. Set to true to override the inherited Grammar value.


variable bOverrideInput

bool UTryllGenerateParams::bOverrideInput;

Text this node answers: the player's message or an earlier node's output. Empty = the player's message. Set to true to override the inherited Input value.


variable bOverrideModelName

bool UTryllGenerateParams::bOverrideModelName;

Language model this node runs. Empty = the workflow's Default Model Name. Set to true to override the inherited ModelName value.


variable bOverrideOutputName

bool UTryllGenerateParams::bOverrideOutputName;

Name later nodes use to read this node's answer (in their Input, or as the slot.<name> tag). Empty = this node's name. Set to true to override the inherited OutputName value.


variable bOverrideSystemPrompt

bool UTryllGenerateParams::bOverrideSystemPrompt;

System message the model reads before the dialog. Empty = none. Set to true to override the inherited SystemPrompt value.


variable bOverrideTemplate

bool UTryllGenerateParams::bOverrideTemplate;

Mustache text added next to the Input (where: see Placement), for example the slot.<name> tag or retrieved knowledge. Empty = none. Set to true to override the inherited Template value.


variable bSubstituteAgentVariables

bool UTryllGenerateParams::bSubstituteAgentVariables;

Replace NAME markers in the answer with the values of agent variables that allow output substitution. Not case-sensitive.


variable bSystemPromptLocalized

bool UTryllGenerateParams::bSystemPromptLocalized;

Ticked: SystemPromptTextId is resolved by the text provider and that text is sent.


variable bTemplateLocalized

bool UTryllGenerateParams::bTemplateLocalized;

Ticked: TemplateTextId is resolved by the text provider and that text is sent.


Public Functions Documentation

function GetDocsUrl

inline virtual FString UTryllGenerateParams::GetDocsUrl () override const

Reference page of this node type on docs.tryllengine.com, opened by the editor's help button. Empty for test-only node types, which have no page.

Implements UTryllNodeParamsBase::GetDocsUrl


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