Class UTryllSummarizeParams¶
ClassList > UTryllSummarizeParams
#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 ETryllNodeType | GetNodeType () override const |
| virtual flatbuffers::Offset< void > | Pack (flatbuffers::FlatBufferBuilder & Fbb, Tryll::NodeParams::NodeParams & OutType) override const |
Public Functions inherited from UTryllNodeParamsBase¶
| Type | Name |
|---|---|
| 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¶
| Type | Name |
|---|---|
| const FTryllGraphDescription * | FindEnclosingGraph (const UObject * Obj) |
Protected Functions inherited from 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¶
Changes how the model behaves for this node (LoRA adapters; later control vectors). Null = base model. Structural: applied to the llama context at creation, so a change means a new context. Appended last so existing field IDs do not move.
variable Context¶
Backend context construction (n_batch / n_ubatch / kv_cache_type / offload_kqv). Null table inherits; n_outputs_max is always forced to 1.
variable ContextSize¶
KV-cache / context window (n_ctx) for this node's own context, in tokens. 0 = 2048 (the node-type default). Validated against the model's trained maximum at agent creation.
variable DefaultExit¶
Default exit target — routed after the node runs, whether or not it folded. Empty string = END (turn finishes). Graph exit "default" — target node name; empty = END.
variable KeepRecentTurns¶
Most recent interactions never folded — they always replay verbatim. The summary is always strictly behind this hot window. Capped at 512.
variable MaxSummaryTokens¶
Hard cap on the generated summary (applied as the sampling max_tokens). Must leave at least 64 tokens in context_size for prompt framing.
variable ModelName¶
variable Sampling¶
Sparse sampling overrides applied on top of the model-catalog defaults.
variable SystemPrompt¶
variable SystemPromptTextId¶
Text ID in the workflow text table. The provider's text is what is sent.
variable Template¶
variable TemplateTextId¶
Text ID in the workflow text table. The provider's text is what is sent.
variable TriggerTokens¶
Fold when the not-yet-folded history reaches this many tokens. <= 0 disables this trigger. Set it below the consuming node's trim threshold so a fold always happens before trimming would.
variable TriggerTurns¶
Fold every N completed interactions since the last fold. <= 0 disables this trigger. With both triggers disabled the node no-ops.
variable bNotifyClient¶
When true, fire OnNodeEvent("summarized", …) after a fold.
variable bOverrideModelName¶
Language model used for summarization. Empty = the agent's default_model_name. The node always runs under its own instruction-only system prompt, never a character persona; point this at a plain instruct model when the character itself runs on roleplay-fine-tuned weights. Set to true to override the inherited ModelName value.
variable bOverrideSystemPrompt¶
Instruction-only system prompt for the summarizer. Empty = the built-in default (third person, named speakers, merge-and-shorten, no speculation). Set to true to override the inherited SystemPrompt value.
variable bOverrideTemplate¶
Mustache body rendered as the summarizer's user turn. Context: previous_summary (absent when there is none), turns (iterable of {index, user, assistant}); assistant joins every assistant-history slot in that interaction in execution order, max_summary_tokens, and the session locale keys (language, …). Empty = the built-in default. Set to true to override the inherited Template value.
variable bRunInline¶
true = fold inside the turn that triggered it (deterministic, costs that turn the summarizer latency). false is reserved for background folding and is rejected until background state publication is implemented.
variable bSystemPromptLocalized¶
Ticked: SystemPromptTextId is resolved by the text provider and that text is sent.
variable bTemplateLocalized¶
Ticked: TemplateTextId is resolved by the text provider and that text is sent.
Public Functions Documentation¶
function GetNodeType¶
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