Class UTryllGenerateAndSpeakParams¶
ClassList > UTryllGenerateAndSpeakParams
#include <TryllGenerateAndSpeakParams.h>
Inherits the following classes: UTryllNodeParamsBase
Public Attributes¶
| Type | Name |
|---|---|
| FTryllModelAdaptation | Adaptation |
| FTryllContextOverrides | Context |
| int32 | ContextSize = 0 |
| FString | DefaultExit |
| int32 | FirstChunkMaxChars = 0 |
| FString | Grammar |
| ETryllHistoryRole | HistoryRole = ETryllHistoryRole::Assistant |
| FTryllSlotInput | Input |
| int32 | MinSentenceChars = 12 |
| FTryllModelName | ModelName |
| FTryllOutputFilterOverrides | OutputFilter |
| FTryllSlotName | OutputName |
| ETryllPlacement | Placement = ETryllPlacement::BeforeUserAsSystem |
| FTryllSamplingOverrides | Sampling |
| FString | SystemPrompt |
| FString | SystemPromptTextId |
| FString | Template |
| FString | TemplateTextId |
| bool | bOverrideGrammar = false |
| bool | bOverrideInput = false |
| bool | bOverrideModelName = false |
| bool | bOverrideOutputName = false |
| bool | bOverrideSystemPrompt = false |
| bool | bOverrideTemplate = false |
| bool | bSubstituteAgentVariables = false |
| bool | bSystemPromptLocalized = false |
| bool | bTemplateLocalized = false |
Public Functions¶
| Type | Name |
|---|---|
| virtual FString | GetDocsUrl () override const |
| virtual ETryllNodeType | GetNodeType () override const |
| virtual bool | IsTtsConsumer () override const |
| virtual flatbuffers::Offset< void > | Pack (flatbuffers::FlatBufferBuilder & Fbb, Tryll::NodeParams::NodeParams & OutType) override const |
Public Functions inherited from 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¶
| 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¶
LLM-driven text generation + streaming TTS synthesis in a single fused node. Streams LLM tokens, segments them into sentences, synthesizes each sentence on a dedicated TTS strand, and emits PCM frames via OnTtsAudio callbacks. The voice (model, speaker, delivery mode, visemes) belongs to the agent: CreateAgentRequest.voice. Agent creation fails without one (3025).
Public Attributes Documentation¶
variable Adaptation¶
LoRA adapters applied to this node's model. Empty = the base model.
variable Context¶
Advanced memory and batching settings for this node's model (KV cache type, GPU offload, batch sizes). Unset = inherit.
variable ContextSize¶
Context window for this node, in tokens; must fit the model's trained maximum. 0 = the model's own size, else the server default.
variable DefaultExit¶
Node to run after the answer is generated and spoken. Empty = end the turn. Graph exit "default" — target node name; empty = END.
variable FirstChunkMaxChars¶
Lets the first chunk end early, at a comma, dash or space once it is this long, so speech starts sooner. 0 = off; try 48.
variable Grammar¶
variable HistoryRole¶
Whether later turns remember this answer as an assistant message. None = forgotten after this turn.
variable Input¶
Upstream inter-node slot this field consumes. Empty = context default.
variable MinSentenceChars¶
Minimum length of a spoken chunk before a sentence end cuts it (CJK characters count double). Lower = speech starts sooner, more TTS calls.
variable ModelName¶
variable OutputFilter¶
Removes roleplay artifacts before they are spoken: "Bob:" prefixes, actions, (asides), [notes]. All off by default.
variable OutputName¶
Effective output slot name for this node. Empty = the node's own name.
variable Placement¶
Where Template goes: before or after the Input, as a system or a user message.
variable Sampling¶
Overrides for the model's sampling settings (temperature, top-p, max tokens…). Unset values keep the model's own.
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 bOverrideGrammar¶
GBNF grammar the spoken answer must follow; needs a root rule. Empty = free text. Use it to limit speech to a fixed set of lines. Set to true to override the inherited Grammar value.
variable bOverrideInput¶
Text this node answers: the player's message or an earlier node's output. Empty = the player's message. Set to true to override the inherited Input value.
variable bOverrideModelName¶
Language model this node runs. Empty = the workflow's Default Model Name. Set to true to override the inherited ModelName value.
variable bOverrideOutputName¶
Name later nodes use to read this node's answer (in their Input, or as the slot.<name> tag). Empty = this node's name. Set to true to override the inherited OutputName value.
variable bOverrideSystemPrompt¶
System message the model reads before the dialog. Empty = none. Set to true to override the inherited SystemPrompt value.
variable bOverrideTemplate¶
Mustache text added next to the Input (where: see Placement), for example the slot.<name> tag or retrieved knowledge. Empty = none. Set to true to override the inherited Template value.
variable bSubstituteAgentVariables¶
Replace NAME markers in the answer with the values of agent variables that allow output substitution. Not case-sensitive.
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 GetDocsUrl¶
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¶
Implements UTryllNodeParamsBase::GetNodeType
function IsTtsConsumer¶
True when this node speaks through the agent's voice (Speak, GenerateAndSpeak). A graph with such a node needs a voice profile. From the schema's (tts_consumer).
Implements UTryllNodeParamsBase::IsTtsConsumer
function Pack¶
virtual flatbuffers::Offset< void > UTryllGenerateAndSpeakParams::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/TryllGenerateAndSpeakParams.h