agent: Do not add `<using_tool>` placeholder (#29194)

Our provider code in `language_models` filters out messages for which
`LanguageModelRequestMessage::contents_empty` returns `false`. This
doesn't seem wrong by itself, but `contents_empty` was returning `false`
for messages whose first segment didn't contain non-whitespace text even
if they contained other non-empty segments. This caused requests to fail
when a message with a tool call didn't contain any preceding text.

Release Notes:

- N/A
b14356d1d3Agus Zubiaga committed on 4/22/2025, 3:41:47 AM· committed by GitHubparent19ef56b
3 files changedLine totals unavailable