Skip to content

Class UTryllToolCallParams

ClassList > UTryllToolCallParams

More...

  • #include <TryllToolCallParams.h>

Inherits the following classes: UTryllNodeParamsBase

Public Attributes

Type Name
FString AcknowledgeText
FString AcknowledgeTextTextId
FTryllModelAdaptation Adaptation
FTryllContextOverrides Context
int32 ContextSize = 0
ETryllToolCallDisposition Disposition = ETryllToolCallDisposition::Acknowledge
FTryllSlotInput Input
ETryllToolCallMode Mode = ETryllToolCallMode::CallOrAnswer
FTryllModelName ModelName
FString NoToolCalledExit
int32 PauseTimeoutMs = 0
FTryllSamplingOverrides Sampling
FString SystemPrompt
FString SystemPromptTextId
FString ToolCallFormat
FString ToolCalledExit
TArray< FTryllToolDefinition > Tools
bool bAcknowledgeTextLocalized = false
bool bOverrideAcknowledgeText = false
bool bOverrideInput = false
bool bOverrideModelName = false
bool bOverrideSystemPrompt = false
bool bParallelToolCalls = false
bool bSystemPromptLocalized = 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

LLM-driven tool-call node. Constructs a tool-call prompt, runs sampling, parses the result.

Public Attributes Documentation

variable AcknowledgeText

FString UTryllToolCallParams::AcknowledgeText;

variable AcknowledgeTextTextId

FString UTryllToolCallParams::AcknowledgeTextTextId;

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


variable Adaptation

FTryllModelAdaptation UTryllToolCallParams::Adaptation;

LoRA adapters applied to this node's model. Empty = the base model.


variable Context

FTryllContextOverrides UTryllToolCallParams::Context;

Advanced memory and batching settings for this node's model (KV cache type, GPU offload, batch sizes). Unset = inherit.


variable ContextSize

int32 UTryllToolCallParams::ContextSize;

Context window for this node, in tokens; must fit the model's trained maximum. 0 = 2048.


variable Disposition

ETryllToolCallDisposition UTryllToolCallParams::Disposition;

After a call: whether to tell the game (Notify), wait for it (Pause, AwaitResult), and record an acknowledgement in history (…Acknowledge).


variable Input

FTryllSlotInput UTryllToolCallParams::Input;

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


variable Mode

ETryllToolCallMode UTryllToolCallParams::Mode;

DetectOnly: call a tool or say nothing. CallOrAnswer: call a tool or answer in text. RequireCall: must call a tool.


variable ModelName

FTryllModelName UTryllToolCallParams::ModelName;

variable NoToolCalledExit

FString UTryllToolCallParams::NoToolCalledExit;

Node to run when no tool is called (under CallOrAnswer, after the text answer). Empty = end the turn. Graph exit "no_tool_called" — target node name; empty = END.


variable PauseTimeoutMs

int32 UTryllToolCallParams::PauseTimeoutMs;

How long a pausing Disposition waits for the game, in ms. 0 = the server default (wait forever in released builds). On timeout the turn ends.


variable Sampling

FTryllSamplingOverrides UTryllToolCallParams::Sampling;

Overrides for the model's sampling settings (temperature, top-p, max tokens…). Unset values keep the model's own.


variable SystemPrompt

FString UTryllToolCallParams::SystemPrompt;

variable SystemPromptTextId

FString UTryllToolCallParams::SystemPromptTextId;

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


variable ToolCallFormat

FString UTryllToolCallParams::ToolCallFormat;

Not used. Kept so older workflows still load.


variable ToolCalledExit

FString UTryllToolCallParams::ToolCalledExit;

Node to run when the model calls a tool. Empty = end the turn. Graph exit "tool_called" — target node name; empty = END.


variable Tools

TArray<FTryllToolDefinition> UTryllToolCallParams::Tools;

Tools the model may call, each with a name, description and parameters. The game carries out the call; the server only detects it.


variable bAcknowledgeTextLocalized

bool UTryllToolCallParams::bAcknowledgeTextLocalized;

Ticked: AcknowledgeTextTextId is resolved by the text provider and that text is sent.


variable bOverrideAcknowledgeText

bool UTryllToolCallParams::bOverrideAcknowledgeText;

Tool result recorded in history by the …Acknowledge dispositions. Empty = "ok". Set to true to override the inherited AcknowledgeText value.


variable bOverrideInput

bool UTryllToolCallParams::bOverrideInput;

Text the model reads to decide on a tool call: 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

bool UTryllToolCallParams::bOverrideModelName;

Language model this node runs. Empty = the workflow's Default Model Name. Set to true to override the inherited ModelName value.


variable bOverrideSystemPrompt

bool UTryllToolCallParams::bOverrideSystemPrompt;

System message the model reads before the dialog. Empty = none. Set to true to override the inherited SystemPrompt value.


variable bParallelToolCalls

bool UTryllToolCallParams::bParallelToolCalls;

Allow several tool calls in one turn, if the model's chat template supports it.


variable bSystemPromptLocalized

bool UTryllToolCallParams::bSystemPromptLocalized;

Ticked: SystemPromptTextId is resolved by the text provider and that text is sent.


Public Functions Documentation

function GetDocsUrl

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

Implements UTryllNodeParamsBase::GetNodeType


function Pack

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