Divooka Reference

Completion Engine

7 nodes

On this page 7

Chat

Function

This node carries no documentation.

Overload 1 of 2

Signature
Chat -> (result: Text, history: ChatHistoryData)
    Completion Engine: Completion Engine
    system: Text
    input: Text
string Chat(
    CompletionEngine Completion Engine,
    string system,
    string input,
    out ChatHistoryData history)

Parameters

nametypedefaultdescription
Completion EngineCompletion Engine—
systemText—
inputText—

Returns

resultText
historyChatHistoryData

Overload 2 of 2

Signature
Chat -> (result: Text, newHistory: ChatHistoryData)
    Completion Engine: Completion Engine
    system: Text
    input: Text
    history: ChatHistoryData
string Chat(
    CompletionEngine Completion Engine,
    string system,
    string input,
    ChatHistoryData history,
    out ChatHistoryData newHistory)

Parameters

nametypedefaultdescription
Completion EngineCompletion Engine—
systemText—
inputText—
historyChatHistoryData—

Returns

resultText
newHistoryChatHistoryData
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Completion Engine
Package
Generative AI

Complete Text

Function

This node carries no documentation.

Signature
CompleteText -> (result: Text, history: ChatHistoryData)
    Completion Engine: Completion Engine
    system: Text
    prompt: Text
string CompleteText(
    CompletionEngine Completion Engine,
    string system,
    string prompt,
    out ChatHistoryData history)

Parameters

nametypedefaultdescription
Completion EngineCompletion Engine—
systemText—
promptText—

Returns

resultText
historyChatHistoryData
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Completion Engine
Package
Generative AI

Get Model

Function

This node carries no documentation.

Signature
Model(Completion Engine: Completion Engine) -> Text
string Model(CompletionEngine Completion Engine)

Parameters

nametypedefaultdescription
Completion EngineCompletion Engine—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Completion Engine
Package
Generative AI

Get Provider Name

Function

This node carries no documentation.

Signature
ProviderName(Completion Engine: Completion Engine) -> Text
string ProviderName(CompletionEngine Completion Engine)

Parameters

nametypedefaultdescription
Completion EngineCompletion Engine—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Completion Engine
Package
Generative AI

Complete

Function

Complete some starting message.
This is NOT Q&A style completion.

Signature
Complete -> (result: Text, history: ChatHistoryData)
    system: Text
    prompt: Text
string Complete(
    string system,
    string prompt,
    out ChatHistoryData history)

Parameters

nametypedefaultdescription
systemText—System prompt, not all models support it.
promptText—Prompt for completion.

Returns

resultText
historyChatHistoryData

Remarks

This is raw completion: the Prompt + return value gives a complete sentence/result.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Completion Engine
Package
Generative AI

Create Completion Engine

Function

Overload 1 of 2

Signature
CreateCompletionEngine() -> Completion Engine
CompletionEngine CreateCompletionEngine()

Use DIVOOKA_COMPLETIONENGINE_MODEL when present, and fall back to DIVOOKA_COMPLETIONENGINE_MODELDIR + Model.gguf otherwise.

Returns

resultCompletion Engine

Overload 2 of 2

Signature
CreateCompletionEngine(provider: ICompletionProvider) -> Completion Engine
CompletionEngine CreateCompletionEngine(ICompletionProvider provider)

This node carries no documentation.

Parameters

nametypedefaultdescription
providerICompletionProvider—

Returns

resultCompletion Engine
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Completion Engine
Package
Generative AI

Create Local Completion Engine

Function

This node carries no documentation.

Signature
CreateLocalCompletionEngine -> Completion Engine
    modelPath: Text
    modelType: ModelConfigs.HostableModelType
CompletionEngine CreateLocalCompletionEngine(
    string modelPath,
    ModelConfigs.HostableModelType modelType = HostableModelType.Llama3)

Parameters

nametypedefaultdescription
modelPathText—
modelTypeModelConfigs.HostableModelTypeLlama 3

Returns

resultCompletion Engine
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Completion Engine
Package
Generative AI