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 .
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.
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
typedef std::function< void(std::string_view, std::uint64_t, std::uint64_t, float)> DownloadProgressCallback
Callback invoked during TryllClient::DownloadModel as data arrives.
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 > 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 Types Documentation

enum AgentKvCachePrefixStatus

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

enum AgentKvCacheResidency

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

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


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

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



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