Conversations
3 nodes
On this page 3
Add Message
FunctionThe conversation with one more message.
Signature
AddMessage -> Conversation
conversation: Conversation
role: Text
content: TextConversation AddMessage(
Conversation conversation,
string role,
string content)Parameters
| name | type | default | description |
|---|---|---|---|
| conversation | Conversation | — | The conversation so far; empty to start one. |
| role | Text | — | Who says it: user, assistant or system. |
| content | Text | — | What is said. |
Returns
| Conversation | Conversation |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conversations
- Package
- Machine Learning
Last Reply
FunctionThe last thing the assistant said in a conversation.
Signature
LastReply(conversation: Conversation) -> Text
string LastReply(Conversation conversation)
Parameters
| name | type | default | description |
|---|---|---|---|
| conversation | Conversation | — | The conversation. |
Returns
| Reply | Text |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conversations
- Package
- Machine Learning
Start Conversation
FunctionA new conversation, opened by a system message when one is given.
Signature
StartConversation(system: Text) -> Conversation
Conversation StartConversation(string system)
Parameters
| name | type | default | description |
|---|---|---|---|
| system | Text | — | What the model is told about its part before anything is said, such as "You are a concise assistant."; empty for none. |
Returns
| Conversation | Conversation |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conversations
- Package
- Machine Learning