parse_message {shiny.ollama} | R Documentation |
Parse a markdown-formatted message
Description
This function extracts the role and content from a markdown-formatted message.
Usage
parse_message(message)
Arguments
message |
A character string containing the markdown-formatted message. |
Value
A list with two elements:
role |
A character string representing the role (e.g., "User", "Assistant", "System"). |
content |
A character string containing the extracted message content. |
[Package shiny.ollama version 0.1.1 Index]