Divooka Reference

Conversations

3 nodes

On this page 3

Add Message

Function

The conversation with one more message.

Signature
AddMessage -> Conversation
    conversation: Conversation
    role: Text
    content: Text
Conversation AddMessage(
    Conversation conversation,
    string role,
    string content)

Parameters

nametypedefaultdescription
conversationConversation—The conversation so far; empty to start one.
roleText—Who says it: user, assistant or system.
contentText—What is said.

Returns

ConversationConversation
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Conversations
Package
Machine Learning

Last Reply

Function

The last thing the assistant said in a conversation.

Signature
LastReply(conversation: Conversation) -> Text
string LastReply(Conversation conversation)

Parameters

nametypedefaultdescription
conversationConversation—The conversation.

Returns

ReplyText
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Conversations
Package
Machine Learning

Start Conversation

Function

A new conversation, opened by a system message when one is given.

Signature
StartConversation(system: Text) -> Conversation
Conversation StartConversation(string system)

Parameters

nametypedefaultdescription
systemText—What the model is told about its part before anything is said, such as "You are a concise assistant."; empty for none.

Returns

ConversationConversation
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Conversations
Package
Machine Learning