Extracts the tool call ID from an unknown context object. Returns undefined if the context is not a valid ToolInvocationContext or has no toolCallId.
Extracts the tool call ID from an unknown context object. Returns undefined if the context is not a valid ToolInvocationContext or has no toolCallId.