dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Extends lm.inspect_history to print usage and reasoning content

Open nguyenhoan1988 opened this issue 5 months ago • 1 comments
trafficstars

Enhanced the pretty_print_history function in lm.inspect_history to include:

Usage Details: Prints response usage information when available Reasoning Content: Displays reasoning content from the response message if present.

nguyenhoan1988 avatar Jun 06 '25 12:06 nguyenhoan1988

Hi @nguyenhoan1988 , thanks for the PR! could this instead be supported like how we do image & audio in inspect_history rather than keeping a separate verbose flag? Also, we don't need to introduce new colors - all outputs should be green

arnavsinghvi11 avatar Jun 06 '25 16:06 arnavsinghvi11