Class UTryllClassifyIntentLLMParams¶
ClassList > UTryllClassifyIntentLLMParams
#include <TryllClassifyIntentLLMParams.h>
Inherits the following classes: UTryllNodeParamsBase
Public Attributes¶
| Type | Name |
|---|---|
| FTryllContextOverrides | Context |
| int32 | ContextSize = 0 |
| FString | FoundExit |
| int32 | HistoryTurns = 2 |
| FTryllSlotInput | Input |
| FString | IntentsIds |
| FString | IntentsPrompt |
| float | Margin = 0.15f |
| FTryllModelName | ModelName |
| FString | NotFoundExit |
| FString | NotFoundIntent |
| ETryllNotifyClient | NotifyClient = ETryllNotifyClient::Disabled |
| FString | SystemPrompt |
| float | Threshold = 0.5f |
| bool | bOverrideInput = false |
| bool | bOverrideIntentsIds = false |
| bool | bOverrideIntentsPrompt = false |
| bool | bOverrideModelName = false |
| bool | bOverrideNotFoundIntent = false |
| bool | bOverrideSystemPrompt = 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 flatbuffers::Offset< void > | Pack (flatbuffers::FlatBufferBuilder & Fbb, ::Tryll::NodeParams::NodeParams & OutType) const |
| ETryllNodeType return | static_cast (0) |
Public Static Functions inherited from UTryllNodeParamsBase¶
| Type | Name |
|---|---|
| const FTryllGraphDescription * | FindEnclosingGraph (const UObject * Obj) |
Detailed Description¶
Intent classification node (LLM first-token logprob over letter candidates). Scores labels via a dedicated LLM and attaches an IntentionComponent.
Public Attributes Documentation¶
variable Context¶
Backend context construction. Null table inherits, except CreateContext still defaults n_outputs_max to 1. Structural. Appended after not_found_exit so existing field IDs do not move.
variable 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¶
Exit taken when classification produced a label above threshold/margin. Empty string = END. Graph exit "found" — target node name; empty = END.
variable HistoryTurns¶
Number of dialog history turns included in the classification context.
variable Input¶
Upstream inter-node slot this field consumes. Empty = context default.
variable IntentsIds¶
variable IntentsPrompt¶
variable Margin¶
Minimum margin between top and second label probabilities.
variable ModelName¶
variable NotFoundExit¶
Exit taken when no label cleared the threshold/margin. Empty string = END. Graph exit "not_found" — target node name; empty = END.
variable NotFoundIntent¶
variable NotifyClient¶
When to fire OnNodeEvent("intent_llm_classified", …).
variable SystemPrompt¶
variable Threshold¶
First-token probability threshold for the winning label.
variable 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¶
Comma-separated intent IDs (e.g. "greet,farewell,other"). Never shown to the model — this is the label attached on a win, for downstream routing. Paired positionally with intents_prompt: entry 0 is letter A, entry 1 is B. 2-26 unique entries. Structural because label-to-token-ID mapping is built at construction. Set to true to override the inherited IntentsIds value.
variable bOverrideIntentsPrompt¶
Comma-separated intent descriptions — the text the model actually reads, rendered into the system prompt as "A. <first>", "B. <second>", … Must have the same entry count as intents_ids. Commas cannot be escaped: use dashes or semicolons inside a description. Structural because the projection scaffolding and label-token mapping are built at construction. Set to true to override the inherited IntentsPrompt value.
variable 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 bOverrideNotFoundIntent¶
Intent ID returned when no label clears the threshold/margin. Set to true to override the inherited NotFoundIntent value.
variable bOverrideSystemPrompt¶
Mustache template for the classifier's system message. Two variables are available: intents_block (the letter-prefixed list built from intents_prompt) and letters (e.g. "A, B, C"). There is NO built-in default: an empty value sends an empty system message, so the model is asked for a letter without ever seeing the labels. Always author a template that includes the intents_block Mustache variable. Set to true to override the inherited SystemPrompt value.
Public Functions Documentation¶
function GetNodeType¶
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