convertMessage

Converts the given message by formatting specific types of tool-related messages (e.g., Message.Tool.Call and Message.Tool.Result) into descriptive messages. If the message is not a tool-related message, it remains unchanged.

Return

The converted message, either modified if it's a tool-related message, or unchanged otherwise.

Parameters

message

The input message to be converted.