Skip to content

Namespace Tryll::Client

Namespace List > Tryll > Client

Classes

Type Name
class GraphDescription
Fluent builder for a workflow graph description sent to the server.
class ManagedServer
RAII handle around a child tryll_server process.
struct ManagedServerOptions
Configuration passed to ManagedServer::Start .
struct ModelInfo
Summary information for one model returned by Tryll::TryllClient::ListModels .
struct ToolDef
Definition of a callable tool for a ToolCall node.
struct ToolParamDef
Description of one parameter of a tool definition.

Public Types

Type Name
typedef std::function< void(std::string_view, std::uint64_t, std::uint64_t, float)> DownloadProgressCallback
Callback invoked during Tryll::TryllClient::DownloadModel as data arrives.
enum std::uint8_t InferenceEngine
Inference backend identifiers.
enum std::uint8_t ModelStatus
Status of a model on the server side.
enum std::uint8_t NodeType
Workflow node kinds recognised by the server.

Public Types Documentation

typedef DownloadProgressCallback

Callback invoked during Tryll::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 InferenceEngine

Inference backend identifiers.

enum Tryll::Client::InferenceEngine {
    Mock = 0,
    LlamaCpp = 1,
    OnnxGenAI = 2,
    WindowsML = 3,
    OpenVino = 4,
    TensorRtLlm = 5
};

Must match the FlatBuffers InferenceEngine enum and Tryll::Workflow::InferenceEngine. Selected once per session via Tryll::TryllClient::ConfigureSession.


enum ModelStatus

Status of a model on the server side.

enum Tryll::Client::ModelStatus {
    Absent = 0,
    Local = 1,
    Downloading = 2,
    Loaded = 3,
    Downloaded = 4
};

Mirrors the FlatBuffers ModelStatus enum.


enum NodeType

Workflow node kinds recognised by the server.

enum Tryll::Client::NodeType {
    Generate = 0,
    HumanMessageGuardrail = 1,
    CannedResponse = 2,
    ToolCall = 3,
    Retrieve = 4,
    Instruction = 5
};

Must match the FlatBuffers NodeType enum.



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