Divooka Reference

DeepSeek

5 nodes

On this page 5

Auto Summarize

Function

Summarizes the given source text using AI.

Signature
AutoSummarize -> Text
    text: Text
    configuration: OpenAIConfiguration
string AutoSummarize(
    string text,
    OpenAIConfiguration configuration)

Parameters

nametypedefaultdescription
textText—The source text to summarize.
configurationOpenAIConfiguration—Optional configuration settings for the OpenAI API.

Returns

resultText

Remarks

Currently not implementing segmentation and is substitutable with a macro.
However, if segmentation were to be added, implementing it in C# would be ideal.

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

Auto Translate

Function

Translates the source text into the specified target language using AI.

Signature
AutoTranslate -> Text
    text: Text
    targetLanguage: Text
    configuration: OpenAIConfiguration
string AutoTranslate(
    string text,
    string targetLanguage,
    OpenAIConfiguration configuration)

Parameters

nametypedefaultdescription
textText—The source text to translate.
targetLanguageText—The target language for translation.
configurationOpenAIConfiguration—Optional configuration settings for the OpenAI API.

Returns

resultText

Remarks

Currently not implementing segmentation and is substitutable with a macro.
However, if segmentation were to be added, implementing it in C# would be ideal.

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

Chat

Function

Provides a continuous chat experience with automatic memory size management.
This method interacts with OpenAI's ChatGPT, maintaining a session history
and returning responses based on user input and system prompts.

Signature
Chat -> (result: Text, sessionHistory: Text)
    system: Text
    input: Text
    memorySize: Integer
    sessionName: Text
    configuration: OpenAIConfiguration
string Chat(
    out string sessionHistory,
    string system,
    string input,
    int memorySize = 3,
    string sessionName = "Default.Session",
    OpenAIConfiguration configuration)

Parameters

nametypedefaultdescription
systemText—The system prompt that sets the context for the chat.
inputText—The user's input message for the chat session.
memorySizeInteger3The number of past interactions to remember in the chat session (default is 3).
sessionNameTextDefault.SessionThe name of the chat session, used for identifying stored histories (default is "Default.Session").
configurationOpenAIConfiguration—Optional configuration settings for the OpenAI API.

Returns

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

Complete

Function

Overload 1 of 2

Signature
Complete -> Text
    query: Text
    configuration: OpenAIConfiguration
string Complete(string query, OpenAIConfiguration configuration)

Sends a query to the DeepSeek API and returns the generated completion.

Parameters

nametypedefaultdescription
queryText—The text query to be completed.
configurationOpenAIConfiguration—Optional configuration for the DeepSeek API. If not provided, a default configuration is used.

Returns

resultText

Remarks

DeepSeek uses the OpenAI API under the hood. The completion is obtained by calling OpenAIHelper.ChatGPTComplete.

Overload 2 of 2

Signature
Complete -> Text
    system: Text
    query: Text
    configuration: OpenAIConfiguration
string Complete(
    string system,
    string query,
    OpenAIConfiguration configuration)

Sends a system prompt along with a query to the DeepSeek API and returns the generated completion.

Parameters

nametypedefaultdescription
systemText—The system prompt that guides the behavior of the completion process.
queryText—The text query to be completed.
configurationOpenAIConfiguration—Optional configuration for the DeepSeek API. If not provided, a default configuration is used.

Returns

resultText

Remarks

DeepSeek uses the OpenAI API under the hood. The completion is obtained by calling OpenAIHelper.ChatGPTComplete.

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

Configure Deep Seek

Function

Configures the DeepSeek API by providing the necessary API key and model selection.

Signature
ConfigureDeepSeek -> OpenAIConfiguration
    apiKey: Text
    model: Deep Seek Model
    replyTokenSizeLimit: Integer
    serviceAddress: Text
OpenAIConfiguration ConfigureDeepSeek(
    string apiKey,
    DeepSeekHelper.DeepSeekModel model = DeepSeekModel.DeepSeekChat,
    int replyTokenSizeLimit = 6000,
    string serviceAddress = "https://api.deepseek.com/")

Parameters

nametypedefaultdescription
apiKeyText—The API key used to authenticate with the DeepSeek API.
modelDeep Seek ModelDeep seek chatThe DeepSeek model to use for generating the completion. Defaults to DeepSeekModel.DeepSeekChat.
replyTokenSizeLimitInteger6000Limit of reply token size.
serviceAddressTexthttps://api.deepseek.com/Address for the service, expecting a /chat/completions endpoint for Chat Completion.

Returns

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