Learn R Programming

rtemis.llm (version 0.8.1)

as.list.Message: Convert Message to List

Description

Convert Message to List

Usage

# S3 method for Message
as.list(x, ...)

Value

A list representation of the Message object

Arguments

x

Message object

...

Additional arguments (not used)

Author

EDG

Examples

Run this code
# Requires running Ollama server and gemma4:e4b model
  if (FALSE) {
  llm <- create_Ollama("gemma4:e4b")
  res <- generate(llm, "How can anything exist?")
  as.list(res)
}

Run the code above in your browser using DataLab