Skip to content

Class Tryll::Client::GraphDescriptionNodeMethods

ClassList > Tryll > Client > GraphDescriptionNodeMethods

More...

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

Public Functions

Type Name
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 & AddHumanMessageGuardrail (std::string name, ::Tryll::NodeParams::HumanMessageGuardrailParamsT params)
GraphDescriptionNodeMethods & AddInstruction (std::string name, ::Tryll::NodeParams::InstructionParamsT params)
GraphDescriptionNodeMethods & AddIntentToInstruction (std::string name, ::Tryll::NodeParams::IntentToInstructionParamsT params)
GraphDescriptionNodeMethods & AddRetrieve (std::string name, ::Tryll::NodeParams::RetrieveParamsT params)
GraphDescriptionNodeMethods & AddToolCall (std::string name, ::Tryll::NodeParams::ToolCallParamsT params)

Detailed Description

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

Public Functions Documentation

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 AddHumanMessageGuardrail

GraphDescriptionNodeMethods & Tryll::Client::GraphDescriptionNodeMethods::AddHumanMessageGuardrail (
    std::string name,
    ::Tryll::NodeParams::HumanMessageGuardrailParamsT params
) 

Add a HumanMessageGuardrail node. Guardrail node backed by session string storage. Blocks turns whose human message 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 AddInstruction

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

Add a Instruction node. Plain instruction node. Attaches an InstructionComponent 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 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 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.



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