Returns the assistant's reasoning trace (if any). Only LLMMessage objects carry a reasoning
field; all other Message subclasses return NA_character_. Messages whose reasoning is unset
(NULL) also return NA_character_.
Arguments
- x
Messageobject, list ofMessageobjects, or list of lists ofMessageobjects.NULLelements are allowed: llmapply and agentapply leave one in the slot of every call that failed underon_error = "na".