Skip to content

Class UTryllSummarizeParams

ClassList > UTryllSummarizeParams

More...

  • #include <TryllSummarizeParams.h>

Inherits the following classes: UTryllNodeParamsBase

Public Attributes

Type Name
FTryllModelAdaptation Adaptation
FTryllContextOverrides Context
int32 ContextSize = 0
FString DefaultExit
int32 KeepRecentTurns = 3
int32 MaxSummaryTokens = 256
FTryllModelName ModelName
FTryllSamplingOverrides Sampling
FString SystemPrompt
FString SystemPromptTextId
FString Template
FString TemplateTextId
int32 TriggerTokens = 1024
int32 TriggerTurns = 0
bool bNotifyClient = false
bool bOverrideModelName = false
bool bOverrideSystemPrompt = false
bool bOverrideTemplate = false
bool bRunInline = true
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

Rolling conversation summary. Every time the history since the last fold crosses a trigger, this node compresses the older interactions (everything outside keep_recent_turns) into a SummaryComponent. Generate-class projection then renders that summary at the end of its system message and replays history only from covered_through + 1, so a long dialogue stays coherent at a fixed token cost instead of being trimmed away. Place it last in the graph, after the node that produced the player-facing reply.

Public Attributes Documentation

variable Adaptation

FTryllModelAdaptation UTryllSummarizeParams::Adaptation;

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


variable Context

FTryllContextOverrides UTryllSummarizeParams::Context;

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


variable ContextSize

int32 UTryllSummarizeParams::ContextSize;

Context window for this node, in tokens; must fit the model's trained maximum. 0 = 2048.


variable DefaultExit

FString UTryllSummarizeParams::DefaultExit;

Node to run next, whether or not a summary was written. Empty = end the turn. Graph exit "default" — target node name; empty = END.


variable KeepRecentTurns

int32 UTryllSummarizeParams::KeepRecentTurns;

Latest turns never summarized; they are always replayed word for word. Max 512.


variable MaxSummaryTokens

int32 UTryllSummarizeParams::MaxSummaryTokens;

Longest summary, in tokens. Must leave at least 64 tokens of Context Size free.


variable ModelName

FTryllModelName UTryllSummarizeParams::ModelName;

variable Sampling

FTryllSamplingOverrides UTryllSummarizeParams::Sampling;

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


variable SystemPrompt

FString UTryllSummarizeParams::SystemPrompt;

variable SystemPromptTextId

FString UTryllSummarizeParams::SystemPromptTextId;

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


variable Template

FString UTryllSummarizeParams::Template;

variable TemplateTextId

FString UTryllSummarizeParams::TemplateTextId;

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


variable TriggerTokens

int32 UTryllSummarizeParams::TriggerTokens;

Summarize when unsummarized history reaches this many tokens. Keep it below the point where the reply node trims history. 0 = off.


variable TriggerTurns

int32 UTryllSummarizeParams::TriggerTurns;

Summarize every N turns. 0 = off. With both triggers off, the node does nothing.


variable bNotifyClient

bool UTryllSummarizeParams::bNotifyClient;

Send the game a summarized event after each summary.


variable bOverrideModelName

bool UTryllSummarizeParams::bOverrideModelName;

Language model that writes the summaries. Empty = the workflow's Default Model Name. Prefer a plain instruct model over a roleplay fine-tune. Set to true to override the inherited ModelName value.


variable bOverrideSystemPrompt

bool UTryllSummarizeParams::bOverrideSystemPrompt;

Instructions for the summarizer. Empty = the built-in default (third person, named speakers, no speculation). Set to true to override the inherited SystemPrompt value.


variable bOverrideTemplate

bool UTryllSummarizeParams::bOverrideTemplate;

Request sent to the summarizer. Can use the tags previous_summary, #turns (index, user, assistant) and max_summary_tokens. Empty = built-in. Set to true to override the inherited Template value.


variable bRunInline

bool UTryllSummarizeParams::bRunInline;

Must stay on: summarize inside the turn that triggered it, which adds the summary time to that turn. Background mode is not available yet.


variable bSystemPromptLocalized

bool UTryllSummarizeParams::bSystemPromptLocalized;

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


variable bTemplateLocalized

bool UTryllSummarizeParams::bTemplateLocalized;

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


Public Functions Documentation

function GetDocsUrl

inline virtual FString UTryllSummarizeParams::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 UTryllSummarizeParams::GetNodeType () override const

Implements UTryllNodeParamsBase::GetNodeType


function Pack

virtual flatbuffers::Offset< void > UTryllSummarizeParams::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/TryllSummarizeParams.h