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 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

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;

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 UTryllToolCallParams::Context;

Backend context construction. Null table inherits, except CreateContext still defaults n_outputs_max to 1. Structural. Appended after pause_timeout_ms so existing field IDs do not move.


variable ContextSize

int32 UTryllToolCallParams::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 Disposition

ETryllToolCallDisposition UTryllToolCallParams::Disposition;

End-to-end notify / pause / history policy for this node. See Tryll.ToolCallDisposition. Mutable: stamped onto ToolCallRecord at write time, so a mid-session change only affects subsequent turns.


variable Input

FTryllSlotInput UTryllToolCallParams::Input;

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


variable Mode

ETryllToolCallMode UTryllToolCallParams::Mode;

Tool-choice policy — see Tryll.ToolCallMode. Mutable: the grammar is rebuilt every turn, so a client can flip a node between (for example) RequireCall for a known-command turn and DetectOnly for free chat.


variable ModelName

FTryllModelName UTryllToolCallParams::ModelName;

variable NoToolCalledExit

FString UTryllToolCallParams::NoToolCalledExit;

Exit taken when no tool call is parsed (or, under mode=call_or_answer, when the model's residual text was emitted as a plain-text reply instead). Empty string = END. Graph exit "no_tool_called" — target node name; empty = END.


variable PauseTimeoutMs

int32 UTryllToolCallParams::PauseTimeoutMs;

Wall-clock budget for a pause this node triggers (pausing dispositions only), in milliseconds. 0 = inherit the server's workflow.tool_call_pause_timeout_ms (2000 in the shipped server-config.json; 0 there = infinite). On expiry the turn ends with TurnStatus.PauseTimedOut; there is no timeout exit on this node. Structural: resolved once against the server default at agent creation.


variable Sampling

FTryllSamplingOverrides UTryllToolCallParams::Sampling;

Sparse sampling overrides.


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;

DEPRECATED (kept for wire/config compatibility; ignored by the server). Tool-call prompting and parsing are now driven by the model's own chat template via llama.cpp common/ (see LlamaCppChatTurn), so no per-dialect format is needed. Structural so mutation is still vetoed.


variable ToolCalledExit

FString UTryllToolCallParams::ToolCalledExit;

Exit taken when one or more tool calls are parsed from the response. Empty string = END. Graph exit "tool_called" — target node name; empty = END.


variable Tools

TArray<FTryllToolDefinition> UTryllToolCallParams::Tools;

Callable tool definitions. Structural because the tool-call prompt schema and parser contract are materialised at construction.


variable bAcknowledgeTextLocalized

bool UTryllToolCallParams::bAcknowledgeTextLocalized;

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


variable bOverrideAcknowledgeText

bool UTryllToolCallParams::bOverrideAcknowledgeText;

Result text used when disposition synthesises an acknowledgement (Acknowledge / NotifyAndAcknowledge / PauseAndAcknowledge). Empty = "ok". Ignored for RouteOnly / Notify / Pause / AwaitResult. Set to true to override the inherited AcknowledgeText value.


variable bOverrideInput

bool UTryllToolCallParams::bOverrideInput;

Slot name this node consumes as its primary text. 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 bOverrideModelName

bool UTryllToolCallParams::bOverrideModelName;

Model catalog name. Empty = use the agent's default_model_name. Set to true to override the inherited ModelName value.


variable bOverrideSystemPrompt

bool UTryllToolCallParams::bOverrideSystemPrompt;

Prepended before the user turn during projection. Empty = none. Set to true to override the inherited SystemPrompt value.


variable bParallelToolCalls

bool UTryllToolCallParams::bParallelToolCalls;

Allow more than one tool call per turn where the model's chat template supports it (most formats cap at one call when false). Mutable for the same reason as mode.


variable bSystemPromptLocalized

bool UTryllToolCallParams::bSystemPromptLocalized;

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


Public Functions Documentation

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