Skip to content

Class UTryllClassifyIntentLLMParams

ClassList > UTryllClassifyIntentLLMParams

More...

  • #include <TryllClassifyIntentLLMParams.h>

Inherits the following classes: UTryllNodeParamsBase

Public Attributes

Type Name
FTryllModelAdaptation Adaptation
FTryllContextOverrides Context
int32 ContextSize = 0
FString FoundExit
int32 HistoryTurns = 2
FTryllSlotInput Input
TArray< FTryllClassifyIntentEntry > Intents
FString IntentsIds_DEPRECATED
FString IntentsPrompt_DEPRECATED
float Margin = 0.15f
FTryllModelName ModelName
FString NotFoundExit
FString NotFoundIntent
ETryllNotifyClient NotifyClient = ETryllNotifyClient::Disabled
FTryllSlotName OutputName
FString SystemPrompt
FString SystemPromptTextId
float Temperature = 0.0f
float Threshold = 0.5f
bool bOverrideInput = false
bool bOverrideIntentsIds_DEPRECATED = false
bool bOverrideIntentsPrompt_DEPRECATED = false
bool bOverrideModelName = false
bool bOverrideOutputName = false
bool bSystemPromptLocalized = 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 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

Intent classification node (LLM first-token logprob over letter candidates). Scores labels via a dedicated LLM, attaches an IntentionComponent on found, and writes the decision to slot.<output_name>.

Public Attributes Documentation

variable Adaptation

FTryllModelAdaptation UTryllClassifyIntentLLMParams::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

FTryllContextOverrides UTryllClassifyIntentLLMParams::Context;

Backend context construction. Null table inherits, except CreateContext still defaults n_outputs_max to 1. Structural.


variable ContextSize

int32 UTryllClassifyIntentLLMParams::ContextSize;

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


variable FoundExit

FString UTryllClassifyIntentLLMParams::FoundExit;

Exit taken when classification produced a label above threshold/margin. Empty string = END. Graph exit "found" — target node name; empty = END.


variable HistoryTurns

int32 UTryllClassifyIntentLLMParams::HistoryTurns;

Number of dialog history turns included in the classification context.


variable Input

FTryllSlotInput UTryllClassifyIntentLLMParams::Input;

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


variable Intents

TArray<FTryllClassifyIntentEntry> UTryllClassifyIntentLLMParams::Intents;

Intent list: id + prompt pairs. Entry 0 is letter A. 2-26 unique ids, non-empty prompts. Structural because the projection scaffolding and label-token mapping are built at construction.


variable IntentsIds_DEPRECATED

FString UTryllClassifyIntentLLMParams::IntentsIds_DEPRECATED;

variable IntentsPrompt_DEPRECATED

FString UTryllClassifyIntentLLMParams::IntentsPrompt_DEPRECATED;

variable Margin

float UTryllClassifyIntentLLMParams::Margin;

Minimum margin between top and second label probabilities.


variable ModelName

FTryllModelName UTryllClassifyIntentLLMParams::ModelName;

variable NotFoundExit

FString UTryllClassifyIntentLLMParams::NotFoundExit;

Exit taken when no label cleared the threshold/margin. Empty string = END. Graph exit "not_found" — target node name; empty = END.


variable NotFoundIntent

FString UTryllClassifyIntentLLMParams::NotFoundIntent;

Sink intent. When it wins, the node exits not_found. Written to the output slot on every not_found path. One of the intent ids, the reserved "#uncertain", or empty.


variable NotifyClient

ETryllNotifyClient UTryllClassifyIntentLLMParams::NotifyClient;

When to fire OnNodeEvent("intent_llm_classified", …).


variable OutputName

FTryllSlotName UTryllClassifyIntentLLMParams::OutputName;

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


variable SystemPrompt

FString UTryllClassifyIntentLLMParams::SystemPrompt;

variable SystemPromptTextId

FString UTryllClassifyIntentLLMParams::SystemPromptTextId;

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


variable Temperature

float UTryllClassifyIntentLLMParams::Temperature;

Softmax temperature applied to scored letter probabilities before threshold/margin. 0 = 1.0 (identity). Mutable.


variable Threshold

float UTryllClassifyIntentLLMParams::Threshold;

First-token probability threshold for the winning label.


variable bOverrideInput

bool UTryllClassifyIntentLLMParams::bOverrideInput;

Slot name this node consumes as its primary text for the current turn. 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 bOverrideIntentsIds_DEPRECATED

bool UTryllClassifyIntentLLMParams::bOverrideIntentsIds_DEPRECATED;

variable bOverrideIntentsPrompt_DEPRECATED

bool UTryllClassifyIntentLLMParams::bOverrideIntentsPrompt_DEPRECATED;

variable bOverrideModelName

bool UTryllClassifyIntentLLMParams::bOverrideModelName;

Model catalog name. Structural because the token-ID mapping is built from the model's vocabulary at construction. Set to true to override the inherited ModelName value.


variable bOverrideOutputName

bool UTryllClassifyIntentLLMParams::bOverrideOutputName;

Name of the slot this node writes on every path. Empty = node name. Holds the winning intent id on found, and not_found_intent (possibly empty) on not_found. 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 bSystemPromptLocalized

bool UTryllClassifyIntentLLMParams::bSystemPromptLocalized;

Mustache template for the classifier's system message. Required: empty or unparsable templates fail agent creation and ChangeAgentParam. Must reference intents_block (the letter-prefixed list built from the resolved prompts). letters (e.g. "A, B, C") is optional — padded and triple-brace forms count. Ticked: SystemPromptTextId is resolved by the text provider and that text is sent.


Public Functions Documentation

function GetNodeType

inline virtual ETryllNodeType UTryllClassifyIntentLLMParams::GetNodeType () override const

Implements UTryllNodeParamsBase::GetNodeType


function Pack

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