assistant2: Rework how tool results are stored and referred to (#25817)

This PR reworks how we store tool results and refer to them later.

We now maintain a mapping of the tool uses to their corresponding
results, with separate mappings for the messages and the tool uses they
correspond to.

Release Notes:

- N/A
b445e4ce24Marshall Bowers committed on 2/28/2025, 4:33:08 PM· committed by GitHubparent508b581
2 files changedLine totals unavailable