extractToolCalls
fun AIAgentFunctionalContext.extractToolCalls(response: List<Message.Response>): List<Message.Tool.Call>(source)
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 Message.Tool.Call.
Parameters
response
A list of response messages to filter, potentially containing various types of responses.