medium90%
filter_messages leaves OpenAI function_call blocks after excluding tool calls
When filter_messages(..., exclude_tool_calls=[...]) is called on an AIMessage containing OpenAI Responses-style function_call content blocks, the excluded tool call is removed from AIMessage.tool_calls but the corresponding function_call block remains in AIMessage.content, creating an inconsistent state that may cause downstream model errors.
