Completion Engine
7 nodes
On this page 7
Chat
FunctionThis node carries no documentation.
Overload 1 of 2
Signature
Chat -> (result: Text, history: ChatHistoryData)
Completion Engine: Completion Engine
system: Text
input: Textstring Chat(
CompletionEngine Completion Engine,
string system,
string input,
out ChatHistoryData history)Parameters
| name | type | default | description |
|---|---|---|---|
| Completion Engine | Completion Engine | — | |
| system | Text | — | |
| input | Text | — |
Returns
| result | Text |
| history | ChatHistoryData |
Overload 2 of 2
Signature
Chat -> (result: Text, newHistory: ChatHistoryData)
Completion Engine: Completion Engine
system: Text
input: Text
history: ChatHistoryDatastring Chat(
CompletionEngine Completion Engine,
string system,
string input,
ChatHistoryData history,
out ChatHistoryData newHistory)Parameters
| name | type | default | description |
|---|---|---|---|
| Completion Engine | Completion Engine | — | |
| system | Text | — | |
| input | Text | — | |
| history | ChatHistoryData | — |
Returns
| result | Text |
| newHistory | ChatHistoryData |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Completion Engine
- Package
- Generative AI
Complete Text
FunctionThis node carries no documentation.
Signature
CompleteText -> (result: Text, history: ChatHistoryData)
Completion Engine: Completion Engine
system: Text
prompt: Textstring CompleteText(
CompletionEngine Completion Engine,
string system,
string prompt,
out ChatHistoryData history)Parameters
| name | type | default | description |
|---|---|---|---|
| Completion Engine | Completion Engine | — | |
| system | Text | — | |
| prompt | Text | — |
Returns
| result | Text |
| history | ChatHistoryData |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Completion Engine
- Package
- Generative AI
Get Model
FunctionThis node carries no documentation.
Signature
Model(Completion Engine: Completion Engine) -> Text
string Model(CompletionEngine Completion Engine)
Parameters
| name | type | default | description |
|---|---|---|---|
| Completion Engine | Completion Engine | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Completion Engine
- Package
- Generative AI
Get Provider Name
FunctionThis node carries no documentation.
Signature
ProviderName(Completion Engine: Completion Engine) -> Text
string ProviderName(CompletionEngine Completion Engine)
Parameters
| name | type | default | description |
|---|---|---|---|
| Completion Engine | Completion Engine | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Completion Engine
- Package
- Generative AI
Complete
FunctionComplete some starting message.
This is NOT Q&A style completion.
Signature
Complete -> (result: Text, history: ChatHistoryData)
system: Text
prompt: Textstring Complete(
string system,
string prompt,
out ChatHistoryData history)Parameters
| name | type | default | description |
|---|---|---|---|
| system | Text | — | System prompt, not all models support it. |
| prompt | Text | — | Prompt for completion. |
Returns
| result | Text |
| history | ChatHistoryData |
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
FunctionOverload 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
| result | Completion Engine |
Overload 2 of 2
Signature
CreateCompletionEngine(provider: ICompletionProvider) -> Completion Engine
CompletionEngine CreateCompletionEngine(ICompletionProvider provider)
This node carries no documentation.
Parameters
| name | type | default | description |
|---|---|---|---|
| provider | ICompletionProvider | — |
Returns
| result | Completion 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
FunctionThis node carries no documentation.
Signature
CreateLocalCompletionEngine -> Completion Engine
modelPath: Text
modelType: ModelConfigs.HostableModelTypeCompletionEngine CreateLocalCompletionEngine(
string modelPath,
ModelConfigs.HostableModelType modelType = HostableModelType.Llama3)Parameters
| name | type | default | description |
|---|---|---|---|
| modelPath | Text | — | |
| modelType | ModelConfigs.HostableModelType | Llama 3 |
Returns
| result | Completion Engine |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Completion Engine
- Package
- Generative AI