Skip to content

Namespace Tryll::Client

Namespace List > Tryll > Client

Namespaces

Type Name
namespace Internal

Classes

Type Name
struct AgentCreateOptions
struct AgentKvCacheEvictResult
struct AgentKvCachePrefillResult
struct AgentKvCacheStatus
class AgentProxy
Client-side handle for one server-side agent.
struct AgentVariableDecl
class AgentVariables
Client-side mirror + deferred-flush batcher for one agent's declared variables.
struct AudioFormat
class ConnectedSession
RAII pair: owns a ManagedServer child process and a connectedTryllClient .
struct DialogFileLoadResult
struct DialogFileSaveResult
struct DialogImportResult
struct DialogIntention
struct DialogInteractionSnapshot
struct DialogKnowledge
struct DialogKnowledgeChunk
struct DialogProjectionWindow
struct DialogSlot
struct DialogSnapshot
struct DialogSummary
struct DialogToolCall
struct DialogToolResult
struct GameMemoryLoadResult
struct GameMemorySaveResult
struct GameMemorySnapshot
class GraphDescription
Fluent builder for a workflow graph description sent to the server.
class GraphDescriptionNodeMethods
class ManagedServer
RAII handle around a child tryll_server process.
struct ManagedServerOptions
Configuration passed to ManagedServer::Start .
struct MessageResult
Placeholder for per-turn metadata returned from SendText.
class MutableKb
Experimental session-scoped mutable knowledge-base handle.
struct MutableKbHit
struct MutableKbImportResult
struct MutableKbInfo
struct MutableKbListPage
struct MutableKbRecord
struct MutableKbSnapshot
struct MutableKbStats
struct MutableKbUpsert
struct MutableKbWriteResult
struct TranscriptUpdate
Transcript update delivered via the VoiceInput callback.
class TryllClient
TCP session to the Tryll server.
class TryllError
Exception thrown by TryllClient andAgentProxy on server errors or disconnects.
struct UtteranceOptions
Per-utterance options passed to BeginUtterance.
class VoiceInput
struct VoiceInputConfig
Parameters for creating a VoiceInput handle.

Public Types

Type Name
enum std::uint8_t AgentKvCachePrefixStatus
enum std::uint8_t AgentKvCacheResidency
enum std::uint8_t DialogCompatibility
typedef std::variant< DialogSlot, DialogKnowledge, DialogIntention, DialogToolCall, DialogToolResult, DialogSummary > DialogComponent
enum std::uint8_t DialogSlotKind
typedef std::function< void(std::string_view, std::uint64_t, std::uint64_t, float)> DownloadProgressCallback
Callback invoked during TryllClient::DownloadModel as data arrives.
enum std::uint8_t MutableKbCompatibility
enum std::uint8_t MutableKbEmbedTiming
typedef std::variant< ::Tryll::NodeParams::GenerateParamsT, ::Tryll::NodeParams::RegexGuardrailParamsT, ::Tryll::NodeParams::CannedResponseParamsT, ::Tryll::NodeParams::ToolCallParamsT, ::Tryll::NodeParams::RetrieveParamsT, ::Tryll::NodeParams::InstructionParamsT, ::Tryll::NodeParams::ClassifyIntentParamsT, ::Tryll::NodeParams::ClassifyIntentLLMParamsT, ::Tryll::NodeParams::IntentToInstructionParamsT, ::Tryll::NodeParams::GenerateAndSpeakParamsT, ::Tryll::NodeParams::SpeakParamsT, ::Tryll::NodeParams::PauseParamsT, ::Tryll::NodeParams::TransformParamsT, ::Tryll::NodeParams::BranchParamsT, ::Tryll::NodeParams::WriteToMemoryParamsT, ::Tryll::NodeParams::SummarizeParamsT, ::Tryll::NodeParams::ClassifyAttributesLLMParamsT > NodeParamsVariant
Typed variant discriminating all concrete node-parameter PODs.
enum std::uint8_t VariableType
Type tag for a declared agent variable.
typedef std::variant< std::int64_t, double, std::string, bool, std::vector< std::string > > VariableValue

Public Attributes

Type Name
std::uint32_t kGameMemoryFormatVersion = 1

Public Functions

Type Name
DialogSnapshot DecodeFlatBuffer (std::span< const std::uint8_t > bytes)
GameMemorySnapshot DecodeGameMemory (std::span< const std::uint8_t > bytes)
MutableKbSnapshot DecodeMutableKbSnapshot (std::span< const std::uint8_t > bytes)
std::vector< std::uint8_t > EncodeFlatBuffer (const DialogSnapshot & snapshot)
Canonical binary form (file identifier "TDLG"). Throws TryllError on failure.
std::vector< std::uint8_t > EncodeFlatBuffer (const MutableKbSnapshot & snapshot)
Canonical TMKB bytes. Throws TryllError on failure.
std::vector< std::uint8_t > EncodeFlatBuffer (const GameMemorySnapshot & snapshot)
flatbuffers::Offset<::Tryll::GameMemory > PackGameMemory (flatbuffers::FlatBufferBuilder & fbb, const GameMemorySnapshot & snapshot)
flatbuffers::Offset<::Tryll::PersistedDialogSnapshot > PackPersistedDialogSnapshot (flatbuffers::FlatBufferBuilder & fbb, const DialogSnapshot & snapshot)
flatbuffers::Offset<::Tryll::PersistedMutableKb > PackPersistedMutableKb (flatbuffers::FlatBufferBuilder & fbb, const MutableKbSnapshot & snapshot)
GameMemorySnapshot UnpackGameMemory (const ::Tryll::GameMemory & table)
DialogSnapshot UnpackPersistedDialogSnapshot (const ::Tryll::PersistedDialogSnapshot & table)
MutableKbSnapshot UnpackPersistedMutableKb (const ::Tryll::PersistedMutableKb & table)

Public Types Documentation

enum AgentKvCachePrefixStatus

enum Tryll::Client::AgentKvCachePrefixStatus {
    NotCurrent,
    Current
};

enum AgentKvCacheResidency

enum Tryll::Client::AgentKvCacheResidency {
    Evicted,
    Resident
};

enum DialogCompatibility

enum Tryll::Client::DialogCompatibility {
    Strict = 0,
    AllowGraphMismatch = 1
};

typedef DialogComponent

using Tryll::Client::DialogComponent = std::variant<
   DialogSlot,
   DialogKnowledge,
   DialogIntention,
   DialogToolCall,
   DialogToolResult,
   DialogSummary>;

enum DialogSlotKind

enum Tryll::Client::DialogSlotKind {
    User = 0,
    Instruction = 1,
    General = 2
};

typedef DownloadProgressCallback

Callback invoked during TryllClient::DownloadModel as data arrives.

using Tryll::Client::DownloadProgressCallback = 
std::function<void(std::string_view, std::uint64_t, std::uint64_t, float)>;

Invoked synchronously on the reader thread — keep the callback short and non-blocking.

Parameters (in order): modelName, bytesDownloaded, totalBytes, percent (0–100).


enum MutableKbCompatibility

enum Tryll::Client::MutableKbCompatibility {
    Strict = 0,
    AllowSchemaDrift = 1
};

enum MutableKbEmbedTiming

enum Tryll::Client::MutableKbEmbedTiming {
    Unspecified = 0,
    Now = 1,
    Lazy = 2
};

typedef NodeParamsVariant

Typed variant discriminating all concrete node-parameter PODs.

using Tryll::Client::NodeParamsVariant =  std::variant<
    ::Tryll::NodeParams::GenerateParamsT,
    ::Tryll::NodeParams::RegexGuardrailParamsT,
    ::Tryll::NodeParams::CannedResponseParamsT,
    ::Tryll::NodeParams::ToolCallParamsT,
    ::Tryll::NodeParams::RetrieveParamsT,
    ::Tryll::NodeParams::InstructionParamsT,
    ::Tryll::NodeParams::ClassifyIntentParamsT,
    ::Tryll::NodeParams::ClassifyIntentLLMParamsT,
    ::Tryll::NodeParams::IntentToInstructionParamsT,
    ::Tryll::NodeParams::GenerateAndSpeakParamsT,
    ::Tryll::NodeParams::SpeakParamsT,
    ::Tryll::NodeParams::PauseParamsT,
    ::Tryll::NodeParams::TransformParamsT,
    ::Tryll::NodeParams::BranchParamsT,
    ::Tryll::NodeParams::WriteToMemoryParamsT,
    ::Tryll::NodeParams::SummarizeParamsT,
    ::Tryll::NodeParams::ClassifyAttributesLLMParamsT
>;

Generated AddXxx methods build a NodeParamsVariant and store it in NodeDesc.params. The ClientCodec serialises the variant into the FlatBuffers NodeParams union.


enum VariableType

Type tag for a declared agent variable.

enum Tryll::Client::VariableType {
    Int,
    Float,
    String,
    Bool,
    StringSet
};


typedef VariableValue

using Tryll::Client::VariableValue = std::variant<std::int64_t, double, std::string, bool, std::vector<std::string>>;

A variable's value. The active alternative fixes its type for the agent's whole lifetime (server-enforced; see VariableTypeMismatch 3014).


Public Attributes Documentation

variable kGameMemoryFormatVersion

std::uint32_t Tryll::Client::kGameMemoryFormatVersion;

Public Functions Documentation

function DecodeFlatBuffer

DialogSnapshot Tryll::Client::DecodeFlatBuffer (
    std::span< const std::uint8_t > bytes
) 

function DecodeGameMemory

GameMemorySnapshot Tryll::Client::DecodeGameMemory (
    std::span< const std::uint8_t > bytes
) 

function DecodeMutableKbSnapshot

MutableKbSnapshot Tryll::Client::DecodeMutableKbSnapshot (
    std::span< const std::uint8_t > bytes
) 

function EncodeFlatBuffer

Canonical binary form (file identifier "TDLG"). Throws TryllError on failure.

std::vector< std::uint8_t > Tryll::Client::EncodeFlatBuffer (
    const DialogSnapshot & snapshot
) 


function EncodeFlatBuffer

Canonical TMKB bytes. Throws TryllError on failure.

std::vector< std::uint8_t > Tryll::Client::EncodeFlatBuffer (
    const MutableKbSnapshot & snapshot
) 


function EncodeFlatBuffer

std::vector< std::uint8_t > Tryll::Client::EncodeFlatBuffer (
    const GameMemorySnapshot & snapshot
) 

function PackGameMemory

flatbuffers::Offset<::Tryll::GameMemory > Tryll::Client::PackGameMemory (
    flatbuffers::FlatBufferBuilder & fbb,
    const GameMemorySnapshot & snapshot
) 

function PackPersistedDialogSnapshot

flatbuffers::Offset<::Tryll::PersistedDialogSnapshot > Tryll::Client::PackPersistedDialogSnapshot (
    flatbuffers::FlatBufferBuilder & fbb,
    const DialogSnapshot & snapshot
) 

function PackPersistedMutableKb

flatbuffers::Offset<::Tryll::PersistedMutableKb > Tryll::Client::PackPersistedMutableKb (
    flatbuffers::FlatBufferBuilder & fbb,
    const MutableKbSnapshot & snapshot
) 

function UnpackGameMemory

GameMemorySnapshot Tryll::Client::UnpackGameMemory (
    const ::Tryll::GameMemory & table
) 

function UnpackPersistedDialogSnapshot

DialogSnapshot Tryll::Client::UnpackPersistedDialogSnapshot (
    const ::Tryll::PersistedDialogSnapshot & table
) 

function UnpackPersistedMutableKb

MutableKbSnapshot Tryll::Client::UnpackPersistedMutableKb (
    const ::Tryll::PersistedMutableKb & table
) 


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