Skip to contents

Convert Message to List

Usage

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

Arguments

x

Message object

...

Additional arguments (not used)

Value

A list representation of the Message object

Author

EDG

Examples

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