Skip to content

Class UTryllCannedResponseParams

ClassList > UTryllCannedResponseParams

More...

  • #include <TryllCannedResponseParams.h>

Inherits the following classes: UTryllNodeParamsBase

Public Attributes

Type Name
FString DefaultExit
ETryllHistoryRole HistoryRole = ETryllHistoryRole::Assistant
TArray< FString > InlineStrings_DEPRECATED
TArray< FTryllLocalizableText > Lines
FTryllSlotName OutputName
ETryllCannedResponseSelectionStrategy SelectionStrategy = ETryllCannedResponseSelectionStrategy::RoundRobin
ETryllSendAnswer Send = ETryllSendAnswer::Whole
FTryllStoragePath StringStorage
bool bOverrideOutputName = 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

Canned-response node backed by session string storage. Resolution priority (factory): named string_storage → lines → server-wide default (default-canned-responses.txt from server-config).

Public Attributes Documentation

variable DefaultExit

FString UTryllCannedResponseParams::DefaultExit;

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


variable HistoryRole

ETryllHistoryRole UTryllCannedResponseParams::HistoryRole;

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


variable InlineStrings_DEPRECATED

TArray<FString> UTryllCannedResponseParams::InlineStrings_DEPRECATED;

variable Lines

TArray<FTryllLocalizableText> UTryllCannedResponseParams::Lines;

Responses typed here; used when String Storage is empty.


variable OutputName

FTryllSlotName UTryllCannedResponseParams::OutputName;

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


variable SelectionStrategy

ETryllCannedResponseSelectionStrategy UTryllCannedResponseParams::SelectionStrategy;

Which response comes next: Random, First (always the first), or RoundRobin (each in turn).


variable Send

ETryllSendAnswer UTryllCannedResponseParams::Send;

How the response reaches the game: Whole (in one piece), Streamed, or None (kept for later nodes only).


variable StringStorage

FTryllStoragePath UTryllCannedResponseParams::StringStorage;

File of responses, one per line. Used instead of Lines. Both empty = the server's default responses.


variable bOverrideOutputName

bool UTryllCannedResponseParams::bOverrideOutputName;

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


Public Functions Documentation

function GetDocsUrl

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

Implements UTryllNodeParamsBase::GetNodeType


function Pack

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