How to obtain a "trace" of an AIP Logic, to display in Workshop?

I want to see a “chain of thought” of an AIP Logic in Workshop. I want to see the steps some LLMs blocks took, which was the exact steps of the execution of the function, what was decided and why.

How can I capture the execution steps of an AIP Logic ?
How can I display this in Workshop ?

In AIP Logic, you need to use the “Get Logic execution ID”

You can directly return it (likely not very useful in production, given this will be the only output of your AIP Logic) or use it as a string to write-back/edit an object via Actions (this is the most typical use in production).

You can then load and consume this execution ID in Workshop via the “Chain of thought” widget and to select “show a previous run”.

See https://www.palantir.com/docs/foundry/logic/execution-mode-settings#run-history-dataset for more details on history retention, etc.