Skip to contents

Returns the trace from the most recent dsp() call. Useful for debugging and understanding what happened.

Usage

get_last_trace()

Value

A list containing:

  • signature: The Signature object used

  • inputs: The inputs provided

  • prompt: The full prompt sent to the LLM

  • output: The raw output from the LLM

  • timestamp: When the call was made

Examples

if (FALSE) { # \dontrun{
dsp("q -> a", q = "What is 2+2?")
trace <- get_last_trace()
trace$prompt  # See the prompt that was sent
} # }