getTextParts

Extracts a list of tool call messages from a given list of response messages.

Return

A list of messages specifically representing tool calls, which are instances of MessagePart.Tool.Call.

Parameters

response

A list of response messages to filter, potentially containing various types of responses.