Skip to content

Class Tryll::Client::GraphDescriptionNodeMethods

ClassList > Tryll > Client > GraphDescriptionNodeMethods

More...

  • #include <GraphDescription.Nodes.gen.h>

Public Functions

Type Name
GraphDescriptionNodeMethods & AddBranch (std::string name, ::Tryll::NodeParams::BranchParamsT params)
GraphDescriptionNodeMethods & AddCannedResponse (std::string name, ::Tryll::NodeParams::CannedResponseParamsT params)
GraphDescriptionNodeMethods & AddClassifyIntent (std::string name, ::Tryll::NodeParams::ClassifyIntentParamsT params)
GraphDescriptionNodeMethods & AddClassifyIntentLLM (std::string name, ::Tryll::NodeParams::ClassifyIntentLLMParamsT params)
GraphDescriptionNodeMethods & AddGenerate (std::string name, ::Tryll::NodeParams::GenerateParamsT params)
GraphDescriptionNodeMethods & AddGenerateAndSpeak (std::string name, ::Tryll::NodeParams::GenerateAndSpeakParamsT params)
GraphDescriptionNodeMethods & AddInstruction (std::string name, ::Tryll::NodeParams::InstructionParamsT params)
GraphDescriptionNodeMethods & AddIntentToInstruction (std::string name, ::Tryll::NodeParams::IntentToInstructionParamsT params)
GraphDescriptionNodeMethods & AddPause (std::string name, ::Tryll::NodeParams::PauseParamsT params)
GraphDescriptionNodeMethods & AddRegexGuardrail (std::string name, ::Tryll::NodeParams::RegexGuardrailParamsT params)
GraphDescriptionNodeMethods & AddRetrieve (std::string name, ::Tryll::NodeParams::RetrieveParamsT params)
GraphDescriptionNodeMethods & AddSpeak (std::string name, ::Tryll::NodeParams::SpeakParamsT params)
GraphDescriptionNodeMethods & AddToolCall (std::string name, ::Tryll::NodeParams::ToolCallParamsT params)
GraphDescriptionNodeMethods & AddTransform (std::string name, ::Tryll::NodeParams::TransformParamsT params)

Detailed Description

Typed AddX methods generated from the NodeParams union. Mixed into GraphDescription via inheritance or friend-include.

Public Functions Documentation

function AddBranch

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddBranch (
    std::string name,
    ::Tryll::NodeParams::BranchParamsT params
) 

Add a Branch node. Conditional routing node. Evaluates a test against a turn-local slot or an agent variable and takes then_exit or else_exit. Reader-only: no model, no slot write, no wire emission.


function AddCannedResponse

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddCannedResponse (
    std::string name,
    ::Tryll::NodeParams::CannedResponseParamsT params
) 

Add a CannedResponse node. Canned-response node backed by session string storage. Resolution priority (factory): named string_storage → inline_strings → server-wide default (default-canned-responses.txt from server-config).


function AddClassifyIntent

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddClassifyIntent (
    std::string name,
    ::Tryll::NodeParams::ClassifyIntentParamsT params
) 

Add a ClassifyIntent node. Intent classification node (embedding-based, top-1 nearest-neighbour). Searches a labelled embedded storage and attaches an IntentionComponent.


function AddClassifyIntentLLM

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddClassifyIntentLLM (
    std::string name,
    ::Tryll::NodeParams::ClassifyIntentLLMParamsT params
) 

Add a ClassifyIntentLLM node. Intent classification node (LLM first-token logprob over letter candidates). Scores labels via a dedicated LLM and attaches an IntentionComponent.


function AddGenerate

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddGenerate (
    std::string name,
    ::Tryll::NodeParams::GenerateParamsT params
) 

Add a Generate node. LLM-driven text generation node. Renders a Mustache template, runs sampling, produces a streamed AnswerText.


function AddGenerateAndSpeak

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddGenerateAndSpeak (
    std::string name,
    ::Tryll::NodeParams::GenerateAndSpeakParamsT params
) 

Add a GenerateAndSpeak node. 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.


function AddInstruction

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddInstruction (
    std::string name,
    ::Tryll::NodeParams::InstructionParamsT params
) 

Add a Instruction node. Plain instruction node. Attaches a kind=Instruction SlotComponent to the current interaction so downstream Mustache templates can reference it.


function AddIntentToInstruction

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddIntentToInstruction (
    std::string name,
    ::Tryll::NodeParams::IntentToInstructionParamsT params
) 

Add a IntentToInstruction node. Maps an intent label to an instruction text from a Map-kind string storage. Resolution priority (factory): named string_storage → inline_keys + inline_strings (Map-kind in-memory storage built from the equal-length pair).


function AddPause

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddPause (
    std::string name,
    ::Tryll::NodeParams::PauseParamsT params
) 

Add a Pause node. No-op node. The executor pauses the turn after this node exits, giving the client a chance to inspect/mutate agent state (via ChangeAgentParam) before the graph continues. Resume with ResumeAgentRequest.


function AddRegexGuardrail

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddRegexGuardrail (
    std::string name,
    ::Tryll::NodeParams::RegexGuardrailParamsT params
) 

Add a RegexGuardrail node. Regex guardrail node backed by session string storage. Branches on whether the node's input slot text matches a pattern in the storage. Resolution priority (factory): named string_storage → inline_strings → server-wide default (default-guardrail-patterns.txt from server-config).


function AddRetrieve

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddRetrieve (
    std::string name,
    ::Tryll::NodeParams::RetrieveParamsT params
) 

Add a Retrieve node. RAG retrieval node. Embeds the HumanMessage, searches an embedded storage, and attaches a KnowledgeComponent to the current interaction.


function AddSpeak

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddSpeak (
    std::string name,
    ::Tryll::NodeParams::SpeakParamsT params
) 

Add a Speak node. Standalone TTS-only node. Voices its input-resolved slot (any upstream node's output — Generate, CannedResponse, etc. — or user_message itself), segments it into sentences, and synthesizes each on a dedicated TTS strand, emitting PCM frames via OnTtsAudio callbacks. Unlike GenerateAndSpeak it runs no LLM inference, so it can voice canned/scripted lines or any upstream-produced answer without paying for a generation pass.


function AddToolCall

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddToolCall (
    std::string name,
    ::Tryll::NodeParams::ToolCallParamsT params
) 

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


function AddTransform

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddTransform (
    std::string name,
    ::Tryll::NodeParams::TransformParamsT params
) 

Add a Transform node. Model-free input-composition node. Renders a Mustache template over user_message and the current turn's slots into its own slot; performs no inference and never emits on the wire (send = None, history_role = none, fixed). Typical use: query rewriting, fan-out composition feeding a downstream Retrieve/Generate input.



The documentation for this class was generated from the following file C:/_tryll/_monorepo3/tryll/clients/cpp/include/tryll/Generated/GraphDescription.Nodes.gen.h